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

improve payment sync #1099

Merged
merged 10 commits into from
Oct 11, 2024
Merged

improve payment sync #1099

merged 10 commits into from
Oct 11, 2024

Commits on Oct 11, 2024

  1. improve payment sync efficiency

    - request all payments and invoices at the same time
    - only query used payment groups from the db
    JssDWt committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b2fe205 View commit details
    Browse the repository at this point in the history
  2. don't delete pending payments

    Now sync only fetches the latest payments, don't delete pending payments
    from the database. They will be updated by payment syc automagically.
    JssDWt committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    72dbc96 View commit details
    Browse the repository at this point in the history
  3. no need to check contains key

    JssDWt committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    35d2d3e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a38162 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d882d8f View commit details
    Browse the repository at this point in the history
  6. initialize mpp amount to 0

    JssDWt committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7803561 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2e6adf4 View commit details
    Browse the repository at this point in the history
  8. sync: reorganize order

    This fixes races between fetching updated and created.
    
    There was also a bug where the 'updated' index would be set to the 'created' index accidentally.
    JssDWt committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    4959124 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7d9a36c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2d01527 View commit details
    Browse the repository at this point in the history