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

Add InvokeAIAppConfig schema migration system #6243

Closed
wants to merge 33 commits into from

Commits on Apr 19, 2024

  1. add InvokeAIAppConfig schema migration system

    Lincoln Stein committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    6ad1948 View commit details
    Browse the repository at this point in the history
  2. use packaging.version rather than version-parse

    Lincoln Stein committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    36495b7 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2024

  1. Configuration menu
    Copy the full SHA
    b612c73 View commit details
    Browse the repository at this point in the history
  2. tidy(config): removed extraneous ABC

    We don't need separate implementations for this class, let's not complicate it with an ABC
    psychedelicious committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e39f035 View commit details
    Browse the repository at this point in the history
  3. fix(config): use TypeAlias instead of TypeVar

    TypeVar is for generics, but the usage here is as an alias
    psychedelicious committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    aca9e44 View commit details
    Browse the repository at this point in the history
  4. tidy(config): use dataclass for MigrationEntry

    The only pydantic usage was to convert strings to `Version` objects. The reason to do this conversion was to allow the register decorator to accept strings. MigrationEntry is only created inside this class, so we can just create versions from each migration when instantiating MigrationEntry instead.
    
    Also, pydantic doesn't provide runtime time checking for arbitrary classes like Version, so we don't get any real benefit.
    psychedelicious committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    6f128c8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5d411e4 View commit details
    Browse the repository at this point in the history
  6. fix(config): fix duplicate migration logic

    This was checking a `Version` object against a `MigrationEntry`, but what we want is to check the version object against `MigrationEntry.from_version`
    psychedelicious committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    d12fb7d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    984dd93 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ab9ebef View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    6eaed9a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    048306b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab086a7 View commit details
    Browse the repository at this point in the history
  4. updated and reinstated the test_deny_nodes() unit test

    Lincoln Stein committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    8144a26 View commit details
    Browse the repository at this point in the history
  5. reinstated failing deny_nodes validation test for Graph

    Lincoln Stein committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    d248775 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2024

  1. added test for non-contiguous migration routines

    Lincoln Stein committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    d852ca7 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into lstein/feat/config-migration

    Lincoln Stein committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    59deef9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    36b1434 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    d5aee87 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    a48abfa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bba7f3 View commit details
    Browse the repository at this point in the history
  3. check that right no. of migration steps run

    Lincoln Stein committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2dd42d0 View commit details
    Browse the repository at this point in the history
  4. merge

    Lincoln Stein committed May 3, 2024
    Configuration menu
    Copy the full SHA
    31f6302 View commit details
    Browse the repository at this point in the history
  5. add more checking of migration step operations

    Lincoln Stein committed May 3, 2024
    Configuration menu
    Copy the full SHA
    fc23b16 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. feat(config): simplify config migrator logic

    - Remove `Migrations` class - unnecessary complexity on top of `MigrationEntry`
    - Move common classes to `config_common`
    - Tidy docstrings, variable names
    psychedelicious committed May 14, 2024
    Configuration menu
    Copy the full SHA
    6946a38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18b5aaf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c081d5 View commit details
    Browse the repository at this point in the history
  4. fix(config): fix config _check_for_discontinuities

    Need to sort the migrations first.
    psychedelicious committed May 14, 2024
    Configuration menu
    Copy the full SHA
    d487102 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d8b011 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    964adb8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    00ccd73 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6e40142 View commit details
    Browse the repository at this point in the history
  9. tests(config): set root to a tmp dir if didn't parse args

    This prevents tests from triggering config related parsing on your "live" root.
    psychedelicious committed May 14, 2024
    Configuration menu
    Copy the full SHA
    8b76d11 View commit details
    Browse the repository at this point in the history