Skip to content

Conversation

google-labs-jules[bot]
Copy link
Contributor

Combines the remoteconfig_publish_template and remoteconfig_rollback_template MCP tools into a single remoteconfig_update_template MCP tool. This new tool can either publish a new template or rollback an existing one.


PR created automatically by Jules for task 16713298962870312555

Combines the remoteconfig_publish_template and remoteconfig_rollback_template MCP tools into a single remoteconfig_update_template MCP tool.

This new tool can either publish a new template by providing a template object, or rollback an existing template by providing a version number.
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@joehan
Copy link
Contributor

joehan commented Sep 23, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 refactors the remote config tools by combining remoteconfig_publish_template and remoteconfig_rollback_template into a single remoteconfig_update_template tool. This is a good simplification of the toolset. The implementation of the new tool is mostly correct, but I've found a few issues in the new update_template.ts file. There's a critical issue with the Zod schema for the template which would cause it to be empty, a high-severity issue with checking for the version_number which could fail for version 0, and a medium-severity suggestion to improve the readability of the input validation logic. Please see my detailed comments for suggestions.

google-labs-jules bot and others added 5 commits September 23, 2025 05:04
Combines the remoteconfig_publish_template and remoteconfig_rollback_template MCP tools into a single remoteconfig_update_template MCP tool.

This new tool can either publish a new template by providing a template object, or rollback an existing template by providing a version number.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Adds validation to ensure that the version number provided for a rollback is a positive integer.
@joehan joehan marked this pull request as ready for review September 23, 2025 05:43
(data) =>
(data.template && !data.version_number) || (!data.template && data.version_number),
{
message: "Either a template or a version number must be specified, but not both.",
Copy link
Contributor

Choose a reason for hiding this comment

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

A better message could be: "Either provide a template for publish, or a version number to rollback to, but not both."

@github-project-automation github-project-automation bot moved this from Done to Approved [PR] in [Cloud] Extensions + Functions Sep 25, 2025
@joehan joehan enabled auto-merge (squash) September 25, 2025 21:08
@joehan joehan merged commit c45b093 into master Sep 30, 2025
48 checks passed
@joehan joehan deleted the feat/remoteconfig-update-template branch September 30, 2025 17:42
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