gotosocial/internal/processing
Vyr Cossont 8fdd358f4b
[feature] Conversations API (#3013)
* Implement conversations API

* Sort and page conversations by last status ID

* Appease linter

* Fix deleting conversations and statuses

* Refactor to make migrations automatic

* Lint

* Update tests post-merge

* Fixes from live-fire testing

* Linter caught a format problem

* Refactor tests, fix cache

* Negative test for non-DMs

* Run conversations advanced migration on testrig startup as well as regular server startup

* Document (lack of) side effects of API method for deleting a conversation

* Make not-found check less nested for readability

* Rename PutConversation to UpsertConversation

* Use util.Ptr instead of IIFE

* Reduce cache used by conversations

* Remove unnecessary TableExpr/ColumnExpr

* Use struct tags for both unique constraints on Conversation

* Make it clear how paging with GetDirectStatusIDsBatch should be used

* Let conversation paging skip conversations it can't render

* Use Bun NewDropTable

* Convert delete raw query to Bun

* Convert update raw query to Bun

* Convert latestConversationStatusesTempTable raw query partially to Bun

* Convert conversationStatusesTempTable raw query partially to Bun

* Rename field used to store result of MaxDirectStatusID

* Move advanced migrations to their own tiny processor

* Catch up util function name with main

* Remove json.… wrappers

* Remove redundant check

* Combine error checks

* Replace map with slice of structs

* Address processor/type converter comments

- Add context info for errors
- Extract some common processor code into shared methods
- Move conversation eligibility check ahead of populating conversation

* Add error context when dropping temp tables
2024-07-23 20:44:31 +01:00
..
account [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
admin [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00:00
advancedmigrations [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
common [bugfix] update common get target account / status doing refresh async (#3124) 2024-07-21 14:04:19 +02:00
conversations [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
fedi [bugfix] Deref stats async, serve stub collections if handshaking (#2990) 2024-06-11 11:54:59 +02:00
filters [chore] media pipeline improvements (#3110) 2024-07-17 15:26:33 +00: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 [bugfix] media.Processor{}.GetFile() returning 404s on first call, correctly loading on 2nd (#3129) 2024-07-22 18:45:48 +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] Fix typo (#3113) 2024-07-17 22:04:52 +02:00
stream [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
timeline [bugfix] Handle ErrHideStatus when preparing timeline statuses (#3071) 2024-07-04 19:29:28 -07:00
user [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
workers [feature] Conversations API (#3013) 2024-07-23 20:44:31 +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 [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
processor_test.go [performance] update remaining worker pools to use queues (#2865) 2024-04-26 13:50:46 +01:00