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: list access keys query #3151

Merged
merged 1 commit into from
Sep 7, 2022
Merged

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Sep 7, 2022

Summary

Set OrganizationID and order by in the query. Update the tests to catch the bug.

Set OrganizationID and order by in the query.

Update the tests to catch the bug.
@@ -291,23 +291,23 @@ func TestListAccessKeys(t *testing.T) {
createIdentities(t, db, user, otherUser)

first := &models.AccessKey{
Name: "first",
Name: "alpha",
Copy link
Contributor Author

@dnephin dnephin Sep 7, 2022

Choose a reason for hiding this comment

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

I changed these names so that the expected values in the existing tests sort correctly. I changed the insertion order below so that the tests would fail without this change.

Copy link
Collaborator

@mxyng mxyng left a comment

Choose a reason for hiding this comment

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

LGTM

@dnephin dnephin merged commit b1e29f8 into main Sep 7, 2022
@dnephin dnephin deleted the dnephin/fix-access-key-list-by-org branch September 7, 2022 22:18
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