-
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
✨ introduce licensed_items_purchases
endpoints 🗃️
#6928
✨ introduce licensed_items_purchases
endpoints 🗃️
#6928
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6928 +/- ##
==========================================
+ Coverage 87.78% 87.91% +0.13%
==========================================
Files 1586 1532 -54
Lines 62432 60721 -1711
Branches 2005 1753 -252
==========================================
- Hits 54806 53384 -1422
+ Misses 7290 7028 -262
+ Partials 336 309 -27
Continue to review full report in Codecov by Sentry.
|
licensed_items_purchases
endpoints
…sdrobuliak66/osparc-simcore into introduce-vip-models-pricing-4-part
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.
Yeeeha!
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.
great! thanks
packages/models-library/src/models_library/resource_tracker_licensed_items_purchases.py
Show resolved
Hide resolved
...e_postgres_database/migration/versions/8fa15c4c3977_add_cols_to_licensed_items_purchases_.py
Show resolved
Hide resolved
licensed_items_purchases
endpointslicensed_items_purchases
endpoints 🗃️
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.
What do you want to represent with licensed_items_purchases
: the transaction or the actual license?
You are introducing licensed_items_purchases
as the resource obtained when purchasing a licensed_item
. If you do not mean the transaction, isn't that essentially just a license?
- The items that are licensed are called
licensed_items
. - To use a
licensed_item
, you must purchase the correspondinglicense
. - In order to use a
licensed_item
, the system verifies the existence of the "linked" or "associated"license
purchased for that specific purpose.
A selection of other names that chatty suggested in case you need it
If it represents the license:
usage_license
active_license
If it represents the purchase transaction:
license_purchase
purchase_record
If it represents both the purchase and the license:
licensed_item_access
purchased_license
The key is to align the name with the role this resource plays in the system. If it’s being used to check permissions (whether an item can be used), a term like license
or licensed_item_license
may work best. If it’s primarily about the transaction or tracking the purchase, then a term emphasizing "purchase" is more appropriate.
...ls-library/src/models_library/api_schemas_resource_usage_tracker/licensed_items_purchases.py
Show resolved
Hide resolved
...ls-library/src/models_library/api_schemas_resource_usage_tracker/licensed_items_purchases.py
Show resolved
Hide resolved
In my naming, we are offering |
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.
Very nice. Thank!
...sage-tracker/src/simcore_service_resource_usage_tracker/services/licensed_items_purchases.py
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.
Just have a few questions below.
...s-database/src/simcore_postgres_database/models/resource_tracker_licensed_items_purchases.py
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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.
pair reviewed. thx
What do these changes do?
licensed_items_purchases
endpointsNext step:
Related issue/s
How to test
test_licensed_items_purchases_handlers.py
test_api_licensed_items_purchases.py
Dev-ops checklist