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

♻️ Propagate can_save when starting service 🚨 #4202

Merged
merged 16 commits into from
May 9, 2023

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented May 8, 2023

What do these changes do?

NOTE: This was already part of #4044 which had to be reverted

The can_save can also be computed once the service is started. For new style (the ones running via dynamic sidecar), it is useful when the services are closed to address some edge cases where the content was saved without having permission to do so.

🚨 Updated legacy data format. Should not have any impact, keep an eye on it on master and staging, if no errors occur in director-v2 should be OK!

Related issue/s

How to test

DevOps Checklist

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #4202 (72d4c30) into master (f6c6d69) will increase coverage by 8.5%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #4202     +/-   ##
========================================
+ Coverage    76.8%   85.3%   +8.5%     
========================================
  Files         881     788     -93     
  Lines       39011   36867   -2144     
  Branches      877     452    -425     
========================================
+ Hits        29987   31480   +1493     
+ Misses       8823    5278   -3545     
+ Partials      201     109     -92     
Flag Coverage Δ
integrationtests 52.4% <66.6%> (-0.1%) ⬇️
unittests 83.0% <100.0%> (+7.6%) ⬆️

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

Impacted Files Coverage Δ
...service_director_v2/api/routes/dynamic_services.py 89.6% <ø> (+6.6%) ⬆️
...ector_v2/modules/dynamic_sidecar/scheduler/_abc.py 100.0% <ø> (ø)
...ules/dynamic_sidecar/scheduler/_core/_scheduler.py 78.6% <ø> (+10.9%) ⬆️
...ctor_v2/modules/dynamic_sidecar/scheduler/_task.py 94.2% <ø> (+11.5%) ⬆️
...ce_webserver/director_v2/_core_dynamic_services.py 72.7% <ø> (+13.6%) ⬆️
...ckages/models-library/src/models_library/docker.py 86.2% <100.0%> (-3.8%) ⬇️
...ages/models-library/src/models_library/products.py 100.0% <100.0%> (ø)
...ice_director_v2/models/domains/dynamic_services.py 100.0% <100.0%> (ø)
...or_v2/models/schemas/dynamic_services/scheduler.py 98.7% <100.0%> (+5.5%) ⬆️
...simcore_service_webserver/projects/projects_api.py 93.5% <100.0%> (+20.1%) ⬆️

... and 320 files with indirect coverage changes

@GitHK GitHK self-assigned this May 8, 2023
@GitHK GitHK added t:maintenance Some planned maintenance work a:director-v2 issue related with the director-v2 service labels May 8, 2023
@GitHK GitHK added this to the Pastel de Nata milestone May 8, 2023
@GitHK GitHK added changelog:♻️refactor and removed t:maintenance Some planned maintenance work labels May 8, 2023
@GitHK GitHK marked this pull request as ready for review May 8, 2023 10:22
@GitHK GitHK requested review from pcrespov and sanderegg as code owners May 8, 2023 10:22
@GitHK GitHK requested a review from matusdrobuliak66 May 8, 2023 10:56
@GitHK GitHK enabled auto-merge (squash) May 8, 2023 13:27
@codeclimate
Copy link

codeclimate bot commented May 9, 2023

Code Climate has analyzed commit 72d4c30 and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 2023

Please retry analysis of this Pull-Request directly on SonarCloud.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 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.1% 0.1% Duplication

@GitHK GitHK changed the title ♻️ Propagate can_save when starting service ♻️ Propagate can_save when starting service 🚨 May 9, 2023
@GitHK GitHK merged commit 10c4f3f into ITISFoundation:master May 9, 2023
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request May 30, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:director-v2 issue related with the director-v2 service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

♻️ remove code once it hits production #3990
4 participants