-
Notifications
You must be signed in to change notification settings - Fork 27
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
♻️✨ refactoring of pricing plans (🗃️) #4812
♻️✨ refactoring of pricing plans (🗃️) #4812
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5994 lines exceeds the maximum allowed for the inline comments feature.
Codecov Report
@@ Coverage Diff @@
## master #4812 +/- ##
========================================
+ Coverage 82.9% 87.3% +4.4%
========================================
Files 1154 1045 -109
Lines 48048 44734 -3314
Branches 1040 629 -411
========================================
- Hits 39867 39093 -774
+ Misses 7948 5498 -2450
+ Partials 233 143 -90
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5941 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5852 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5851 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5855 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5855 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5855 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So these are my initial comments. Looks good.
...ges/postgres-database/src/simcore_postgres_database/models/resource_tracker_pricing_units.py
Show resolved
Hide resolved
...acker/src/simcore_service_resource_usage_tracker/modules/db/repositories/resource_tracker.py
Show resolved
Hide resolved
...acker/src/simcore_service_resource_usage_tracker/modules/db/repositories/resource_tracker.py
Show resolved
Hide resolved
...racker/src/simcore_service_resource_usage_tracker/services/resource_tracker_pricing_plans.py
Show resolved
Hide resolved
...racker/src/simcore_service_resource_usage_tracker/services/resource_tracker_pricing_plans.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a big PR. I could not go in depth in all parts. I left some comments that I hope they are useful .
...es-database/src/simcore_postgres_database/models/resource_tracker_pricing_plan_to_service.py
Show resolved
Hide resolved
...ces/web/server/src/simcore_service_webserver/resource_usage/resource_usage_tracker_client.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/catalog/_handlers.py
Outdated
Show resolved
Hide resolved
services/web/server/tests/unit/with_dbs/03/resource_usage/test_pricing_plans.py
Outdated
Show resolved
Hide resolved
Extra note: how much of this code is test-covered? Did you check e.g. in https://app.codecov.io/gh/ITISFoundation/osparc-simcore/tree/master/services%2Fweb%2Fserver%2Fsrc%2Fsimcore_service_webserver%2Fresource_usage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5925 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5935 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx. Please do not forget last cleanup!
thx!
services/web/server/tests/unit/with_dbs/03/resource_usage/test_pricing_plans.py
Outdated
Show resolved
Hide resolved
Please retry analysis of this Pull-Request directly on SonarCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5913 lines exceeds the maximum allowed for the inline comments feature.
…ub.com:matusdrobuliak66/osparc-simcore into is1133/create-api-for-creation-of-pricing-plan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5905 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5905 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5905 lines exceeds the maximum allowed for the inline comments feature.
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5905 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit b4b78f0 and detected 0 issues on this pull request. View more on Code Climate. |
What do these changes do?
openapi.json specs
/v0/services/-/resource-usages
now returns real cost + status whether it was billed or not/v0/catalog/services/{service_key}/{service_version}/pricing-plan
/v0/pricing-plans/{pricing_plan_id}/pricing-units/{pricing_unit_id}
/v1/services/{service_key}/{service_version}/pricing-plan
/v1/pricing-plans/{pricing_plan_id}/pricing-units/{pricing_unit_id}
Describe the overall billing plan/package. The pricing plan can be connected to one or more services. A specific pricing plan might be defined also for billing storage costs.
Specifies the various units within a pricing plan that denote different levels or segments. For example, a specific pricing plan might offer three tiers based on resources: SMALL, MEDIUM, and LARGE.
Defines the credit cost for each unit, which can change over time, allowing for pricing flexibility.
resource_usage_pricing_*
tablesRelated issue/s
How to test
DevOps Checklist