gotosocial/internal/api/client/admin
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
..
accountaction.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
accountapprove.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountget.go [feature] Admin accounts endpoints; approve/reject sign-ups (#2826) 2024-04-13 13:25:10 +02:00
accountreject.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountsgetv1.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
accountsgetv2.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
accountsgetv2_test.go [feature] Page through accounts as moderator (#2881) 2024-05-01 14:11:22 +01:00
admin.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
admin_test.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
debug_off.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
debug_on.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
domainallowcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainallowsget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockcreate.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockdelete.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblockget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainblocksget.go [feature] Implement explicit domain allows + allowlist federation mode (#2200) 2023-09-21 12:12:04 +02:00
domainkeysexpire.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
domainpermission.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
emailtest.go [feature/frontend] Let admins send test email to validate SMTP config (#2934) 2024-05-27 17:03:54 +00:00
emojicategoriesget.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
emojicategoriesget_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojicreate.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
emojicreate_test.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
emojidelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojidelete_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiget_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojisget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojisget_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
emojiupdate.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiupdate_test.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
headerfilter.go [feature] Add HTTP header permission section to frontend (#2893) 2024-05-05 11:47:22 +00:00
headerfilter_create.go [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
headerfilter_delete.go [feature] Add HTTP header permission section to frontend (#2893) 2024-05-05 11:47:22 +00:00
headerfilter_get.go [feature] request blocking by http headers (#2409) 2023-12-18 14:18:25 +00:00
mediacleanup.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
mediacleanup_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
mediarefetch.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
reportget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportsget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportsget_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rulecreate.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
ruledelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
ruleget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rulesget.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
ruleupdate.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00