This repository was archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Major simplification of event_*
tables
#344
Comments
The following file contains all current descriptions of events: There are at most two extra uuid_paramaters and at most one string parameter needed. A first easy simplification is to merge all extra
In case we need more sematic we can add |
A next step might be to store JSON in the event table. Also the following renamings can be done:
|
This was referenced Jun 7, 2024
kulla
added a commit
to serlo/api.serlo.org
that referenced
this issue
Jun 7, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, the database structure regarding
event
is absurdly complex.For example, to get the the parent of a checkout revision event we have to go through the
event_parameter
table and then to theevent_parameter_uuid
, besides that we have to see in theevent_parameter_string
the corresponding reason.A much simpler way of dealing with it would be to have nullable columns in the
event_log
table. Or we could have just one table likeevent_data
and have all info there. Anyway, we should figure out a simpler solution, of course with the corresponding db migration.The text was updated successfully, but these errors were encountered: