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

Migrations for App-Schema combinations #4534

Open
connoratrug opened this issue Dec 2, 2024 · 0 comments
Open

Migrations for App-Schema combinations #4534

connoratrug opened this issue Dec 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@connoratrug
Copy link
Contributor

Issue

Currently the molgenis-emx2 codebase contains en number of (frontend)apps that expect a certain (backend)model. Examples are the 'catalogue app', the 'directory app' , ... . This means that for the service to function, the app en model need to be kept in sync. Currently we do not have a automated solution to support the synchronisation.

Solution

Add changes to models associated app to be updated via a migration system

  • Add data to the molgenis system tabel to store the link between a 'schema' and a 'app'
  • Update the admin interface to manage these links
  • Create a per app directory structure that contains java/sql file for each migration step.
  • Add some code that ( onstartup , on trigger ) check if migrations need to run en them.

Alternatives

  • do nothing, keep doing migration by hand
  • do the migration via the outside ( combination if python and tasks )

Additional context

See emx2 migration as an example for the general idea

@connoratrug connoratrug added the enhancement New feature or request label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant