-
Notifications
You must be signed in to change notification settings - Fork 109
chore: 553: Addressed PR comments from Pull request 564. #599
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @Sathyvs, 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 refines the 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 effectively addresses previous review comments by refactoring the pagination logic in JpaDatabasePushNotificationConfigStore to be cleaner and more robust. Key improvements include making the maximum page size configurable, validating page tokens more strictly, and updating tests to cover these changes. The code is well-structured, and the new test cases are thorough. I have a couple of suggestions to improve exception handling and code style.
.../extras/pushnotificationconfigstore/database/jpa/JpaDatabasePushNotificationConfigStore.java
Outdated
Show resolved
Hide resolved
...ificationconfigstore/database/jpa/JpaDatabasePushNotificationConfigStoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
|
@Sathyvs may you fix Gemini 's comments. I will take a deeper look today. |
…ted to PushNotificationConfig pagination feature
a5fd351 to
d115343
Compare
ehsavoie
left a comment
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.
I'm wondering if we should change this behaviour as i can see that the pagesize should be provided by the ListTaskPushNotificationConfigRequest according to https://github.com/a2aproject/A2A/blob/main/specification/grpc/a2a.proto#L832C9-L832C46 so this should be handled at a higher level in my humble opinion
|
@ehsavoie thank you for bringing this up. I agree to your point, but per the spec here https://a2a-protocol.org/latest/specification/#319-list-push-notification-configs It says the page_size and page_token are not mandatory. Also the spec doesn't mandate a value range, so if a request is made with page_size as Integer.MAX_VALUE, we cannot support that, and this configuration acts as a ceiling value for the size. We can increase it if 100 is too less. |
Changes related to PushNotificationConfig pagination feature
Description
Addresses PR comments from PR 564
Fixes #553 🦕