Skip to content

Move more API key read paths to centralized query.#11452

Merged
vadimberezniker merged 3 commits intomasterfrom
consolidate_api_key_query_2
Mar 2, 2026
Merged

Move more API key read paths to centralized query.#11452
vadimberezniker merged 3 commits intomasterfrom
consolidate_api_key_query_2

Conversation

@vadimberezniker
Copy link
Member

Depends on #11448

return grpb.Group_GroupStatus(g.Status)
}

// apiKeyGroupFullData contains full API key data and data for the owning group.
Copy link
Member

Choose a reason for hiding this comment

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

nit: the scope of this struct seems unclear because of its name - maybe add an explicit comment about how this is different from apiKeyGroup and how it's used. Or ideally use a clearer name

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed it to apiKeyGroupRow and beefed up the description.

Copy link
Member

@tylerwilliams tylerwilliams left a comment

Choose a reason for hiding this comment

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

naming is hard!

Base automatically changed from consolidate_api_key_query to master March 2, 2026 22:38
The lookup is going to become more complex and it won't make sense for
each caller to execute the necessary queries.
@vadimberezniker vadimberezniker force-pushed the consolidate_api_key_query_2 branch from c6e13a9 to f077160 Compare March 2, 2026 22:39
vadimberezniker added a commit that referenced this pull request Mar 2, 2026
@vadimberezniker vadimberezniker merged commit 63a3dcc into master Mar 2, 2026
12 of 13 checks passed
@vadimberezniker vadimberezniker deleted the consolidate_api_key_query_2 branch March 2, 2026 23:10
vadimberezniker added a commit that referenced this pull request Mar 2, 2026
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.

3 participants