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

DM-45938: Add support for generating IDs on data model objects #100

Merged
merged 8 commits into from
Aug 29, 2024

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    e7220f4 View commit details
    Browse the repository at this point in the history
  2. Add Schema validator that automatically generates object IDs

    Implement a pre-validator which creates object IDs where they are
    missing on Schema objects.
    
    The values of the generated IDs for schema, table and column objects
    are constructed based on the common usage patterns from SDM Schemas.
    
    Constraints and indexes use the name field as the ID.
    
    The `--id-generation` flag must be used from the command-line to enable
    this feature, as it is off by default.
    JeremyMcCormick committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    c188af3 View commit details
    Browse the repository at this point in the history
  3. Add support for ID generation to the CLI

    Add a top-level flag for enabling ID generation and pass it to the
    other commands via the Click context.
    JeremyMcCormick committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    50fbf75 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24e7ce5 View commit details
    Browse the repository at this point in the history
  5. Add test of ID generation

    Load a schema without IDs and set them, and load the same schema with
    ID generation turned off to check that an exception is thrown.
    JeremyMcCormick committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    6e1d33c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4920eeb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    87dfdbe View commit details
    Browse the repository at this point in the history
  8. Add news fragment

    JeremyMcCormick committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    0da628c View commit details
    Browse the repository at this point in the history