Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Conversation

@sashaostrikov
Copy link
Contributor

Previously, passing more than one OrderBy parameters and using After/Before constructed invalid SQL queries such as: WHERE (user_id, repository_id) < (1).

The fix won't let this situation happen and keep only the first column for WHERE clause.

Test plan:
Test added + CI.

Test plan

@sashaostrikov sashaostrikov added the permissions-center Tracking issue for all-things permissions center. label Feb 3, 2023
@sashaostrikov sashaostrikov self-assigned this Feb 3, 2023
@cla-bot cla-bot bot added the cla-signed label Feb 3, 2023
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Feb 3, 2023

Codenotify: Notifying subscribers in CODENOTIFY files for diff 8c63877...96d772a.

No notifications.

@sashaostrikov sashaostrikov force-pushed the ao/chore/cleanup-pagination-code branch from 397dec5 to 3d928f8 Compare February 7, 2023 13:52
@sashaostrikov sashaostrikov force-pushed the ao/chore/cleanup-pagination-code branch from 3d928f8 to 96d772a Compare February 7, 2023 15:15
@sashaostrikov sashaostrikov changed the title chore: fix pagination related bug + clean up code. chore: clean up pagination related code Feb 7, 2023
Copy link
Member

@thenamankumar thenamankumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resume-worthy PR.

@sashaostrikov sashaostrikov enabled auto-merge (squash) February 7, 2023 15:19
@sashaostrikov sashaostrikov merged commit 1ea14a2 into main Feb 7, 2023
@sashaostrikov sashaostrikov deleted the ao/chore/cleanup-pagination-code branch February 7, 2023 15:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed permissions-center Tracking issue for all-things permissions center.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants