-
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
🎨 Add payment headers to start job #4892
🎨 Add payment headers to start job #4892
Conversation
requesting a review from you @mguidon so you can see the mechanism you will need to use from S4L and have a chance to make comments before it goes in. |
@pcrespov if you have a look at this, maybe think about if something needs to be done concerning products in this PR. I don't yet understand how that will fit into the picture... |
services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #4892 +/- ##
========================================
Coverage ? 66.6%
========================================
Files ? 576
Lines ? 28323
Branches ? 195
========================================
Hits ? 18869
Misses ? 9405
Partials ? 49
Flags with carried forward coverage won't be shown. Click here to find out more.
|
services/api-server/src/simcore_service_api_server/utils/client_base_dev.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.
Great job! I added some suggestions!
services/api-server/src/simcore_service_api_server/services/webserver.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base_dev.py
Outdated
Show resolved
Hide resolved
services/api-server/src/simcore_service_api_server/utils/client_base_dev.py
Show resolved
Hide resolved
@bisgaard-itis see my comments and the issue I refer above.The permissions to access those price lists are attached to the project. The webserver is the responsible for access-rights. When the api-server knows about the product, the request to the webserver should resolve permissions to those. |
Sounds good. Thanks |
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.
please solve as well the 3 code smells that sonarcloud is spotting. thx
@mrnicegyu11 @YuryHrytsuk could I get one of you to take a look at this. I think I need one of your approvals. Probably because I changed an environment variable. This is only related to the dev environment and only for the api server |
Kudos, SonarCloud Quality Gate passed!
|
Code Climate has analyzed commit dad8043 and detected 0 issues on this pull request. View more on Code Climate. |
What do these changes do?
pricing-plan-id
andpricing-unit-id
when starting a job via the api server. This is done by passing headersx-pricing-plan
andx-pricing-unit
.services/api-server/src/simcore_service_api_server/api/routes/solvers_jobs.py
to make the automatic code checkers happyRelated issue/s
How to test
I added unit tests to the API server unittest suite. So they will run automatically in the github workflow
DevOps Checklist