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 diagnostics plugin #4187

Merged

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented May 2, 2023

What do these changes do?

  • ♻️ refactors diagnostics plugin in webserver:
    • plugin under diagnostics folder
    • protected internal modules
    • general code cleanup (e.g. _logger, TODO, ...)
    • Removed unused "STATIC_WEBSERVER_ENABLED", "WEBSERVER_STATIC_MODULE_ENABLED"

Related issue/s

How to test

cd services/web/server
make mypy | grep diagnostics

@pcrespov pcrespov requested review from sanderegg and GitHK as code owners May 2, 2023 20:42
@pcrespov pcrespov self-assigned this May 2, 2023
@pcrespov pcrespov added this to the The Next Milestone milestone May 2, 2023
@pcrespov pcrespov added a:webserver issue related to the webserver service t:maintenance Some planned maintenance work labels May 2, 2023
@pcrespov pcrespov requested a review from matusdrobuliak66 May 2, 2023 20:47
@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #4187 (9a659a0) into master (290f0f7) will decrease coverage by 2.3%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4187      +/-   ##
=========================================
- Coverage    82.0%   79.8%    -2.3%     
=========================================
  Files         958       8     -950     
  Lines       41532     382   -41150     
  Branches      955       0     -955     
=========================================
- Hits        34078     305   -33773     
+ Misses       7250      77    -7173     
+ Partials      204       0     -204     
Flag Coverage Δ
integrationtests 79.8% <ø> (+20.6%) ⬆️
unittests ?

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

see 952 files with indirect coverage changes

@pcrespov pcrespov force-pushed the is4071/mypy-webserver-diagnostics branch from 87db51a to df1df79 Compare May 3, 2023 14:54
@codeclimate
Copy link

codeclimate bot commented May 3, 2023

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

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 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 enabled auto-merge (squash) May 3, 2023 17:00
@pcrespov pcrespov merged commit 3460ffb into ITISFoundation:master May 3, 2023
@pcrespov pcrespov deleted the is4071/mypy-webserver-diagnostics branch May 10, 2023 15:03
@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:webserver issue related to the webserver service t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants