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(dev): add filter and sort to component-info command #7373

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Jun 6, 2024

Adds filter and sort to dev/google-cloud component-info command to better help filter out certain types of components

For example, the following command

./dev/google-cloud component-info \
  --filter 'release_level=preview,migration_mode~=NEW_SURFACE_ONLY,migration_mode!~=MIGRATING' \
  --sort 'component_name ASC'

Will return something like this:

+-----------------------------+--------------------------------------------+-----------------+------------------------+---------------+----------------------------+-----------------------------------------------+----------------------------------+
| Component Name              | Package Name                               | Package Version | API Version            | Release Level | Migration Mode             | Proto Path                                    | API Shortname                    |
+-----------------------------+--------------------------------------------+-----------------+------------------------+---------------+----------------------------+-----------------------------------------------+----------------------------------+
| AppHub                      | google/cloud-apphub                        | 0.1.3           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/apphub/v1                        | apphub                           |
| AppsChat                    | google/apps-chat                           | 0.1.3           | Chat/V1                | preview       | NEW_SURFACE_ONLY           | google/chat/v1                                | chat                             |
|                             |                                            |                 | Card/V1                |               | MIGRATION_MODE_UNSPECIFIED |                                               |                                  |
| AppsEventsSubscriptions     | google/apps-events-subscriptions           | 0.1.3           | V1                     | preview       | NEW_SURFACE_ONLY           | google/apps/events/subscriptions/v1           | workspaceevents                  |
| AppsMeet                    | google/apps-meet                           | 0.2.3           | V2                     | preview       | NEW_SURFACE_ONLY           | google/apps/meet/v2                           | meet                             |
|                             |                                            |                 | V2beta                 |               | NEW_SURFACE_ONLY           | google/apps/meet/v2beta                       |                                  |
| ArtifactRegistry            | google/cloud-artifact-registry             | 0.6.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/devtools/artifactregistry/v1           | artifactregistry                 |
|                             |                                            |                 | V1beta2                |               | PRE_MIGRATION_SURFACE_ONLY | google/devtools/artifactregistry/v1beta2      |                                  |
| AssuredWorkloads            | google/cloud-assured-workloads             | 0.11.5          | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/assuredworkloads/v1              | assuredworkloads                 |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/assuredworkloads/v1beta1         |                                  |
| BinaryAuthorization         | google/cloud-binary-authorization          | 0.8.7           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/binaryauthorization/v1           | binaryauthorization              |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/binaryauthorization/v1beta1      |                                  |
| CommerceConsumerProcurement | google/cloud-commerce-consumer-procurement | 0.2.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/commerce/consumer/procurement/v1 | cloudcommerceconsumerprocurement |
| Config                      | google/cloud-config                        | 0.5.2           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/config/v1                        | config                           |
| ControlsPartner             | google/cloud-cloudcontrolspartner          | 0.1.3           | V1beta                 | preview       | NEW_SURFACE_ONLY           | google/cloud/cloudcontrolspartner/v1beta      | cloudcontrolspartner             |
| DeveloperConnect            | google/cloud-developerconnect              | 0.1.1           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/developerconnect/v1              | developerconnect                 |
| DialogflowCx                | google/cloud-dialogflow-cx                 | 0.3.4           | V3                     | preview       | NEW_SURFACE_ONLY           | google/cloud/dialogflow/cx/v3                 | dialogflow                       |
| DiscoveryEngine             | google/cloud-discoveryengine               | 0.11.3          | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/discoveryengine/v1               | discoveryengine                  |
|                             |                                            |                 | V1beta                 |               | NEW_SURFACE_ONLY           | google/cloud/discoveryengine/v1beta           |                                  |
| Domains                     | google/cloud-domains                       | 0.5.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/domains/v1                       | domains                          |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/domains/v1beta1                  |                                  |
|                             |                                            |                 | V1alpha2               |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/domains/v1alpha2                 |                                  |
| EdgeNetwork                 | google/cloud-edgenetwork                   | 0.3.6           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/edgenetwork/v1                   | edgenetwork                      |
| GkeHub                      | google/cloud-gke-hub                       | 0.9.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/gkehub/v1                        | gkehub                           |
|                             |                                            |                 | ConfigManagement/V1    |               | MIGRATION_MODE_UNSPECIFIED |                                               |                                  |
|                             |                                            |                 | MultiClusterIngress/V1 |               | MIGRATION_MODE_UNSPECIFIED |                                               |                                  |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/gkehub/v1beta1                   |                                  |
| MapsFleetEngine             | google/maps-fleetengine                    | 0.1.2           | V1                     | preview       | NEW_SURFACE_ONLY           | google/maps/fleetengine/v1                    | fleetengine                      |
| MapsFleetEngineDelivery     | google/maps-fleetengine-delivery           | 0.1.1           | V1                     | preview       | NEW_SURFACE_ONLY           | google/maps/fleetengine/delivery/v1           | fleetengine                      |
| MigrationCenter             | google/cloud-migrationcenter               | 0.4.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/migrationcenter/v1               | migrationcenter                  |
| NetApp                      | google/cloud-netapp                        | 0.3.1           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/netapp/v1                        | netapp                           |
| NetworkSecurity             | google/cloud-network-security              | 0.6.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/networksecurity/v1               | networksecurity                  |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/networksecurity/v1beta1          |                                  |
| Notebooks                   | google/cloud-notebooks                     | 0.7.5           | V2                     | preview       | NEW_SURFACE_ONLY           | google/cloud/notebooks/v2                     | notebooks                        |
|                             |                                            |                 | V1                     |               | NEW_SURFACE_ONLY           | google/cloud/notebooks/v1                     |                                  |
|                             |                                            |                 | V1beta1                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/notebooks/v1beta1                |                                  |
| Parallelstore               | google/cloud-parallelstore                 | 0.3.1           | V1beta                 | preview       | NEW_SURFACE_ONLY           | google/cloud/parallelstore/v1beta             | parallelstore                    |
| PolicySimulator             | google/cloud-policysimulator               | 0.2.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/policysimulator/v1               | policysimulator                  |
| PolicyTroubleshooterIam     | google/cloud-policytroubleshooter-iam      | 0.2.5           | V3                     | preview       | NEW_SURFACE_ONLY           | google/cloud/policytroubleshooter/iam/v3      | policytroubleshooter             |
| Quotas                      | google/cloud-quotas                        | 0.2.3           | V1                     | preview       | NEW_SURFACE_ONLY           | google/api/cloudquotas/v1                     | cloudquotas                      |
| RapidMigrationAssessment    | google/cloud-rapidmigrationassessment      | 0.3.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/rapidmigrationassessment/v1      | rapidmigrationassessment         |
| RedisCluster                | google/cloud-redis-cluster                 | 0.2.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/redis/cluster/v1                 | redis                            |
| SecureSourceManager         | google/cloud-securesourcemanager           | 0.2.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/securesourcemanager/v1           | securesourcemanager              |
| SecurityCenterManagement    | google/cloud-securitycentermanagement      | 0.3.1           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/securitycentermanagement/v1      | securitycentermanagement         |
| ServiceHealth               | google/cloud-servicehealth                 | 0.1.6           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/servicehealth/v1                 | servicehealth                    |
| ShoppingCss                 | google/shopping-css                        | 0.2.7           | V1                     | preview       | NEW_SURFACE_ONLY           | google/shopping/css/v1                        | css                              |
| ShoppingMerchantConversions | google/shopping-merchant-conversions       | 0.1.2           | V1beta                 | preview       | NEW_SURFACE_ONLY           | google/shopping/merchant/conversions/v1beta   | merchantapi                      |
| ShoppingMerchantQuota       | google/shopping-merchant-quota             | 0.1.3           | V1beta                 | preview       | NEW_SURFACE_ONLY           | google/shopping/merchant/quota/v1beta         | merchantapi                      |
| ShoppingMerchantReports     | google/shopping-merchant-reports           | 0.8.1           | V1beta                 | preview       | NEW_SURFACE_ONLY           | google/shopping/merchant/reports/v1beta       | merchantapi                      |
| SqlAdmin                    | google/cloud-sql-admin                     | 0.17.1          | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/sql/v1                           | sqladmin                         |
|                             |                                            |                 | V1beta4                |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/sql/v1beta4                      |                                  |
| StorageControl              | google/cloud-storage-control               | 0.2.1           | V2                     | preview       | NEW_SURFACE_ONLY           | google/storage/control/v2                     | storage                          |
| Support                     | google/cloud-support                       | 0.2.5           | V2                     | preview       | NEW_SURFACE_ONLY           | google/cloud/support/v2                       | cloudsupport                     |
| TelcoAutomation             | google/cloud-telcoautomation               | 0.2.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/telcoautomation/v1               | telcoautomation                  |
| WebSecurityScanner          | google/cloud-web-security-scanner          | 0.8.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/websecurityscanner/v1            | websecurityscanner               |
|                             |                                            |                 | V1beta                 |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/websecurityscanner/v1beta        |                                  |
| Workflows                   | google/cloud-workflows                     | 0.5.5           | V1                     | preview       | NEW_SURFACE_ONLY           | google/cloud/workflows/v1                     | workflows                        |
|                             |                                            |                 | Executions/V1          |               | NEW_SURFACE_ONLY           | google/cloud/workflows/executions/v1          | workflowexecutions               |
|                             |                                            |                 | V1beta                 |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/workflows/v1beta                 |                                  |
|                             |                                            |                 | Executions/V1beta      |               | PRE_MIGRATION_SURFACE_ONLY | google/cloud/workflows/executions/v1beta      |                                  |
+-----------------------------+--------------------------------------------+-----------------+------------------------+---------------+----------------------------+-----------------------------------------------+----------------------------------+

@bshaffer bshaffer added the next release PRs to be included in the next release label Jun 6, 2024
@bshaffer bshaffer requested review from a team as code owners June 6, 2024 16:28
@bshaffer bshaffer changed the title feat(dev): add filter to component-info command feat(dev): add filter and sort to component-info command Jun 6, 2024
@bshaffer bshaffer merged commit fff2bef into main Jun 6, 2024
24 checks passed
@bshaffer bshaffer deleted the add-filter-to-component-info branch June 6, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release PRs to be included in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants