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

♻️ Maintenance: Fixes and removing deprecated functionality in servicelib #4470

Merged
merged 26 commits into from
Jul 10, 2023

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Jul 6, 2023

What do these changes do?

Big cleanup of deprecated/unused code in servicelib

  • 🗑️ Removing dependencies to attr (replaced by dataclass)
  • 🗑️ Removing deprecated, duplicated or unused functionality
    • submodules as servicelib.aiohttp.rest_* ... which are related openapi-core
    • functionality resources
  • 🐛 Fixes bugs detected by mypy
  • ⚗️ SEE test_application.py app events
    - found some pitfalls on cleanup of client and fire&forget events!

Related issue/s

How to test

  • in-place

DevOps

None

@pcrespov pcrespov self-assigned this Jul 6, 2023
@pcrespov pcrespov added this to the Watermelon milestone Jul 6, 2023
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #4470 (7f5b986) into master (9e9e234) will decrease coverage by 15.7%.
The diff coverage is 69.1%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4470      +/-   ##
=========================================
- Coverage    86.2%   70.5%   -15.7%     
=========================================
  Files        1016     719     -297     
  Lines       43278   30978   -12300     
  Branches     1021     536     -485     
=========================================
- Hits        37340   21866   -15474     
- Misses       5704    8982    +3278     
+ Partials      234     130     -104     
Flag Coverage Δ
integrationtests 61.3% <57.8%> (-6.9%) ⬇️
unittests 70.0% <69.1%> (-13.9%) ⬇️

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

Impacted Files Coverage Δ
...library/src/servicelib/aiohttp/dev_error_logger.py 0.0% <0.0%> (ø)
...library/src/servicelib/aiohttp/monitor_services.py 0.0% <0.0%> (ø)
...ckages/service-library/src/servicelib/resources.py 0.0% <0.0%> (ø)
...rc/simcore_service_webserver/diagnostics/plugin.py 55.5% <0.0%> (-44.5%) ⬇️
...ice_webserver/notifications/_rabbitmq_consumers.py 51.3% <ø> (-47.3%) ⬇️
...erver/src/simcore_service_webserver/rest/plugin.py 86.8% <20.0%> (-4.6%) ⬇️
...library/src/servicelib/aiohttp/openapi_wrappers.py 51.9% <25.0%> (-20.8%) ⬇️
...rary/src/servicelib/aiohttp/requests_validation.py 84.4% <33.3%> (-2.0%) ⬇️
...mcore_service_webserver/diagnostics/_monitoring.py 61.9% <33.3%> (-38.1%) ⬇️
.../service-library/src/servicelib/aiohttp/openapi.py 64.8% <50.0%> (-1.0%) ⬇️
... and 24 more

... and 500 files with indirect coverage changes

@pcrespov pcrespov added the a:services-library issues on packages/service-libs label Jul 6, 2023
@codeclimate
Copy link

codeclimate bot commented Jul 7, 2023

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

View more on Code Climate.

@pcrespov pcrespov force-pushed the fix/service-library branch from 8cdb35d to ceab40f Compare July 7, 2023 18:47
@pcrespov pcrespov marked this pull request as ready for review July 10, 2023 07:05
@pcrespov pcrespov requested a review from mguidon July 10, 2023 07:05
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.

looking good 👍

@sonarqubecloud
Copy link

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) July 10, 2023 07:19
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.

Nice, find some questions below.

@mrnicegyu11
Copy link
Member

thanks!

@pcrespov pcrespov disabled auto-merge July 10, 2023 09:26
@pcrespov pcrespov merged commit d41139e into ITISFoundation:master Jul 10, 2023
@pcrespov pcrespov deleted the fix/service-library branch July 10, 2023 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:services-library issues on packages/service-libs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants