Commit graph

  • ea168ef3ec fix PutPollVote() to correctly use transaction kim 2023-10-31 21:53:45 +0000
  • 8667d6c978 remove excess where clause kim 2023-10-31 21:29:24 +0000
  • 582b78b6ca fix putting poll vote to update poll counts kim 2023-10-31 21:28:19 +0000
  • 7b2be3ea61 remove cached voter IDs list, instead store no. votes / voters in poll itself kim 2023-10-31 20:23:19 +0000
  • 04ca00f805 undo previous commits kim 2023-10-31 15:48:49 +0000
  • bba0f61854 fix per-choice counts not being provided for local statuses kim 2023-10-31 15:47:52 +0000
  • 02fbb3d5d5 correctly set the receiving account in fedi API poll vote enqueue kim 2023-10-31 15:33:40 +0000
  • 1d4b187ed6 log warn any unhandled create message types kim 2023-10-31 15:06:54 +0000
  • c3713a4e7c slightly more clear code kim 2023-10-31 15:06:43 +0000
  • f8caa97481 actually set the new poll on status on updating existing kim 2023-10-31 14:11:47 +0000
  • 145dc515a2
    Remove account_suspended_at_idx to resolve slow query issues (#2310) Sam Lade 2023-10-31 13:43:33 +0000
  • ec2673d321 catch the case of changed remote poll stats in dereference status logic kim 2023-10-31 13:27:38 +0000
  • a4f08ff2ef add support for cached remote vote + voter counts kim 2023-10-31 13:19:53 +0000
  • 748360e335 remove dereferenceancestors from CreateAnnounce(), DereferenceAnnounce() already handles this for remote statuses kim 2023-10-31 12:22:18 +0000
  • f7f726a7d3 fix possible nil exception in fetchStatusPolls() kim 2023-10-31 10:58:52 +0000
  • ca3a4f78b8 fix from federator UpdateStatus() to force a refresh, whether statusable provided or not kim 2023-10-30 20:58:53 +0000
  • 483aa2e1e1 fix the update / delete process for remote statuses with polls kim 2023-10-30 20:47:23 +0000
  • e737096257 ensure 'to' field gets set in poll optionable AS types kim 2023-10-30 20:07:22 +0000
  • 41d74a69cb fix CreatePollVote() to send as correct outbox IRI kim 2023-10-30 19:56:31 +0000
  • 5393965167 fix CreatePollVote() to specifically handle remote statuses, instead of the inverse... kim 2023-10-30 19:50:21 +0000
  • f1ab705515 fix possible panic in RefreshStatus() if not actually refreshed kim 2023-10-30 19:41:13 +0000
  • c81dea0c4e set the origin account in the poll expiry update queued message kim 2023-10-30 19:37:39 +0000
  • 3163379a80 add error on enqueueing federator message type left unhandled kim 2023-10-30 19:12:53 +0000
  • 0657c7154c add error on enqueueing client message type left unhandled kim 2023-10-30 19:12:01 +0000
  • 5859d6e27b fix incorrect activitytype sent for poll vote worker queueing kim 2023-10-30 19:10:48 +0000
  • ce48b64643 improved code formatting kim 2023-10-30 12:09:43 +0000
  • 8672e59fd7 some changes to how new statuses are ingested kim 2023-10-31 11:39:03 +0000
  • a5f6600127 correctly create new ID for poll + link to status in federatingDB kim 2023-10-25 17:07:42 +0100
  • 99275e3266 fix conversion of newly added polls kim 2023-10-25 16:55:49 +0100
  • 98bd63da8a correctly add the voted field to returned frontend poll kim 2023-10-25 16:46:02 +0100
  • f3f820dac8 correctly handle separate form data types kim 2023-10-25 16:40:14 +0100
  • a65db6a872 actually pass in the type converter kim 2023-10-24 17:33:42 +0100
  • 0ad3cc58b1 ACTUALLY ROUTE THE FUCKING POLLS ENDPOINT kim 2023-10-24 17:25:54 +0100
  • 4f5b9f2b17 allow caching of zero-length lists kim 2023-10-24 17:05:53 +0100
  • 71815310dc remove the old hacky dereferencer race condition fixes kim 2023-10-24 14:53:05 +0100
  • 04cc5b39a1 support passing in nil statusable in fedimessage kim 2023-10-20 14:24:13 +0100
  • 8c6fe480ed handle forwarded status updates kim 2023-10-20 14:19:54 +0100
  • 14abe0a7be better handling of forwarded status updates kim 2023-10-20 14:12:44 +0100
  • 1f23b75236 check for nil vote by requester kim 2023-10-20 13:49:37 +0100
  • 29e724e600 improved PollVote{} comment to explain how it may represent 1 / multiple kim 2023-10-20 10:36:54 +0100
  • 375c165bd3 use singular PollVote{} to store all votes by an account in a singular poll kim 2023-10-20 10:30:49 +0100
  • 4a2260e4a0 handle data-race on poll insert in enrichStatus() kim 2023-10-19 09:57:57 +0100
  • 1794cf5291 fix broken UpdatePoll() missing a where clause kim 2023-10-19 09:34:26 +0100
  • b0a87af8be fix poll vote db type kim 2023-10-18 15:07:11 +0100
  • e1b20946b9 add code comments to poll + poll vote database models kim 2023-10-18 15:03:57 +0100
  • bd697c7b30 always include vote counts when poll is by author kim 2023-10-18 14:54:44 +0100
  • 33c55fc0a1 add help text to common account not found errors kim 2023-10-18 14:47:37 +0100
  • 8ea5073461 formatting kim 2023-10-18 14:41:49 +0100
  • 5d49334e8a update to actually use safe text ... kim 2023-10-18 14:32:04 +0100
  • 9cac89af6d ensure the not found handler passes through safe text kim 2023-10-18 14:31:14 +0100
  • 494ca0fd8c add help text to not found errors kim 2023-10-18 14:21:33 +0100
  • 0c4db4279a fix bun column types kim 2023-10-18 13:51:55 +0100
  • f7a03cdd8e fix frontend polls showing as closed when they shouldn't be kim 2023-10-18 13:27:01 +0100
  • acaf5722e4 fix most of remaining tests kim 2023-10-18 11:56:47 +0100
  • 91cc6df303 fix the NewID() function to use any existing ID property if set. kim 2023-10-18 11:41:58 +0100
  • 0067bfa32c undo last commit, ensure poll gets added to frontend status repr kim 2023-10-10 11:10:12 +0100
  • e5581c651f return copy of URL on GetJSONLDId() kim 2023-10-10 10:55:49 +0100
  • 5d152532dc fix status common processor not being set kim 2023-10-10 09:06:29 +0100
  • 12c07a3b95 fix broken cache key in hooks kim 2023-10-10 09:01:15 +0100
  • aa4740734b ensure that timeline representations are appropriately invalidated during poll logic kim 2023-10-10 08:43:18 +0100
  • e5a24af3bc more test fix-up kim 2023-10-10 08:26:29 +0100
  • e5e22cabc4 add back the published property to statuses kim 2023-10-10 08:20:20 +0100
  • 9ffc4f67d6 fix changed activity ID format kim 2023-10-10 07:32:54 +0100
  • 4de5da0cd1 fix test panics due to changed scheduling of media cleanup task kim 2023-10-10 07:27:28 +0100
  • 3a29caefeb fix linter issues kim 2023-10-10 07:12:29 +0100
  • b6ef32f9c6 fix status poll migration kim 2023-10-10 07:09:30 +0100
  • 37ef420db1 don't panic if db nil on teardown (otherwise it hides other errors) kim 2023-10-10 07:03:56 +0100
  • 338e8c2ec2 add a database func to select all open polls, add a ScheduleAll() function kim 2023-10-09 20:26:25 +0100
  • 13fbd36a5b remove unneeded defer kim 2023-10-09 20:17:45 +0100
  • da45c70ed8 ensure poll gets marked as closed on expiry handler kim 2023-10-09 20:15:49 +0100
  • 227d5aa4c1 add poll expiry handler cancel() to worker wipestatus func kim 2023-10-09 17:31:36 +0100
  • 61a7c236ed start adding support for poll scheduling kim 2023-10-09 17:25:42 +0100
  • f439ec7a41 fix broken test(s), fix use of generics for < go1.21 kim 2023-10-09 13:01:16 +0100
  • 1e02218aae simplify some code kim 2023-10-09 12:51:59 +0100
  • c308b69df3 finish adding support for poll vote federation in / out kim 2023-10-09 12:46:43 +0100
  • 5ae5b84567 refactor Converter.WrapStatusable___() functions, only wrap status in create if NOT a question kim 2023-10-04 14:17:14 +0100
  • 1643c441e7 update some code in the federatingdb, update to handle question type kim 2023-10-03 16:30:11 +0100
  • 94d1945e04 migration to add new polls,poll_votes tables + add poll_id statuses column kim 2023-10-02 15:44:32 +0100
  • a4a02968c7 code formatting kim 2023-10-02 15:31:25 +0100
  • 9e0affb449 add poll creation on client API status create kim 2023-10-02 15:24:37 +0100
  • 9813b5ac58 much improved vote "pre-flight" checks, enqueue NOTE UPDATE side-effects on vote kim 2023-10-02 11:42:01 +0100
  • 72740e814b set the endTime, closed and votersCount properties on Question object kim 2023-10-02 11:10:38 +0100
  • 8954d877d6 remove dead code kim 2023-09-30 15:45:22 +0100
  • fdc0260256 update poll/poll votes cache memory defaults kim 2023-09-30 15:37:58 +0100
  • 0a8ab47f03 add poll + poll vote cache memory size estimations kim 2023-09-30 15:27:58 +0100
  • c057e46604 improved code comments kim 2023-09-30 15:02:26 +0100
  • 066040dd26 add poll data to AS status data in type converter kim 2023-09-30 14:59:19 +0100
  • 93c068b41b update StatusToAS() to correctly make AS Question when poll provided kim 2023-09-29 21:21:05 +0100
  • 19e5940581 add handling of updated statuses via the client API kim 2023-09-29 20:32:24 +0100
  • 3590af3a2b handle poll population in typeconverter and dereferencer kim 2023-09-29 16:06:02 +0100
  • d7d493508c add all necessary ap subpkg extraction functions, slight changes to DB models kim 2023-09-29 15:12:24 +0100
  • fb397722b0 return correct HTTP error code on voting multiple times in poll kim 2023-09-29 12:13:34 +0100
  • 42fca22556 update poll vote processing to better handle multi choices, add more code + swagger documentation kim 2023-09-29 12:02:16 +0100
  • 376f7d32d0 implement DeletePollByID() kim 2023-09-28 11:06:36 +0100
  • 6ea7b7eefe add poll population to PopulateStatus() kim 2023-09-28 10:59:57 +0100
  • 065281faa2 add pollID to status table, delete poll information during status wipe kim 2023-09-28 10:54:12 +0100
  • 9387d60b79 start adding deletion of poll votes during wipestatus kim 2023-09-22 15:35:10 +0100
  • 0538d7666f finish populating poll database functions kim 2023-09-21 18:54:35 +0100
  • 2349cdc9d4 flesh out more of the poll vote deletion process, and as a side effect of account deletion kim 2023-09-21 18:22:59 +0100
  • 78b12514df more fleshing out of poll database methods, caches and invalidation logic kim 2023-09-21 18:04:38 +0100