Skip to content

Conversation

@ziggie1984
Copy link
Collaborator

@ziggie1984 ziggie1984 commented Oct 21, 2025

Builds on top of the latest payment SQL changes and threads the context through payment functions.

This is part 1, as we can thread the context even further up the stack which will be done in Part 2

In this commit we add all queries which we will need to insert
payment related data into the db.
In commit add the harness which will be used to run db agnostic
tests against the kv and sql backend. However it does not use it
in this commit but it will over the next commits enable these db
agnostic tests for the relevant test functions.
Since now the sql backend is more strict in using the same
session key we refactor the helper so that we can easily change
the session key for every new attempt.
We make the QueryPayments test db agnostic and also keep a small
test for querying the duplicate payments case in the kv world.
Now that every method of the interface was implemented we can
remove the embedded reference to the KVStore.
We now test every test in the payment_test.go file against all
databases.
@ziggie1984 ziggie1984 changed the base branch from master to elle-payment-sql-series-new October 21, 2025 08:37
@ziggie1984 ziggie1984 force-pushed the introduce-sql-schema-payments-part-5 branch from 283469a to bc81c3a Compare October 21, 2025 08:43
@ziggie1984 ziggie1984 added payments Related to invoices/payments refactoring labels Oct 21, 2025
@ziggie1984 ziggie1984 added this to the v0.21.0 milestone Oct 21, 2025
@ziggie1984 ziggie1984 added this to v0.21 Oct 21, 2025
@ziggie1984 ziggie1984 self-assigned this Oct 21, 2025
@saubyk saubyk moved this to In progress in v0.21 Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

payments Related to invoices/payments refactoring

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant