Skip to content

Conversation

davidcornu
Copy link
Member

Summary of the problem

In #11757 I added a some logic to render the source and destination transactions for disbursements but failed to account for sub-ledgers, which meant card grant top-ups (where both the source and destination event are the same) were rendered in a very chaotic way.

Describe your changes

  • Instead of grouping transactions by event, use [event_id, subledger_id]
  • Remove .strict_loading (see reasoning in the commit message)

Before

CleanShot 2025-10-03 at 15 17 33

After

CleanShot 2025-10-03 at 15 17 47

1. Our reporting strategy is logging which makes it unlikely we'll spot
   regressions as they are introduced
2. I'm fairly certain we're already hitting errors as there's logic
   downstream that checks the various mappings on pending transactions.
   Given the small number of transactions we're displaying this seems
   acceptable.
@davidcornu davidcornu requested review from a team as code owners October 3, 2025 19:18
Copy link
Member

@sampoder sampoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@sampoder sampoder merged commit 38db6be into main Oct 13, 2025
13 checks passed
@sampoder sampoder deleted the david/push-vlrymosonrop branch October 13, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants