-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: (data_catalog) delete deprecated region tag in createtEntryGroup.js #3954
Conversation
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.
Hi team,
I'm currently reviewing this pull request and will provide my feedback shortly. In the meantime, here's a summary for you and other reviewers to quickly get up to speed:
This pull request, submitted by @hivanalejandro, aims to fix a bug by removing a deprecated region tag from the createEntryGroup.js
file within the datacatalog/cloud-client
directory. The specific tag removed is datacatalog_create_entry_group_tag
.
Here's a breakdown of the changes:
- File Modified:
datacatalog/cloud-client/createEntryGroup.js
- Changes: The pull request removes two lines of code (lines 29 and 62 in the original file) that included the deprecated tag. The before and after diffs show the removal clearly. Specifically:
- Line 29:
// [START datacatalog_create_entry_group_tag]
was removed. - Line 62:
// [END datacatalog_create_entry_group_tag]
was removed.
- Line 29:
- Intent: To update the code to reflect current best practices and remove the now-obsolete region tag, addressing bug b/389693076.
The author has indicated that all tests and linting checks have passed. They've also checked off all items in their checklist.
A little haiku to lighten the mood:
Tag removed, code clean,
Bugs banished, peace restored now,
Git's happy dance plays.
Thanks!
Gemini
Here is the summary of changes. You are about to delete 1 region tag.
This comment is generated by snippet-bot.
|
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.
This pull request removes the deprecated region tag "datacatalog_create_entry_group_tag" from the createEntryGroup.js
file. This change correctly addresses the issue described in the linked bug report. The removal of the deprecated tag improves the clarity and maintainability of the code. The checklist items related to testing and linting are important for ensuring code quality. I've referenced the Node.js Samples Style Guide in this review.
@@ -26,7 +26,6 @@ const main = async ( | |||
entryGroupId | |||
) => { | |||
// [START data_catalog_create_entry_group] | |||
// [START datacatalog_create_entry_group_tag] | |||
// ------------------------------- |
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.
Per the Node.js Samples Style Guide, there should be only one empty line between the require statements and the code.
Suggestion: Remove the extra empty line.
// ------------------------------- | |
// ------------------------------- | |
// Import required modules. | |
// ------------------------------- | |
const {DataCatalogClient} = require('@google-cloud/datacatalog').v1; | |
const datacatalog = new DataCatalogClient(); |
Description
Remove region tag "datacatalog_create_entry_group_tag"
Fixes b/389693076
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.