Refactor Voucher Handling to avoid redundant API calls and reduce LOAD/RELOADs on main.vis #40

Open
opened 2025-03-25 21:16:15 +01:00 by Alfred-mk · 0 comments
Member

Currently, both SetDefaultVoucher and CheckVouchers fetch vouchers separately from the API, leading to redundant API calls and unnecessary reads/writes to the user store.
Also, both functions are called in the main.vis and having a single function (ManageVouchers) consolidates logic for setting/updating vouchers in one place.

Currently, both SetDefaultVoucher and CheckVouchers fetch vouchers separately from the API, leading to redundant API calls and unnecessary reads/writes to the user store. Also, both functions are called in the main.vis and having a single function (`ManageVouchers`) consolidates logic for setting/updating vouchers in one place.
Alfred-mk added the
Kind/Enhancement
Priority
High
labels 2025-03-25 21:16:15 +01:00
Alfred-mk changed title from Refactor Voucher Handling to Avoid Redundant API Calls to Refactor Voucher Handling to avoid redundant API calls and reduce LOAD/RELOADs on main.vis 2025-03-25 21:16:55 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#40
No description provided.