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 statics plugin #4190

Merged

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented May 3, 2023

What do these changes do?

  • ♻️ refactors statics plugin in webserver:
    • plugin under statics folder
    • protected internal modules
    • general code cleanup (e.g. _logger, TODO, ...)

Related issue/s

How to test

cd services/web/server
make mypy | grep statics

@pcrespov pcrespov self-assigned this May 3, 2023
@pcrespov pcrespov added the t:maintenance Some planned maintenance work label May 3, 2023
@pcrespov pcrespov added this to the The Next Milestone milestone May 3, 2023
@pcrespov pcrespov marked this pull request as ready for review May 3, 2023 15:23
@pcrespov pcrespov requested review from sanderegg and GitHK as code owners May 3, 2023 15:23
@pcrespov pcrespov requested a review from matusdrobuliak66 May 3, 2023 15:23
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #4190 (05b5670) into master (902f3d1) will decrease coverage by 1.6%.
The diff coverage is 83.8%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4190      +/-   ##
=========================================
- Coverage    79.5%   77.9%    -1.6%     
=========================================
  Files         932     399     -533     
  Lines       40988   20700   -20288     
  Branches      955     173     -782     
=========================================
- Hits        32609   16143   -16466     
+ Misses       8175    4508    -3667     
+ Partials      204      49     -155     
Flag Coverage Δ
integrationtests 62.2% <83.8%> (+0.8%) ⬆️
unittests 83.9% <83.8%> (+2.4%) ⬆️

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

Impacted Files Coverage Δ
...rc/simcore_service_webserver/statics/_constants.py 100.0% <ø> (ø)
...r/src/simcore_service_webserver/statics/_events.py 38.1% <50.0%> (ø)
...erver/src/simcore_service_webserver/application.py 97.8% <100.0%> (ø)
.../simcore_service_webserver/application_settings.py 98.7% <100.0%> (ø)
.../src/simcore_service_webserver/products/_events.py 95.4% <100.0%> (ø)
...r/src/simcore_service_webserver/products/_model.py 96.5% <100.0%> (ø)
...src/simcore_service_webserver/statics/_handlers.py 43.7% <100.0%> (ø)
...er/src/simcore_service_webserver/statics/plugin.py 61.1% <100.0%> (ø)
.../src/simcore_service_webserver/statics/settings.py 83.3% <100.0%> (ø)

... and 551 files with indirect coverage changes

@pcrespov pcrespov enabled auto-merge (squash) May 3, 2023 17:55
Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

👍

@codeclimate
Copy link

codeclimate bot commented May 4, 2023

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

View more on Code Climate.

@sonarcloud
Copy link

sonarcloud bot commented May 4, 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 merged commit 6162274 into ITISFoundation:master May 4, 2023
@pcrespov pcrespov deleted the is4071/mypy-webserver-statics branch May 4, 2023 13:12
@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