mirror of
1
Fork 0
gotosocial/internal/api/client/notifications
kim cac9d65029
[performance] convert enum strings to ints (#3558)
* convert statuses.visibility and notifications.notification_type columns from type string -> int for performance / space savings

* fix test trying to compare string to int

* fix instance count query using string literal instead of gtsmodel const type

* ensure a default value is always set

* also migrate the account settings and sin bin status tables

* initialize maps outside loops and place into singular enum mapping creation func

* use int16 for enum types

* update sinbinstatus creation to be from a snapshot at initial creation

* add snapshot of poll type at creation time
2024-11-25 14:48:59 +01:00
..
notificationget.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
notifications.go [bugfix] rename `include_types[]` to `types[]` (#3023) 2024-06-18 18:18:35 +02:00
notifications_test.go [feature] Implement types[] param for notifications (#3009) 2024-06-17 20:50:50 +01:00
notificationsclear.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
notificationsget.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
notificationsget_test.go [bugfix] rename `include_types[]` to `types[]` (#3023) 2024-06-18 18:18:35 +02:00