mirror of
1
Fork 0
gotosocial/internal/processing
kim 21bb324156
[chore] media and emoji refactoring (#3000)
* start updating media manager interface ready for storing attachments / emoji right away

* store emoji and media as uncached immediately, then (re-)cache on Processing{}.Load()

* remove now unused media workers

* fix tests and issues

* fix another test!

* fix emoji activitypub uri setting behaviour, fix remainder of test compilation issues

* fix more tests

* fix (most of) remaining tests, add debouncing to repeatedly failing media / emojis

* whoops, rebase issue

* remove kim's whacky experiments

* do some reshuffling, ensure emoji uri gets set

* ensure marked as not cached on cleanup

* tweaks to media / emoji processing to handle context canceled better

* ensure newly fetched emojis actually get set in returned slice

* use different varnames to be a bit more obvious

* move emoji refresh rate limiting to dereferencer

* add exported dereferencer functions for remote media, use these for recaching in processor

* add check for nil attachment in updateAttachment()

* remove unused emoji and media fields + columns

* see previous commit

* fix old migrations expecting image_updated_at to exists (from copies of old models)

* remove freshness checking code (seems to be broken...)

* fix error arg causing nil ptr exception

* finish documentating functions with comments, slight tweaks to media / emoji deref error logic

* remove some extra unneeded boolean checking

* finish writing documentation (code comments) for exported media manager methods

* undo changes to migration snapshot gtsmodels, updated failing migration to have its own snapshot

* move doesColumnExist() to util.go in migrations package
2024-06-26 16:01:16 +01:00
..
account [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
admin [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
common [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
fedi [bugfix] Deref stats async, serve stub collections if handshaking (#2990) 2024-06-11 11:54:59 +02:00
filters [feature] filter API v2: Restore keywords_attributes and statuses_attributes (#2995) 2024-06-14 10:11:41 +02:00
list [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
markers [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
media [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
polls [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
report [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
search [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00
status [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
stream [feature] Implement filters_changed stream event (#2972) 2024-06-07 10:51:13 +02:00
timeline [bugfix] rename `include_types[]` to `types[]` (#3023) 2024-06-18 18:18:35 +02:00
user [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
workers [feature] Implement types[] param for notifications (#3009) 2024-06-17 20:50:50 +01:00
app.go [performance] cached oauth database types (#2838) 2024-04-15 14:22:21 +01:00
followrequest_test.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
instance.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
parsemention.go [bugfix] Refactor parse mention, fix local mention bug (#2657) 2024-02-19 03:48:20 +00:00
parsemention_test.go [bugfix] Refactor parse mention, fix local mention bug (#2657) 2024-02-19 03:48:20 +00:00
preferences.go [chore] Move local account settings to separate db table (#2770) 2024-03-22 14:03:46 +01:00
preferences_test.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
processor.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
processor_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00