fix: Fixing missing push configuration after normalization for rest transport#346
Conversation
…ormalization happens. The test purposely fails at the moment
…nit testes. Removed normalization functions but remained field checks to align with currently existing unit tests.
🧪 Code Coverage
Generated by coverage-comment.yml |
Summary of ChangesHello, 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 addresses a critical bug in the REST transport handler where push notification configurations were not being correctly processed. The core of the fix involves a significant simplification of the codebase by removing all explicit normalization logic that previously handled snake_case to camelCase conversions. This change streamlines the data flow, ensuring that parameters are handled directly, and improves the robustness of the system by adding explicit validation checks where normalization was removed. The updated test suite validates these changes and prevents regressions. Highlights
Changelog
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.
Code Review
The pull request updates a test case in test/server/rest_transport_handler.spec.ts to include new blocking and push_notification_config properties within the configuration object. These properties are added to both the test input and the expected values in the sendMessage assertion, reflecting an update to the RestTransportHandler's configuration handling.
🤖 I have created a release *beep* *boop* --- ## [0.3.12](v0.3.11...v0.3.12) (2026-03-10) ### Bug Fixes * Fixing missing push configuration after normalization for rest transport ([#346](#346)) ([54ac8c4](54ac8c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…ransport (a2aproject#346) # Description This PR solves a bug that was mentioned here: a2aproject#336. The issue occurred due to missing mapping of `pushNotificationConfig` in the mapping method. Since mapping is no longer needed, all logic related to field mapping was removed in this PR. Changes: - Extension to an existing unit test to check for `pushNotificationConfig` presence. This test failed as expected before removing the normalization, hence, catching the bug for the future. - Remove rest types and related unions. - Removed snake_case cases from unit testes. - Removed normalization functions but remained field checks to align with currently existing unit tests. Fixes a2aproject#336 --------- Co-authored-by: Bartek Gralewicz <bgralewicz@google.com>
🤖 I have created a release *beep* *boop* --- ## [0.3.12](a2aproject/a2a-js@v0.3.11...v0.3.12) (2026-03-10) ### Bug Fixes * Fixing missing push configuration after normalization for rest transport ([a2aproject#346](a2aproject#346)) ([54ac8c4](a2aproject@54ac8c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
…2aproject#352) Apparently the code removed in a2aproject#346 wasn't "dead", this method wasn't properly migrated in a2aproject#292. Tests are updated to cover this. Fixes a2aproject#336
Description
This PR solves a bug that was mentioned here: #336.
The issue occurred due to missing mapping of
pushNotificationConfigin the mapping method. Since mapping is no longer needed, all logic related to field mapping was removed in this PR.Changes:
pushNotificationConfigpresence. This test failed as expected before removing the normalization, hence, catching the bug for the future.Fixes #336