mirror of https://github.com/databricks/cli.git
14fe03dcb9
## Changes While looking into adding variable lookups for notification destinations ([API][API]), I found the codegen approach for different classes of variable lookups a bit complex. The template had a custom field override (for service principals), the package had an override for the cluster lookup, and it didn't produce tests. The notification destinations API uses a default page size of 20 for listing. I want to use a larger page size to limit the number of API calls, so that would imply another customization on the template or a manual override. This code being rather mechanical, I used copilot to produce all instances of the resolvers and their tests (after writing one of them manually). [api]: https://docs.databricks.com/api/workspace/notificationdestinations ## Tests * Unit tests pass * Manual confirmation that lookups of warehouses still work |
||
---|---|---|
.. | ||
lookup.go | ||
lookup_test.go | ||
resolve_alert.go | ||
resolve_alert_test.go | ||
resolve_cluster.go | ||
resolve_cluster_policy.go | ||
resolve_cluster_policy_test.go | ||
resolve_cluster_test.go | ||
resolve_dashboard.go | ||
resolve_dashboard_test.go | ||
resolve_instance_pool.go | ||
resolve_instance_pool_test.go | ||
resolve_job.go | ||
resolve_job_test.go | ||
resolve_metastore.go | ||
resolve_metastore_test.go | ||
resolve_pipeline.go | ||
resolve_pipeline_test.go | ||
resolve_query.go | ||
resolve_query_test.go | ||
resolve_service_principal.go | ||
resolve_service_principal_test.go | ||
resolve_warehouse.go | ||
resolve_warehouse_test.go | ||
variable.go |