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

Make multidimension entity naming consistent #2424

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

soininen
Copy link
Contributor

@soininen soininen commented Nov 17, 2023

Pivot table was creating multidimensional entity names by appending the entity names by the class name plus __ which we do not do anywhere else. We now use name_from_dimensions() and name_from_elements() from spinedb_api to achieve consistent naming everywhere.

Fixes #2423

Checklist before merging

  • Documentation is up-to-date
  • Release notes have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black
  • Unit tests pass

Pivot table was creating multidimensional entity names by appending
the entity names by the class name plus '__' which we do not do
anywhere else. We now use dimension_name_from() and element_name_from()
from spinedb_api to have consitent naming everywhere.

Re #2423
@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (a4b20bd) 63.89% compared to head (1c73d12) 63.89%.

Files Patch % Lines
...ox/spine_db_editor/mvcmodels/pivot_table_models.py 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           0.8-dev    #2424   +/-   ##
========================================
  Coverage    63.89%   63.89%           
========================================
  Files          195      195           
  Lines        35446    35445    -1     
  Branches      5995     5994    -1     
========================================
+ Hits         22648    22649    +1     
+ Misses       11606    11605    -1     
+ Partials      1192     1191    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@soininen soininen merged commit 1dff6f2 into 0.8-dev Nov 17, 2023
16 checks passed
@soininen soininen deleted the 2423_consistent_1_dimensional_entity_names branch November 17, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants