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 session plugin #4304

Merged

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Jun 2, 2023

What do these changes do?

  • ♻️ refactors session plugin in webserver
    • plugin under session folder
    • protected internal modules and defined interface
    • renamed _logger
    • reviewed TODO annotations
    • fixes mypy issues

Related issue/s

How to test

cd services/web/server
make mypy | grep session
pytest -vv tests/**/test_*session*.py

@pcrespov pcrespov self-assigned this Jun 2, 2023
@pcrespov pcrespov added a:webserver issue related to the webserver service t:maintenance Some planned maintenance work labels Jun 2, 2023
@pcrespov pcrespov added this to the Pastel de Nata milestone Jun 2, 2023
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #4304 (8828e3d) into master (11f0fbd) will decrease coverage by 1.1%.
The diff coverage is 97.0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4304      +/-   ##
=========================================
- Coverage    85.5%   84.4%    -1.1%     
=========================================
  Files         965     393     -572     
  Lines       41139   20406   -20733     
  Branches      978     173     -805     
=========================================
- Hits        35188   17242   -17946     
+ Misses       5729    3115    -2614     
+ Partials      222      49     -173     
Flag Coverage Δ
integrationtests 67.9% <79.4%> (+0.1%) ⬆️
unittests 86.1% <94.1%> (+3.1%) ⬆️

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

Impacted Files Coverage Δ
...c/simcore_service_webserver/login/_registration.py 77.5% <75.0%> (ø)
...erver/src/simcore_service_webserver/application.py 97.9% <100.0%> (ø)
.../simcore_service_webserver/application_settings.py 98.7% <100.0%> (ø)
...mcore_service_webserver/garbage_collector_utils.py 84.8% <100.0%> (ø)
...rc/simcore_service_webserver/login/handlers_2fa.py 85.0% <100.0%> (ø)
...c/simcore_service_webserver/login/handlers_auth.py 94.2% <100.0%> (ø)
...e_service_webserver/login/handlers_confirmation.py 90.5% <100.0%> (ø)
...e_service_webserver/login/handlers_registration.py 90.9% <100.0%> (ø)
...rc/simcore_service_webserver/scicrunch/settings.py 100.0% <100.0%> (ø)
...mcore_service_webserver/session/access_policies.py 94.2% <100.0%> (ø)
... and 2 more

... and 648 files with indirect coverage changes

@pcrespov pcrespov marked this pull request as ready for review June 2, 2023 15:07
@pcrespov pcrespov enabled auto-merge (squash) June 2, 2023 18:57
@pcrespov pcrespov force-pushed the is4071/mypy-webserver-session branch from e867a85 to 8828e3d Compare June 4, 2023 20:23
@codeclimate
Copy link

codeclimate bot commented Jun 4, 2023

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

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 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 6887666 into ITISFoundation:master Jun 5, 2023
@pcrespov pcrespov deleted the is4071/mypy-webserver-session branch June 5, 2023 07:05
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