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: fix repo-metadata.json api_ids to correctly identify the library coverage #10784

Merged
merged 2 commits into from
May 6, 2024

Conversation

chingor13
Copy link
Contributor

We are not associating these libraries correctly. The api_id is the hostname of the API and is used to identify the product/service.

@chingor13 chingor13 requested a review from a team as a code owner May 3, 2024 21:24
@chingor13 chingor13 force-pushed the fix-repo-metadata branch from a36d3d0 to eb23ea1 Compare May 3, 2024 21:31
Copy link

snippet-bot bot commented May 3, 2024

No region tags are edited in this PR.

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

generation_config.yaml Show resolved Hide resolved
generation_config.yaml Outdated Show resolved Hide resolved
generation_config.yaml Outdated Show resolved Hide resolved
generation_config.yaml Outdated Show resolved Hide resolved
@chingor13 chingor13 force-pushed the fix-repo-metadata branch 2 times, most recently from d9b87e7 to 59d6378 Compare May 3, 2024 21:48
@chingor13
Copy link
Contributor Author

@blakeli0 From the generation action: ValueError: alloydb-connectors: api_shortname must not change when library_name remains the same.

@blakeli0
Copy link
Contributor

blakeli0 commented May 3, 2024

@blakeli0 From the generation action: ValueError: alloydb-connectors: api_shortname must not change when library_name remains the same.

@JoeWang1127 is taking a look.

@JoeWang1127
Copy link
Contributor

@chingor13 Why do you want to change api_shortname when the title said only api_id should change?

@chingor13
Copy link
Contributor Author

Why do you want to change api_shortname when the title said only api_id should change?

api_shortname is supposed to be the main subdomain of the service's endpoint. api_shortname is the fallback for many systems to re-create the api_id (<api-shortname> + '.googleapis.com')

@JoeWang1127
Copy link
Contributor

api_shortname is supposed to be the main subdomain of the service's endpoint. api_shortname is the fallback for many systems to re-create the api_id (<api-shortname> + '.googleapis.com')

We have a configuration comparator to determine which libraries are changed and changing api_shortname is a bit complex situation that I haven' design well.

For this PR, could you only change api_id? I need to think again how to support api_shortname change.

@chingor13 chingor13 force-pushed the fix-repo-metadata branch from 59d6378 to 91860b1 Compare May 3, 2024 22:36
@chingor13
Copy link
Contributor Author

For this PR, could you only change api_id? I need to think again how to support api_shortname change.

I left the library_name additions for the ones that will need to change later and it seems to have worked.

@@ -208,7 +208,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=api-gateway.googleapis.com
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=apigateway.googleapis.com
Copy link
Contributor Author

@chingor13 chingor13 May 3, 2024

Choose a reason for hiding this comment

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

These changes to the enable API URL look legit and correct to me.

Copy link
Contributor

@blakeli0 blakeli0 left a comment

Choose a reason for hiding this comment

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

Thanks Jeff! The change LGTM.
Just curious what drove you to make these changes? Are you working on a project to make .repo_metadata.json up to date? Or only because you noticed something wrong in our .repo_metadata.json files?

@chingor13 chingor13 merged commit e8cc3b5 into main May 6, 2024
31 checks passed
@chingor13 chingor13 deleted the fix-repo-metadata branch May 6, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants