quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

Implement new scenario migration changelog #1364

Open thomas-qah opened 9 months ago

thomas-qah commented 9 months ago

To provide better insight into which scenarios are changed during data migrations, and in what way, we could set up a scenario migration changelog to keep track of these changes. A new changelog table should be made, containing a record for each scenario_migration that was performed, with the following data:

These records can then be used by scenarios to determine how compatible they still are.

We could wrap the changelog table records into a new model (ScenarioMigrationChangeLog or so) which should be accessible through the API. Some convenience methods may be added to this model, such as:

We could enrich the existing Scenario model with convenience methods as well, such as:

github-actions[bot] commented 7 months ago

This issue has had no activity for 60 days and will be closed in 7 days. Removing the "Stale" label or posting a comment will prevent it from being closed automatically. You can also add the "Pinned" label to ensure it isn't marked as stale in the future.

github-actions[bot] commented 5 months ago

This issue has had no activity for 60 days and will be closed in 7 days. Removing the "Stale" label or posting a comment will prevent it from being closed automatically. You can also add the "Pinned" label to ensure it isn't marked as stale in the future.