Skip to content

chore(job): migration step 3 - delete region tags in jobs/v3/api_client/base_job_sample.py#13031

Merged
engelke merged 1 commit intoGoogleCloudPlatform:mainfrom
eapl-gemugami:paradalicea/chore/job/migrate-regions-step-3-remove-regions-to-base-job-sample
Jan 9, 2025
Merged

chore(job): migration step 3 - delete region tags in jobs/v3/api_client/base_job_sample.py#13031
engelke merged 1 commit intoGoogleCloudPlatform:mainfrom
eapl-gemugami:paradalicea/chore/job/migrate-regions-step-3-remove-regions-to-base-job-sample

Conversation

@eapl-gemugami
Copy link
Contributor

Description

Fixes Internal:
b/347349725
b/347825738
b/347825769
b/347350189

Checklist

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: jobs Issues related to the Cloud Talent Solution Job Search API. labels Jan 3, 2025
Copy link

@ghost ghost 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 to help you and other reviewers quickly understand the changes:

This pull request, authored by eapl-gemugami, aims to remove redundant region tags from jobs/v3/api_client/base_job_sample.py. The changes address several internal issues (b/347349725, b/347825738, b/347825769, b/347350189).

Here's a breakdown of the modifications:

  • jobs/v3/api_client/base_job_sample.py: Several comment blocks (# [START basic_job], # [END basic_job], etc.) have been removed. Specifically:
    • Lines 29-30: Removed # [START basic_job] and # [START basic_job]
    • Lines 51-52: Removed # [END basic_job] and # [END job_basic_job]
    • Lines 73-74: Removed # [END create_job] and # [END job_create_job]
    • Lines 88-89: Removed # [END job_get_job]
    • Lines 91-92: Removed # [START update_job] and # [START job_update_job]
    • Lines 109-110: Removed # [END update_job] and # [END job_update_job]
    • Lines 131-132: Removed # [END update_job_with_field_mask] and # [END job_update_job_with_field_mask]
    • Lines 146-147: Removed # [END delete_job] and # [END job_delete_job]

The author has confirmed that tests and lint checks have passed.


A little haiku to lighten the mood:

Code flows like a stream,
Cleaning comments, pure and bright,
Reviews now so swift.

Thanks!
Gemini

@ghost
Copy link

ghost commented Jan 3, 2025

Gemini encountered an error creating the review. You can try again by commenting @code-review-assist review.

@eapl-gemugami eapl-gemugami added the snippet-bot:force-run Force snippet-bot runs its logic label Jan 6, 2025
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jan 6, 2025
@snippet-bot
Copy link

snippet-bot bot commented Jan 6, 2025

Here is the summary of changes.

You are about to delete 5 region tags.

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

@eapl-gemugami eapl-gemugami marked this pull request as ready for review January 6, 2025 17:25
@eapl-gemugami eapl-gemugami requested review from a team as code owners January 6, 2025 17:25
Copy link

@ghost ghost 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, authored by eapl-gemugami, aims to remove redundant region tags from jobs/v3/api_client/base_job_sample.py. The changes address several internal issues (b/347349725, b/347825738, b/347825769, b/347350189).

Here's a breakdown of the changes:

  • jobs/v3/api_client/base_job_sample.py: This file has undergone several modifications to remove the duplicate [START basic_job] and [END basic_job] tags (lines 29-30, 51-52), [START create_job] and [END create_job] tags (lines 56-57, 73-74), [START update_job] and [END update_job] tags (lines 91-92, 109-110), and [START update_job_with_field_mask] and [END update_job_with_field_mask] tags (lines 114-115, 131-132), and [START delete_job] and [END delete_job] tags (lines 136-137, 146-147). The changes are focused on cleaning up the code comments and removing the redundant tags. There are no functional changes to the code itself.

The author has indicated that all tests and linting checks have passed.


And now, a little haiku to lighten the mood:

Tags removed with care,
Code now cleaner, bright, and new,
Review's swift and kind.

@ghost
Copy link

ghost commented Jan 6, 2025

Gemini encountered an error creating the review. You can try again by commenting @code-review-assist review.

Copy link

@ghost ghost 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 feedback shortly. In the meantime, here's a summary for you and other reviewers to quickly get up to speed:

This pull request, authored by eapl-gemugami, aims to remove redundant region tags from jobs/v3/api_client/base_job_sample.py. The changes address several internal issues (b/347349725, b/347825738, b/347825769, b/347350189).

Here's a breakdown of the changes:

  • jobs/v3/api_client/base_job_sample.py: This file has multiple edits, all focused on removing duplicate comment blocks. Specifically:
    • Lines 29-30: Removed # [START basic_job]
    • Lines 51-52: Removed # [END basic_job]
    • Lines 56-57: Removed # [START create_job]
    • Lines 73-74: Removed # [END create_job]
    • Lines 89-90: Removed # [END job_get_job]
    • Lines 91-92: Removed # [START update_job]
    • Lines 109-110: Removed # [END update_job]
    • Lines 114-115: Removed # [START update_job_with_field_mask]
    • Lines 131-132: Removed # [END update_job_with_field_mask]
    • Lines 136-137: Removed # [START delete_job]
    • Lines 146-147: Removed # [END delete_job]

The author has indicated that all tests and linting checks passed.

Let me know if you have any questions.


A little haiku to brighten your day:

Code flows like a stream,
Cleaning up, a gentle hand,
Clarity now shines.

@ghost
Copy link

ghost commented Jan 6, 2025

Gemini encountered an error creating the review. You can try again by commenting @code-review-assist review.

Copy link

@ghost ghost 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 to help you and other reviewers quickly understand the changes:

This pull request, authored by eapl-gemugami, aims to remove redundant region tags from jobs/v3/api_client/base_job_sample.py. It addresses several internal issues (b/347349725, b/347825738, b/347825769, b/347350189).

Here's a breakdown of the changes:

  • File: jobs/v3/api_client/base_job_sample.py
    • Removed redundant # [START basic_job] and # [END basic_job] tags around lines 29-51.
    • Removed redundant # [START create_job] and # [END create_job] tags around lines 56-73.
    • Removed redundant # [START update_job] and # [END update_job] tags around lines 91-109.
    • Removed redundant # [START update_job_with_field_mask] and # [END update_job_with_field_mask] tags around lines 114-131.
    • Removed redundant # [START delete_job] and # [END delete_job] tags around lines 136-146.

The author has confirmed that tests and lint checks passed. They've also followed the sample guidelines.


And now, a little haiku to lighten the mood:

Code flows like a stream,
Cleaning tags, a gentle hand,
Clarity's soft grace.

Thanks!
Gemini

@ghost
Copy link

ghost commented Jan 6, 2025

Gemini encountered an error creating the review. You can try again by commenting @code-review-assist review.

Copy link
Contributor

@engelke engelke left a comment

Choose a reason for hiding this comment

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

LGTM

@engelke engelke merged commit ff49b9b into GoogleCloudPlatform:main Jan 9, 2025
3 checks passed
@eapl-gemugami eapl-gemugami deleted the paradalicea/chore/job/migrate-regions-step-3-remove-regions-to-base-job-sample branch January 9, 2025 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: jobs Issues related to the Cloud Talent Solution Job Search API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants