-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use same table join code for both read and list functions #3663
Merged
Merged
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3da5f83
Try stuff
dullbananas 178bd43
Revert "Try stuff"
dullbananas b9f9a23
Revert "Revert "Try stuff""
dullbananas ccd498d
Revert "Revert "Revert "Try stuff"""
dullbananas a1fa3ee
Revert "Revert "Revert "Revert "Try stuff""""
dullbananas 47000ff
Try more stuff
dullbananas 2aec4d6
Add queries function
dullbananas d3d309c
Simplify queries function
dullbananas 69afed0
Move aliases to db_schema
dullbananas b43e830
Revert "Move aliases to db_schema"
dullbananas 60dddd7
Add ReadFuture and ListFuture
dullbananas 078385d
Refactor queries function and add Queries struct
dullbananas 4e00652
Box futures in Queries::new
dullbananas d472aee
Use from_tuple
dullbananas d2d08dd
Add comment_view::queries and improve comment_report_view::queries
dullbananas 5874aec
Add local_user_view::queries
dullbananas 56fd2d7
Add post_report_view::queries
dullbananas 80bbd11
Ad post_view::queries
dullbananas e6dca52
Add private_message_report_view::queries
dullbananas 02ca335
private_message_view, registration_application_view
dullbananas f6f392c
Use 'a in BoxedQuery
dullbananas c1fec40
comment_reply_view, community_view
dullbananas 460e532
Change aliases to inline module
dullbananas 4cd95af
person_mention_view
dullbananas d98f541
person_view
dullbananas bcadb9c
Use separate community_person_ban joins instead of including boolean …
dullbananas 44ffd91
Merge remote-tracking branch 'upstream/main' into simp
dullbananas b3ced19
Merge branch 'main' into simp
dullbananas cc29a42
Fix comment_view
dullbananas c2706e2
Merge remote-tracking branch 'upstream/main' into simp
dullbananas dc49a67
rerun ci
dullbananas ce13c9c
Merge branch 'main' into simp
dullbananas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really do wish there was a better way to handle this, but oh well. Seems like such a common case, but because our type is so complicated, its near impossible to reverse.
We'll still merge, but if you get some time, ask @weiznich on matrix or here if there really is no better alternative for what we need.