gotosocial/internal/api/client
kim 84279f6a6a
[performance] cache more database calls, reduce required database calls overall (#3290)
* improvements to caching for lists and relationship to accounts / follows

* fix nil panic in AddToList()

* ensure list related caches are correctly invalidated

* ensure returned ID lists are ordered correctly

* bump go-structr to v0.8.9 (returns early if zero uncached keys to be loaded)

* remove zero checks in uncached key load functions (go-structr now handles this)

* fix issues after rebase on upstream/main

* update the expected return order of CSV exports (since list entries are now down by entry creation date)

* rename some funcs, allow deleting list entries for multiple follow IDs at a time, fix up more tests

* use returning statements on delete to get cache invalidation info

* fixes to recent database delete changes

* fix broken list entries delete sql

* remove unused db function

* update remainder of delete functions to behave in similar way, some other small tweaks

* fix delete user sql, allow returning on err no entries

* uncomment + fix list database tests

* update remaining list tests

* update envparsing test

* add comments to each specific key being invalidated

* add more cache invalidation explanatory comments

* whoops; actually delete poll votes from database in the DeletePollByID() func

* remove added but-commented-out field

* improved comment regarding paging being disabled

* make cache invalidation comments match what's actually happening

* fix up delete query comments to match what is happening

* rename function to read a bit better

* don't use ErrNoEntries on delete when not needed (it's only needed for a RETURNING call)

* update function name in test

* move list exclusivity check to AFTER eligibility check. use log.Panic() instead of panic()

* use the poll_id column in poll_votes for selecting votes in poll ID

* fix function name
2024-09-16 16:46:09 +00:00
..
accounts [feature] Implement exclusive lists (#3280) 2024-09-09 15:56:58 -07:00
admin [bugfix] fix emoji recaching operations (#3167) 2024-08-03 19:05:38 +02:00
apps [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
blocks [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
bookmarks [chore] Swagger: add missing paging params to bookmarks list (#2759) 2024-03-15 11:43:24 +01:00
conversations [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
customemojis [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
exports [performance] cache more database calls, reduce required database calls overall (#3290) 2024-09-16 16:46:09 +00:00
favourites [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
featuredtags [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
filters [bugfix] Swagger: add missing filter_action param for v2 filter PUT (#3281) 2024-09-09 09:52:49 +02:00
followedtags [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
followrequests [chore/frontend] Use smaller webp images for logo and default avatars (#3119) 2024-07-20 14:02:22 +01:00
import [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00
instance [performance] use single-threaded image transforms (#3252) 2024-08-31 10:41:38 +02:00
interactionpolicies [feature] Allow users to set default interaction policies per status visibility (#3108) 2024-07-17 16:46:52 +02:00
interactionrequests [feature] Interaction requests client api + settings panel (#3215) 2024-08-24 11:49:37 +02:00
lists [performance] cache more database calls, reduce required database calls overall (#3290) 2024-09-16 16:46:09 +00:00
markers [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
media [performance] use single-threaded image transforms (#3252) 2024-08-31 10:41:38 +02:00
mutes [chore/frontend] Use smaller webp images for logo and default avatars (#3119) 2024-07-20 14:02:22 +01:00
notifications [bugfix] rename include_types[] to types[] (#3023) 2024-06-18 18:18:35 +02:00
polls [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00
preferences [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
reports [chore/frontend] Use smaller webp images for logo and default avatars (#3119) 2024-07-20 14:02:22 +01:00
search [feature/frontend] Add player for audio files; use thumbnail for poster (#3099) 2024-07-15 10:47:57 +01:00
statuses [feature] Use local_only field, deprecate federated field (#3222) 2024-08-22 19:47:10 +02:00
streaming [bugfix] send back Sec-Websocket-Protocol header for streaming WebSocket (#3169) 2024-08-06 11:52:27 +02:00
tags [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
timelines [bugfix] Avoid empty public/local timeline queries (#2784) 2024-03-25 16:20:45 +00:00
user [chore] Warn about email/password change when using OIDC (#2975) 2024-06-07 15:21:57 +01:00