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

🤖 backported "Serdes v2: Rebuild the directory structure to be more human-friendly" #26888

Conversation

metabase-bot[bot]
Copy link
Contributor

@metabase-bot metabase-bot bot commented Dec 1, 2022

…26793)

There are now three top-level trees:

- regular `collections/path/to/collection/...`
- `:namespace :snippet` collections in `snippets/path/to/collection/...`
- `databases/mydb/schemas/PUBLIC/tables/customers/fields/name.yaml`

The path for any given entity is determined by the
`serdes.base/storage-path` multimethod.

On the ingestion side, things are a bit tricky because the paths don't
map directly to `:serdes/meta` hierarchies anymore. Instead each model
registers a function to turn a file path into either a `:serdes/meta`
hierarcy or nil for a bad match.

Ingestion will fetch all these functions once and then try them all in
arbitrary order until one matches.
@metabase-bot metabase-bot bot enabled auto-merge (squash) December 1, 2022 20:59
@metabase-bot metabase-bot bot merged commit b71efd9 into release-x.45.x Dec 1, 2022
@metabase-bot metabase-bot bot deleted the backport-f0655fc253ca2f17af32d342115a833753b1119e branch December 1, 2022 21:45
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.

None yet

1 participant