Skip to content
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

'use strict';

// [START retail_remove_fulfillment_places]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The region tag name retail_remove_fulfillment_places suggests it covers only the logic for removing fulfillment places. However, the tag spans the entire script, including setup (product creation) and teardown (product deletion). This can be misleading.

To more accurately reflect that this tag covers the entire runnable tutorial, it's better to rename it.

Suggested change
// [START retail_remove_fulfillment_places]
// [START retail_remove_fulfillment_places_tutorial]


async function main(generatedProductId) {
// Imports the Google Cloud client library.
const {ProductServiceClient} = require('@google-cloud/retail').v2;
Expand Down Expand Up @@ -84,3 +86,5 @@ process.on('unhandledRejection', err => {
});

main(...process.argv.slice(2));

// [END retail_remove_fulfillment_places]
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To maintain consistency with the START tag, this END tag should also be renamed to match. This ensures the region tags are correctly paired and avoids errors.

Suggested change
// [END retail_remove_fulfillment_places]
// [END retail_remove_fulfillment_places_tutorial]