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

♻️ webserver: fixes mypy issues in director_v2 plugin #4186

Conversation

matusdrobuliak66
Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 commented May 2, 2023

What do these changes do?

  • ♻️ refactors director_v2 plugin in webserver:

Related issue/s

How to test

cd services/web/server
make mypy | grep director_v2

DevOps Checklist

  • Check with Andrei commented test
  • Check code smells

@matusdrobuliak66 matusdrobuliak66 marked this pull request as ready for review May 2, 2023 19:35
@matusdrobuliak66 matusdrobuliak66 self-assigned this May 2, 2023
@matusdrobuliak66 matusdrobuliak66 added the t:maintenance Some planned maintenance work label May 2, 2023
@matusdrobuliak66 matusdrobuliak66 added this to the The Next Milestone milestone May 2, 2023
@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #4186 (ef3458c) into master (fe4dee6) will decrease coverage by 1.7%.
The diff coverage is 93.6%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4186      +/-   ##
=========================================
- Coverage    84.7%   83.0%    -1.7%     
=========================================
  Files         959     400     -559     
  Lines       41600   20738   -20862     
  Branches      955     173     -782     
=========================================
- Hits        35236   17215   -18021     
+ Misses       6147    3474    -2673     
+ Partials      217      49     -168     
Flag Coverage Δ
integrationtests 67.2% <88.8%> (-0.1%) ⬇️
unittests 84.0% <93.6%> (+2.5%) ⬆️

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

Impacted Files Coverage Δ
...imcore_service_webserver/director_v2/exceptions.py 100.0% <ø> (ø)
...imcore_service_webserver/garbage_collector_core.py 83.7% <71.4%> (+0.6%) ⬆️
...ervice_webserver/director_v2/_core_computations.py 93.7% <73.3%> (ø)
...vice_webserver/projects/projects_nodes_handlers.py 80.2% <80.0%> (+40.1%) ⬆️
...ce_webserver/director_v2/_core_dynamic_services.py 70.4% <94.4%> (ø)
...erver/src/simcore_service_webserver/application.py 97.8% <100.0%> (ø)
.../simcore_service_webserver/application_settings.py 98.7% <100.0%> (+0.6%) ⬆️
...src/simcore_service_webserver/clusters/handlers.py 100.0% <100.0%> (ø)
...r/src/simcore_service_webserver/clusters/plugin.py 100.0% <100.0%> (ø)
...simcore_service_webserver/diagnostics/_handlers.py 48.3% <100.0%> (+0.8%) ⬆️
... and 18 more

... and 656 files with indirect coverage changes

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

Fix code smells detected by sonarcloud please :-). (check with me if you have any questions)

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.

Please check my comments

few additional corrections

few additional corrections
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.

Thanks! please check the comments.

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.

Thanks! please check the comments.

@matusdrobuliak66
Copy link
Contributor Author

Fix code smells detected by sonarcloud please :-). (check with me if you have any questions)

Yes, I would be glad to have a short discussion about some of the code smells.

@codeclimate
Copy link

codeclimate bot commented May 7, 2023

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

View more on Code Climate.

@matusdrobuliak66 matusdrobuliak66 requested a review from pcrespov May 7, 2023 15:45
@sonarcloud
Copy link

sonarcloud bot commented May 7, 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 2 Code Smells

No Coverage information No Coverage information
2.2% 2.2% Duplication

@matusdrobuliak66 matusdrobuliak66 merged commit 386ef67 into ITISFoundation:master May 8, 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
t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants