Skip to content

♻️ Feedback on payments plugin and service #4763

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

Merged
merged 13 commits into from
Sep 18, 2023

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Sep 15, 2023

What do these changes do?

Implements feedback after review with @odeimaiz

  • Fake mechanism (for prototyping)
    • increase success rate on possible outcomes (before it was faking "falure" too much)
    • return fake payment-method values
  • API of the services/payments version: 1.0.0 → 1.1.0
    • payments ACK includes payment_method_id in case user marks save during payment flow
  • init step in init-prompt-ack flow responds with ACCEPTED instead of CREATED to indicate that the request has been accepted for processing but has not been completed
  • sends notifications to front-end when payment-method is ACKED (i.e. completes Init-Prompt-Ack flow)

Detail on init-pro-ack flow
init-pro-ack flow

Related issue/s

How to test

  • services/web/server/tests/unit/with_dbs/03/wallets/payments/test_payments_methods.py

DevOps

@pcrespov pcrespov self-assigned this Sep 15, 2023
@pcrespov pcrespov changed the title ♻️ Is1027/payments feedback ♻️ Feedback on payments plugin and service Sep 15, 2023
@pcrespov pcrespov added a:webserver issue related to the webserver service a:api framework api, data schemas, a:payments payments service labels Sep 15, 2023
@pcrespov pcrespov added this to the the nameless milestone Sep 15, 2023
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Merging #4763 (c7d45d7) into master (0bf85e1) will decrease coverage by 1.9%.
The diff coverage is 86.6%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4763      +/-   ##
=========================================
- Coverage    87.0%   85.2%    -1.9%     
=========================================
  Files        1131     591     -540     
  Lines       47220   27719   -19501     
  Branches     1014     299     -715     
=========================================
- Hits        41107   23620   -17487     
+ Misses       5886    4041    -1845     
+ Partials      227      58     -169     
Flag Coverage Δ
integrationtests ?
unittests 85.2% <86.6%> (+0.4%) ⬆️

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

Files Changed Coverage Δ
.../simcore_service_webserver/payments/_methods_db.py 85.5% <ø> (ø)
...r/src/simcore_service_webserver/payments/_tasks.py 48.4% <50.0%> (+4.1%) ⬆️
...ervice_payments/models/schemas/acknowledgements.py 100.0% <100.0%> (ø)
...simcore_service_webserver/payments/_methods_api.py 100.0% <100.0%> (ø)
...rc/simcore_service_webserver/payments/_socketio.py 100.0% <100.0%> (ø)
...src/simcore_service_webserver/socketio/messages.py 94.7% <100.0%> (+0.1%) ⬆️
...re_service_webserver/wallets/_payments_handlers.py 99.1% <100.0%> (ø)

... and 609 files with indirect coverage changes

@pcrespov pcrespov marked this pull request as ready for review September 18, 2023 11:56
@pcrespov pcrespov enabled auto-merge (squash) September 18, 2023 11:56
@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

@codeclimate
Copy link

codeclimate bot commented Sep 18, 2023

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

View more on Code Climate.

Copy link
Collaborator

@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.

👍

@pcrespov pcrespov merged commit e4579a9 into ITISFoundation:master Sep 18, 2023
@pcrespov pcrespov deleted the is1027/payments-feedback branch September 19, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:api framework api, data schemas, a:payments payments service a:webserver issue related to the webserver service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants