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 proto definition of plugin display RPC #3538

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

cyinma
Copy link
Member

@cyinma cyinma commented Dec 12, 2024

No description provided.

@cyinma cyinma requested a review from bufdev as a code owner December 12, 2024 20:48
@cyinma cyinma requested a review from mfridman December 12, 2024 20:48
Copy link
Contributor

github-actions bot commented Dec 12, 2024

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 12, 2024, 8:53 PM

@@ -29,6 +29,10 @@ service DisplayService {
rpc DisplayRepositoryElements(DisplayRepositoryElementsRequest) returns (DisplayRepositoryElementsResponse) {
option idempotency_level = NO_SIDE_EFFECTS;
}
// DisplayCheckPluginElements returns which check plugin elements should be displayed to the user.
rpc DisplayCheckPluginElements(DisplayCheckPluginElementsRequest) returns (DisplayCheckPluginElementsResponse) {
Copy link
Member

@mfridman mfridman Dec 12, 2024

Choose a reason for hiding this comment

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

I think this should be DisplayPluginElements and the terminology should be "plugin" because even though there might be additional types of plugins, the plugin pages (like settings, etc.) should be the same?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeh make sense, updated

@cyinma cyinma changed the title Add proto definition of check plugin display RPC Add proto definition of plugin display RPC Dec 12, 2024
@mfridman
Copy link
Member

I hope one day we can find a better pattern to avoid the proliferation of RPCs for individual UI elements and also move this internally because it's very specific to our UI implementation.

@cyinma cyinma merged commit 4f48042 into main Dec 12, 2024
11 checks passed
@cyinma cyinma deleted the cyinma/check-plugin-display branch December 12, 2024 21:24
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