Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Sep 14, 2022
    • Braden Shepherdson's avatar
      Serdes v2: Find YAML files with human-friendly labels (#25390) · 1c517071
      Braden Shepherdson authored
      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`.
      1c517071
    • Braden Shepherdson's avatar
      Serdes v2: Several fixes that came out of the git <-> prod workflow (#25310) · 9d08394c
      Braden Shepherdson authored
      - Limit the scanning of directories and files to those named after
        models; don't try to ingest `.git`, `README.md`, etc.
      - `table_id` and `collection_id` are optional on Cards
      - Deserialization was not resolving some deeply nested `:field`s inside MBQL
        queries.
      9d08394c
  2. Jul 08, 2022
    • Braden Shepherdson's avatar
      Add serialization hierarchy, serialize Database, Table and Field (#23622) · c952c87c
      Braden Shepherdson authored
      Serialization of Databases, Tables, Fields
      
      This brought a few core changes:
      - Add `serdes-entity-id` to abstract the field used for the ID
      - Pass the options to `extract-one` so it can eg. do encryption things.
      - Handle dates in YAML storage and ingestion
      - `:serdes/meta` now holds the entire hierarchy, not just the leaf model+ID pair.
      
      There's an open problem here about the right way to handle secrets like
      a database's password. Do we assume both sides have the same
      `MB_ENCRYPTION_SECRET_KEY`? Provide a serdes-specific password the user
      just made up, and every secret gets decrypted with the source key, encrypted with
      the serdes key, stored, decrypted with the serdes key, and encrypted with
      the destination key?
      c952c87c
  3. Jul 07, 2022
Loading