mirror of
1
Fork 0
gotosocial/internal/ap
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
..
activitystreams.go [feature] Distribute + ingest Accepts to followers (#3404) 2024-10-08 08:51:13 +00:00
activitystreams_test.go [bugfix] Deref stats async, serve stub collections if handshaking (#2990) 2024-06-11 11:54:59 +02:00
ap_test.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
collections.go [bugfix] Deref stats async, serve stub collections if handshaking (#2990) 2024-06-11 11:54:59 +02:00
collections_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
extract.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
extractattachments_test.go [bugfix] Extract description as `summary` first, fall back to `name` (#2303) 2023-10-26 11:59:10 +02:00
extractcontent_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
extracthashtags_test.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
extractmentions_test.go [bugfix] Relax `Mention` parsing, allowing either href or name (#2320) 2023-10-31 11:05:17 +00:00
extractpolicy_test.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
extractpubkey_test.go [chore] Try to parse public key as both Actor + bare key (#2710) 2024-04-02 11:30:10 +01:00
extractsensitive_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
extractvisibility_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
interfaces.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
normalize.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
normalize_test.go [bugfix] Sanitize incoming PropertyValue fields (#2722) 2024-03-04 11:46:59 +01:00
properties.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
resolve.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
resolve_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
serialize.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
util.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00