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

Add CheckService to plugin.v1beta1 #136

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Add CheckService to plugin.v1beta1 #136

merged 4 commits into from
Dec 10, 2024

Conversation

mfridman
Copy link
Member

@mfridman mfridman commented Nov 28, 2024

This PR adds a CheckService that takes aResourceRef to allow API callers to fetch rules/categories for a plugin (latest commit on default label), label (latest commit) or commit.

For a moment, I thought just maybe we could ask callers to download the wasm blob and invoke it instead, but I suspect we're not there yet. We need some way to get the rules/categories cheaply.

Copy link

github-actions bot commented Nov 28, 2024

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 28, 2024, 5:55 PM

Copy link
Member

@bufdev bufdev left a comment

Choose a reason for hiding this comment

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

Fix docs re resources


// Operate on Check plugins.
service CheckService {
// List rules for a given plugin commit.
Copy link
Member

Choose a reason for hiding this comment

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

Docs are off

rpc ListRules(ListRulesRequest) returns (ListRulesResponse) {
option idempotency_level = NO_SIDE_EFFECTS;
}
// List categories for a given plugin commit.
Copy link
Member

Choose a reason for hiding this comment

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

Same

@mfridman mfridman merged commit 58fb62a into main Dec 10, 2024
5 checks passed
@mfridman mfridman deleted the mf/plugin-checkservice branch December 10, 2024 17:56
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