Serdes v2: Find YAML files with human-friendly labels (#25390)
The YAML file names have an optional `:label` portion that becomes the latter part of the filename. Reconstructed paths (eg. from `serdes-dependencies`) don't have those labels. This change makes the YAML ingestion code able to find a file with a human-readable label even if the request didn't include it. No ambiguity results because the file names are always based on the unique serdes `:id`, usually an `entity_id`.
Showing
- enterprise/backend/src/metabase_enterprise/serialization/v2/ingest/yaml.clj 3 additions, 2 deletions.../src/metabase_enterprise/serialization/v2/ingest/yaml.clj
- enterprise/backend/src/metabase_enterprise/serialization/v2/utils/yaml.clj 13 additions, 2 deletions...d/src/metabase_enterprise/serialization/v2/utils/yaml.clj
- enterprise/backend/test/metabase_enterprise/serialization/v2/ingest/yaml_test.clj 21 additions, 0 deletions...metabase_enterprise/serialization/v2/ingest/yaml_test.clj
Please register or sign in to comment