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

♻️ Major cleanup of catalog service #5904

Merged
merged 49 commits into from
Jun 5, 2024

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented May 31, 2024

What do these changes do?

This is a large cleanup refactoring of catalog before modifying its functionality for the related issues mentioned below.

Highlights

  • ♻️ Upgrades to using Annotations
  • ✨ Extends CLI with echo-envfile
  • 🗑️ Removes deprecated local env-devel and extra-docker-compose.yaml
    • adapts Makefile and service CLI with echo-envfile command
    • simplifies README
  • ♻️ services/catalog/src/simcore_service_catalog/core/background_tasks.py
    • move implementation to services
    • make sure only one replica runs it
  • ♻️ separated exception classes and handlers
  • ♻️ test fixtures:
    - enhanced and reduced tests fixtures by using pytest_simcore assets
  • ♻️ ruffed entire code base

Related issue/s

How to test

cd services/catalog
make install-dev
make test-dev-unit

Dev-ops checklist

@pcrespov pcrespov self-assigned this May 31, 2024
@pcrespov pcrespov added a:services-library issues on packages/service-libs a:catalog catalog service labels May 31, 2024
Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.6%. Comparing base (cafbf96) to head (a2de9fe).
Report is 251 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5904      +/-   ##
=========================================
+ Coverage    84.5%   88.6%    +4.0%     
=========================================
  Files          10     937     +927     
  Lines         214   41367   +41153     
  Branches       25     932     +907     
=========================================
+ Hits          181   36663   +36482     
- Misses         23    4495    +4472     
- Partials       10     209     +199     
Flag Coverage Δ
integrationtests 64.7% <ø> (?)
unittests 86.3% <ø> (+1.7%) ⬆️

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

see 913 files with indirect coverage changes

@pcrespov pcrespov added this to the Leeroy Jenkins milestone Jun 3, 2024
@pcrespov pcrespov force-pushed the is1404/mai-service-catalog branch 2 times, most recently from 0e90e21 to 8945bd7 Compare June 3, 2024 14:11
@pcrespov pcrespov changed the title ♻️ Is1404/mai service catalog ♻️ Major cleanup of catalog service Jun 4, 2024
@pcrespov pcrespov marked this pull request as ready for review June 4, 2024 13:03
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.

👍

Copy link
Member

@mrnicegyu11 mrnicegyu11 left a comment

Choose a reason for hiding this comment

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

Looks good, nothing scary caught my eye. ful discloser i didnt read through all the unit-test changes 🙏

@pcrespov pcrespov enabled auto-merge (squash) June 4, 2024 14:59
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.

please check the cancellation decorator. I find weird to place it after the cached one

.env-devel Show resolved Hide resolved
Copy link

sonarcloud bot commented Jun 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.2% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@bisgaard-itis bisgaard-itis left a comment

Choose a reason for hiding this comment

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

Very cool! Thanks a lot.
Just left a few suggestions

@pcrespov pcrespov disabled auto-merge June 5, 2024 08:59
@pcrespov pcrespov merged commit b305ed2 into ITISFoundation:master Jun 5, 2024
57 checks passed
@matusdrobuliak66
Copy link
Contributor

Thanks 👍

@pcrespov pcrespov deleted the is1404/mai-service-catalog branch June 5, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:catalog catalog service a:services-library issues on packages/service-libs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants