spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Set active_by_default to true when migrating if is_active is missing #370

Closed soininen closed 4 months ago

soininen commented 4 months ago

When migrating, set all active_by_defaults to true unless is_active (or equivalent) has been defined. This mimics the pre-0.8 behavior where all classes were visible by default.

Fixes #spine-tools/Spine-Toolbox#2611

Checklist before merging

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.22%. Comparing base (9415645) to head (8580b06).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.8-dev #370 +/- ## ======================================== Coverage 78.21% 78.22% ======================================== Files 75 75 Lines 9433 9428 -5 Branches 1998 1995 -3 ======================================== - Hits 7378 7375 -3 + Misses 1726 1725 -1 + Partials 329 328 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.