Skip to content

Init: possible confusion if base+modified schemas already exist but local project dir doesn't #175

Description

@wonder-sk

Seen the following case:

  • configuration file "base" and "modified" schemas already exist in the database
  • the project directory does not exist yet

In this scenario, db-sync will download the MM project at a particular version, but it does not check project ID first. This is a potential problem, because db-sync may try to download a project that is incompatible with the data already stored in the database - this can result in trying to fetch project at e.g. version 1234, but project may not even exist in such version, so the project download will fail.

The fix should be to check project ID before project's download, and fail with error if they do not match.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions