-
Notifications
You must be signed in to change notification settings - Fork 110
fix!: Rename pushNotification to pushNotificationConfig (#286) #290
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
Conversation
Summary of ChangesHello @powmax-commits, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a significant renaming operation, changing all instances of Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a breaking change by renaming pushNotification to pushNotificationConfig for consistency. The changes are applied correctly across all relevant files, including the protobuf definition, generated code, and business logic. The refactoring is well-executed, and I have no further suggestions.
| "le/api/field_behavior.proto\032\033google/prot" + | ||
| "obuf/empty.proto\032\034google/protobuf/struct" + | ||
| ".proto\032\037google/protobuf/timestamp.proto\"" + | ||
| "\236\001\n\030SendMessageConfiguration\022\035\n\025accepted" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We automatically generate this file using buf generate from the .proto specification file from the a2a repo. We can remove these changes from this PR for now and once updated upstream, we'll incorporate the changes here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| public static final int PUSH_NOTIFICATION_FIELD_NUMBER = 2; | ||
| private io.a2a.grpc.PushNotificationConfig pushNotification_; | ||
| public static final int PUSH_NOTIFICATION_CONFIG_FIELD_NUMBER = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, since we auto-generate this file, we can remove these changes for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| * | ||
| * <code>.a2a.v1.PushNotificationConfig push_notification = 2;</code> | ||
| * @return Whether the pushNotification field is set. | ||
| * <code>.a2a.v1.PushNotificationConfig push_notification_config = 2;</code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, this is an auto-generated file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
spec-grpc/src/main/proto/a2a.proto
Outdated
| repeated string accepted_output_modes = 1; | ||
| // A configuration of a webhook that can be used to receive updates | ||
| PushNotificationConfig push_notification = 2; | ||
| PushNotificationConfig push_notification_config = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to raise an issue in https://github.com/a2aproject/A2A and submit a PR against that project with this change? (that's where we get this .proto file from and use it to generate the files).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending, will backlink here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: a2aproject/A2A#1091
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks very much!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem - PR here: a2aproject/A2A#1092
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, @powmax-commits!
I've just added some small comments here to remove the changes from the auto-generated gRPC files for now and submit a PR against https://github.com/a2aproject/A2A/issues to correct the gRPC .proto spec file. Once that change is included in a release, we'll update the generated files here accordingly.
Thanks very much!
|
Thanks for taking a look @fjuma - I'll address both and update the request. |
6349afd to
2b7730d
Compare
…) (a2aproject#290) # Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [X] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [X] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [X] Appropriate READMEs were updated (if necessary) Fixes a2aproject#286 🦕
…) (a2aproject#290) # Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [X] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [X] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [X] Appropriate READMEs were updated (if necessary) Fixes a2aproject#286 🦕
Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
CONTRIBUTINGGuide.fix:which represents bug fixes, and correlates to a SemVer patch.feat:represents a new feature, and correlates to a SemVer minor.feat!:, orfix!:,refactor!:, etc., which represent a breaking change (indicated by the!) and will result in a SemVer major.Fixes #286 🦕