Skip to content
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

fix: More adjustments to run query differ #1501

Merged
merged 1 commit into from
Jan 23, 2025
Merged

fix: More adjustments to run query differ #1501

merged 1 commit into from
Jan 23, 2025

Conversation

bchu1
Copy link
Contributor

@bchu1 bchu1 commented Jan 22, 2025

Comment on lines +365 to +367
.sort((authorA, authorB) =>
authorA.node.name.localeCompare(authorB.node.name),
),
Copy link
Contributor

Choose a reason for hiding this comment

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

We are sorting it in two places to compare v1 to v2?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, so for fields where both V1 and V2 have non-deterministic ordering, we have to sort both of them (sometimes when it makes sense from the user's perspective I'll just add sorting to the GQL query, but for this one it'll prolly just make things more confusing if I do that bc we're sorting it again in the <AuthorList> component)

@bchu1 bchu1 merged commit 4b8f40b into main Jan 23, 2025
12 of 16 checks passed
@bchu1 bchu1 deleted the bchu/fixrun branch January 23, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants