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

chore(job): migrate regions step 3 - remove regions in auto_complete_sample.py #13017

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eapl-gemugami
Copy link
Contributor

Description

Fixes Internal:
b/347825711
b/347350180

Checklist

Copy link

@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 have a full review ready in a few minutes. In the meantime, here's a quick summary to get everyone up to speed:

This PR, submitted by eapl-gemugami, focuses on migrating regions as part of step 3. The core change is the removal of redundant region-specific comments in auto_complete_sample.py.

Specifically:

  • The PR removes duplicate # [START auto_complete_job_title] and # [END auto_complete_job_title] comments (lines 27 and 39 in auto_complete_sample.py).
  • Similarly, it removes duplicate # [START auto_complete_default] and # [END auto_complete_default] comments (lines 44 and 56 in auto_complete_sample.py).

The intent is to clean up the sample code and improve maintainability by removing the now-obsolete region-specific comments. The changes are straightforward and well-documented.


A little haiku to lighten the mood:

Code flows like a stream,
Removing clutter, clean and bright,
A better program.

Looking forward to completing the review shortly!

Best,
Gemini

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

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 Dec 24, 2024
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Dec 24, 2024
Copy link

snippet-bot bot commented Dec 24, 2024

Here is the summary of possible violations 😱

There is a possible violation for removing region tag in use.

The end of the violation section. All the stuff below is FYI purposes only.


Here is the summary of changes.

You are about to delete 2 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

@iennae
Copy link
Contributor

iennae commented Dec 29, 2024

jobs/v3/api_client/auto_complete_sample.py:27, tag auto_complete_job_title(usage: page 1 page 2).

@eapl-gemugami
Copy link
Contributor Author

eapl-gemugami commented Jan 2, 2025

jobs/v3/api_client/auto_complete_sample.py:27, tag auto_complete_job_title(usage: page 1 page 2).

@iennae region_tag auto_complete_job_title is fixed in the source code for these 2 pages. Could it be that the sample_id is wrong, as it's pending to be approved in cl/709367316 ? EDIT: The cl was approved now and the snippet-bot is still marking possible violations

@eapl-gemugami eapl-gemugami changed the title chore(jobs): migrate regions step 3 - remove regions in auto_complete_sample.py chore(job): migrate regions step 3 - remove regions in auto_complete_sample.py Jan 2, 2025
@eapl-gemugami eapl-gemugami marked this pull request as ready for review January 6, 2025 17:14
@eapl-gemugami eapl-gemugami requested review from a team as code owners January 6, 2025 17:14
Copy link

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

This pull request, authored by eapl-gemugami, aims to remove redundant region-specific comments from the auto_complete_sample.py file within the jobs/v3/api_client directory. The intent is to clean up the codebase and improve readability, addressing internal issues b/347825711 and b/347350180.

Here's a breakdown of the changes:

  • File Modified: jobs/v3/api_client/auto_complete_sample.py
    • Lines 27-27: Removed comment # [START auto_complete_job_title]
    • Lines 39-40: Removed comments # [END auto_complete_job_title] and # [START auto_complete_default]
    • Lines 56-57: Removed comment # [END auto_complete_default]

The changes are straightforward and appear to successfully remove the specified comments. The author has indicated that tests and lint checks have passed.


And now, a little haiku to lighten the mood:

Code flows like a stream,
Comments, once a helpful guide,
Now cleaned, pure and bright.

Looking forward to completing the review soon!

Best,
Gemini/code-review-assist

Copy link

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

Copy link

@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 to help you and other reviewers get up to speed quickly:

This pull request, authored by eapl-gemugami, aims to remove redundant region-specific comments in the auto_complete_sample.py file within the jobs/v3/api_client directory. The changes are focused on cleaning up the code comments and removing duplicate [START] and [END] markers related to auto-complete functionality. The intent is to improve code clarity and maintainability.

Here's a breakdown of the changes:

  • File: jobs/v3/api_client/auto_complete_sample.py
    • Removed lines 27, 39, and 56, which were duplicate comment blocks. Specifically, the comments # [START auto_complete_job_title], # [END auto_complete_job_title], and # [END auto_complete_default] were removed.
    • Line numbers affected: 27, 39, 56 (removed)

This PR addresses internal issues b/347825711 and b/347350180. The author has confirmed that tests and lint checks passed.

And now, a little haiku to lighten the mood:

Clean code's gentle flow,
Comments purged, a clearer view,
Joy in simple lines.

Looking forward to discussing this further!

Best,
Gemini/code-review-assist

Copy link

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

Copy link

@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, authored by eapl-gemugami, aims to migrate regions as part of step 3. Specifically, it removes redundant region information from the auto_complete_sample.py file. The changes address internal issues b/347825711 and b/347350180.

Here's a breakdown of the changes:

  • jobs/v3/api_client/auto_complete_sample.py: This file had several instances of # [START auto_complete_job_title] and # [START auto_complete_default] comments removed. These appear to be duplicate or superseded comments. The corresponding # [END ... ] comments were also removed for consistency.
    • Lines 27-28: Removed # [START auto_complete_job_title]
    • Lines 39-40: Removed # [END auto_complete_job_title]
    • Lines 44-45: Removed # [START auto_complete_default]
    • Lines 56-57: Removed # [END auto_complete_default]

The author has confirmed that tests and lint checks passed.

Short and sweet, a coding haiku:

Clean code's gentle flow,
Bugs removed, a peaceful state,
Pull request merged.

Looking forward to discussing this further!

Best,
Gemini

Copy link

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

@eapl-gemugami eapl-gemugami marked this pull request as draft January 6, 2025 22:41
@eapl-gemugami eapl-gemugami added the snippet-bot:force-run Force snippet-bot runs its logic label Jan 6, 2025
@eapl-gemugami
Copy link
Contributor Author

Update: cl/709367316 was approved and submitted for renaming sample_ids in the documentation.

@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Jan 6, 2025
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

@eapl-gemugami eapl-gemugami marked this pull request as ready for review January 9, 2025 23:02
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