Skip to content
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

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

hivanalejandro
Copy link
Contributor

@hivanalejandro hivanalejandro commented Jan 17, 2025

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

  • I have followed guidelines from CONTRIBUTING.MD and Samples Style Guide
  • Tests pass: npm test (see Testing)
  • Lint pass: npm run lint (see Style)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • This pull request is from a branch created directly off of GoogleCloudPlatform/nodejs-docs-samples. Not a fork.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new sample directory, and I created GitHub Actions workflow for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

@hivanalejandro hivanalejandro requested review from a team as code owners January 17, 2025 21:00
Copy link
Contributor

@code-review-assist code-review-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.

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.
  • 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

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: datacatalog Issues related to the Data Catalog API. labels Jan 17, 2025
Copy link

snippet-bot bot commented Jan 17, 2025

Here is the summary of changes.

You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link
Contributor

@code-review-assist code-review-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.

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]
// -------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

low

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.

Suggested change
// -------------------------------
// -------------------------------
// Import required modules.
// -------------------------------
const {DataCatalogClient} = require('@google-cloud/datacatalog').v1;
const datacatalog = new DataCatalogClient();

@iennae iennae merged commit 0a0fd90 into main Jan 18, 2025
14 checks passed
@iennae iennae deleted the hivanalejandro-migrate-region-step4-389693076 branch January 18, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datacatalog Issues related to the Data Catalog API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants