GoToSocial/internal/typeutils
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
..
astointernal_test.go [bugfix] relax missing preferred_username, instead using webfingered username (#3189) 2024-08-13 09:01:50 +00:00
astointernal.go [bugfix] Ensure pending_approval set on statuses + status faves (#3415) 2024-10-11 15:21:45 +02:00
converter_test.go [bugfix] Fix incorrect reply shown in interaction request (#3344) 2024-09-24 17:28:46 +00:00
converter.go [chore] Add interaction filter to complement existing visibility filter (#3111) 2024-07-24 12:27:42 +01:00
csv.go [chore] make csv export ordering determinate (#3318) 2024-09-18 10:23:28 +00:00
defaulticons.go [feature] Add image descriptions for default avatar + header; don't allow editing default desc (#3473) 2024-10-21 14:04:50 +02:00
frontendtointernal.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
internal.go [feature] Process Reject of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271) 2024-09-10 12:34:49 +00:00
internaltoas_test.go [chore] Don't cc Accept of likes to followers (#3417) 2024-10-11 15:22:05 +02:00
internaltoas.go [performance] minimise log field allocations (#3529) 2024-11-11 15:45:19 +00:00
internaltofrontend_test.go [bugfix] post counters should not include direct messages (#3554) 2024-11-21 11:06:06 +01:00
internaltofrontend.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
internaltorss_test.go
internaltorss.go
util_test.go [bugfix] Use better plaintext representation of status for filtering (#3301) 2024-09-16 14:00:23 +02:00
util.go [feature] Show info for pending replies, allow implicit accept of pending replies (#3322) 2024-09-23 14:42:19 +02:00
wrap_test.go [bugfix] Fix incorrect json-ld @context serialization (#3243) 2024-08-26 19:17:45 +02:00
wrap.go