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

Improve add items #409

Closed soininen closed 1 month ago

soininen commented 1 month ago

This PR fixes a bug that allowed adding items that didn't have all unique keys.

Also, it is now possible to add an entity class or entity item without a name if dimension_name_list or element_name_list is given. In this case the name will be generated from the list.

No associated issue

Checklist before merging

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 78.26%. Comparing base (bf66936) to head (f3eab6d).

:exclamation: Current head f3eab6d differs from pull request most recent head 91553cc

Please upload reports for the commit 91553cc to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #409 +/- ## ========================================== + Coverage 78.19% 78.26% +0.07% ========================================== Files 76 76 Lines 9510 9534 +24 Branches 2016 2023 +7 ========================================== + Hits 7436 7462 +26 + Misses 1738 1737 -1 + Partials 336 335 -1 ```

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