Repository navigation
[db-queries] allow paginated to work with joins - #10717
Merged
Merged
Conversation
Contributor
|
Not the first time I've seen CI run using config from a different commit than the one on the PR. If you rebase on main it'll work. But wow. I think the error is because the default license scanner config it falls back to doesn't have the file patterns to exclude a symlink that points to a directory and it doesn't know what the hell to do with that. |
Many moons ago, I merged PR #6530, which allowed the `paginated_multicolumn` wrapper to work with a `query` expression which could be a table, *or* a join of two or more tables, rather than just a single table. This involved some extremely complex and unpleasant Diesel magic that, in hindsight, I have no no idea how I figured out, but it did work. However, the same change was never applied to the `paginated` function, just `paginated_multicolumn`. I guess that in the intervening year and change, we have never needed to paginate a join on one column. Well, now I need to do this. So this branch makes a similar change to `paginated`. This is basically copied from what I did to `paginated_multicolumn` in #6530, but slightly simpler because there are fewer columns which must be ordered. Hooray!
hawkw
force-pushed
the
eliza/paginated-joins
branch
from
July 1, 2026 21:30
a5fce95 to
bf0329c
Compare
sunshowers
approved these changes
Jul 1, 2026
Member
Author
yup, done. thanks! |
hawkw
enabled auto-merge (squash)
July 1, 2026 21:33
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Many moons ago, I merged PR #6530, which allowed the
paginated_multicolumnwrapper to work with aqueryexpression which could be a table, or a join of two or more tables, rather than just a single table. This involved some extremely complex and unpleasant Diesel magic that, in hindsight, I have no no idea how I figured out, but it did work. However, the same change was never applied to thepaginatedfunction, justpaginated_multicolumn. I guess that in the intervening two years, we have never needed to paginate a join on one column rather than two.Well, now I need to do this. So this branch makes a similar change to
paginated. This is basically copied from what I did topaginated_multicolumnin #6530, but slightly simpler because there are fewer columns which must be ordered. Hooray!