Page MenuHomePhabricator

[keyserver] added target_message to messages table
ClosedPublic

Authored by ginsu on Nov 16 2022, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 10:01 PM
Unknown Object (File)
Sun, Dec 1, 2:37 AM
Unknown Object (File)
Tue, Nov 26, 5:34 AM
Unknown Object (File)
Tue, Nov 26, 5:34 AM
Unknown Object (File)
Tue, Nov 26, 5:34 AM
Unknown Object (File)
Tue, Nov 26, 5:34 AM
Unknown Object (File)
Mon, Nov 25, 8:31 PM
Unknown Object (File)
Sun, Nov 24, 11:53 AM

Details

Summary

added target_message to messages table. target_message is the id of the message that is being reacted to. Also added the index to target_message column and this is to optimize how we will be fetching reaction messages for a certain message


Linear Task: ENG-2265

Test Plan

Please see the screenshot to see that target_message is added to the messages table

Screenshot 2022-11-16 at 9.21.55 PM.png (1×3 px, 1 MB)

Also dropped and created my local DB to test the setup works as expected. Tested the stack locally in my environment to make sure everything still ran as expected/nothing crashed.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 16 2022, 6:25 PM
Harbormaster failed remote builds in B13498: Diff 18507!
Harbormaster returned this revision to the author for changes because remote builds failed.Nov 16 2022, 6:36 PM
Harbormaster failed remote builds in B13499: Diff 18508!
ginsu requested review of this revision.Nov 16 2022, 6:45 PM

Looks good!

(In the future it would be great to put some more context in the Summary section to explain why we're making this change)

This revision is now accepted and ready to land.Nov 16 2022, 8:08 PM

added index to target_message to messages table

ginsu edited the test plan for this revision. (Show Details)
keyserver/src/database/migration-config.js
80–91 ↗(On Diff #18541)

This can be one dbQuery with multipleStatements: true

made single dbQuery with multipleStatements: true