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

feat(snippet-bot): read products from service configs in googleapis/googleapis #5014

Merged
merged 4 commits into from
Mar 29, 2023

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Mar 28, 2023

Short term solution to merge new products from service_configs in googleapis/googleapis into the exported product list from DKP.

To improve performance, we use a daily cron job to scan googleapis/googleapis for service configs and merge the result with the exported list from DKP.

Fixes #4994

feat: add daily cron to reload products cache
refactor: pass ApiLabels list into violations logic to avoid implicit API call

feat: add daily cron to reload products cache
): Promise<Array<Violation>> => {
const ret: Violation[] = [];
const apiLabels = await getApiLabels(dataBucket, logger);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Avoid an implicit API call here -- explicitly provide the list of allowed products. The caller is expected to source the list.

@chingor13 chingor13 marked this pull request as ready for review March 28, 2023 00:18
@chingor13 chingor13 requested a review from a team as a code owner March 28, 2023 00:18
@chingor13 chingor13 changed the title feat: read products from service configs in googleapis/googleapis feat(snippet-bot): read products from service configs in googleapis/googleapis Mar 28, 2023
packages/snippet-bot/src/api-labels.ts Outdated Show resolved Hide resolved
packages/snippet-bot/src/service-configs.ts Show resolved Hide resolved
packages/snippet-bot/src/service-configs.ts Outdated Show resolved Hide resolved
@chingor13 chingor13 enabled auto-merge (squash) March 29, 2023 22:41
@chingor13 chingor13 merged commit 97e053c into main Mar 29, 2023
@chingor13 chingor13 deleted the snippet-bot-service-config branch March 29, 2023 22:43
@release-please release-please bot mentioned this pull request Aug 21, 2023
@release-please release-please bot mentioned this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: snippet bot flagging "kmsinventory" as an invalid product prefix
2 participants