feat(secretmanager): Adding tags samples#4215
feat(secretmanager): Adding tags samples#4215khilan-crest wants to merge 4 commits intoGoogleCloudPlatform:mainfrom
Conversation
|
Here is the summary of changes. You are about to add 8 region tags.
This comment is generated by snippet-bot.
|
Summary of ChangesHello @khilan-crest, 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 significantly expands the Google Cloud Secret Manager Node.js samples by introducing new functionalities related to tag management and filtered listing of secrets and their versions. It provides developers with practical code examples for detaching and listing tag bindings, as well as filtering secrets and secret versions based on specific criteria, with full support for regional deployments. 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.
Code Review
This pull request adds several new samples for interacting with Google Cloud Secret Manager, focusing on tags and filtering. The new samples demonstrate how to list secrets and secret versions with filters, and how to list and detach tag bindings for both global and regional secrets. The changes also include corresponding tests for the new samples. My review focuses on ensuring the correctness and robustness of the new sample code. I've identified a recurring issue across several new files related to improper handling of asynchronous operations, which could lead to unhandled promise rejections and incorrect script behavior. I've provided suggestions to fix this.
Adding tags samples
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
npm test(see Testing)npm run lint(see Style)GoogleCloudPlatform/nodejs-docs-samples. Not a fork.