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

Signal classification support tools #220

Merged
merged 9 commits into from
Aug 11, 2023
Merged

Conversation

timburks
Copy link
Contributor

@timburks timburks commented Jul 24, 2023

This contains two commands that assist in API signal classification.

registry-bigquery match SPEC iterates through the operations in all specs matching the SPEC pattern and looks for each in a BigQuery index of operations. It then reports a match score for each spec found in the index where the score is the percentage of operations that it includes.

registry-bigquery index links ARTIFACT reads each artifact matching the ARTIFACT pattern and, for each ReferenceList, writes the links in that ReferenceList into a links table that can be checked to see what matches are already represented in artifacts.

@timburks timburks changed the title Match specs against a BigQuery table of operations Signal classification support tools Aug 10, 2023
@timburks timburks requested a review from theganyo August 10, 2023 20:14
Copy link
Member

@theganyo theganyo left a comment

Choose a reason for hiding this comment

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

FWIW, it probably doesn't matter much unless / until we attempt to have tests, but in general our commands should write to a io.Writer obtained with cmd.OutOrStdout().

@timburks timburks merged commit 2f634ec into apigee:main Aug 11, 2023
9 checks passed
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.

2 participants