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

🐛 Fixes #1517: project tags are copied when cloned #3828

Merged
merged 27 commits into from
Feb 3, 2023

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Feb 1, 2023

What do these changes do?

  • 🐛 Project clone was not copying tag references (i.e. original tags are referenced)
    copy-tags

  • ♻️ Refactors projects_db module of the webserver's service projects plugin. This is how it looks now
    image

Related issue/s

How to test

  • create a study
  • Add tags
  • Clone it
  • Tags should get copied
  • Change/delete one of the tags in the preferences
  • Tag in the cloned study should have changed

Checklist

  • Unit tests for the changes exist
  • Runs in the swarm
  • Documentation reflects the changes

@pcrespov pcrespov self-assigned this Feb 1, 2023
@codecov
Copy link

codecov bot commented Feb 1, 2023

Codecov Report

Merging #3828 (742b2a4) into master (83c4a94) will decrease coverage by 0.9%.
The diff coverage is 89.6%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #3828     +/-   ##
========================================
- Coverage    84.8%   84.0%   -0.9%     
========================================
  Files         925     926      +1     
  Lines       39558   39588     +30     
  Branches      819     819             
========================================
- Hits        33555   33257    -298     
- Misses       5786    6114    +328     
  Partials      217     217             
Flag Coverage Δ
integrationtests 66.6% <81.1%> (+<0.1%) ⬆️
unittests 81.0% <86.5%> (-1.0%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...e/src/simcore_postgres_database/models/projects.py 100.0% <ø> (ø)
...imcore_service_webserver/garbage_collector_core.py 61.3% <ø> (-0.6%) ⬇️
...vice_webserver/projects/projects_ports_handlers.py 59.6% <0.0%> (-34.5%) ⬇️
...mcore_service_webserver/projects/projects_utils.py 83.5% <ø> (-3.9%) ⬇️
...simcore_service_webserver/projects/projects_api.py 75.6% <50.0%> (-18.0%) ⬇️
.../simcore_service_webserver/projects/projects_db.py 88.2% <88.9%> (-8.3%) ⬇️
...re_service_webserver/projects/projects_db_utils.py 92.0% <92.0%> (ø)
...vice_webserver/exporter/formatters/formatter_v1.py 83.5% <100.0%> (ø)
.../src/simcore_service_webserver/projects/_delete.py 74.5% <100.0%> (-3.7%) ⬇️
...rvice_webserver/projects/projects_handlers_crud.py 71.2% <100.0%> (-21.9%) ⬇️
... and 20 more

@pcrespov pcrespov added a:webserver issue related to the webserver service changelog:🐛bugfix labels Feb 1, 2023
@pcrespov pcrespov changed the title Is1517/copy tags 🐛 fixes Is1517/copy project tags when cloning Feb 1, 2023
@pcrespov pcrespov added this to the Resistance Is Futile milestone Feb 1, 2023
@pcrespov pcrespov changed the title 🐛 fixes Is1517/copy project tags when cloning 🐛 Fixes #1517; project tags are copied when cloned Feb 1, 2023
@pcrespov pcrespov changed the title 🐛 Fixes #1517; project tags are copied when cloned 🐛 Fixes #1517: project tags are copied when cloned Feb 1, 2023
@pcrespov pcrespov marked this pull request as ready for review February 1, 2023 21:44
Copy link
Member

@odeimaiz odeimaiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, please have a look at the comments. thanks!

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments. I could not identify where the fix regarding the issue is.

@codeclimate
Copy link

codeclimate bot commented Feb 2, 2023

Code Climate has analyzed commit 742b2a4 and detected 0 issues on this pull request.

View more on Code Climate.

@sonarcloud
Copy link

sonarcloud bot commented Feb 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@pcrespov pcrespov requested a review from GitHK February 3, 2023 07:44
@pcrespov pcrespov merged commit 0cc0e14 into ITISFoundation:master Feb 3, 2023
@pcrespov pcrespov deleted the is1517/copy-tags branch February 3, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:webserver issue related to the webserver service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy Tags from template2study and study2template
4 participants