Scheduled transfers UI: let customers see run history older than twelve months

Aperta
#285 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
63/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, playwright, typescript
Ambito
api, frontend

Direzione di ricerca

Start at the scheduled transfer detail page added in #264 and trace its runs(publicId, page, size) call, then check the BFF endpoint parameters and existing Playwright coverage. Add a visible date range and a control that requests the preceding twelve-month window while keeping paging within that window. Done when the default range is stated, earlier runs load, paging works in an earlier window, and the scheduled-transfers docs are updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement Triage
What a consumer cannot do today

Since #265, the run history endpoint (GET /api/v1/scheduled-transfers/{publicId}/runs) reads a date window. With no fromDate it starts twelve months before toDate, or before Fineract's current date if there is no toDate.

The detail page added in #264 calls runs(publicId, page, size) with no dates. So it now shows only the last twelve months, and nothing in the page says so. A customer whose scheduled transfer is more than a year old cannot see its earlier runs, including failed ones, and has no way to ask for them. totalElements and totalPages also describe the window, not the transfer's whole history, so the page count can look wrong to a customer who expects everything.

What you would like instead

A customer can see which period the run list covers and can load an earlier one.

  • The detail page says what it is showing (for example "Runs from 15 Jan 2029 to today") instead of implying it is the whole history.
  • A "Show older runs" control loads the previous window by sending fromDate and toDate to the existing endpoint. Each step goes back twelve months, matching the default window.
  • Paging stays correct inside a window: page and size apply to the window the customer chose.
  • If the backend later caps the window length (see the linked hardening issue), the UI only requests windows within that cap.

Acceptance:

  • Runs older than twelve months can be viewed from the detail page.
  • The default view states that it covers the last twelve months.
  • Playwright coverage for loading an earlier window and for paging inside it.
  • Docs in docs/consumer/features/scheduled-transfers.adoc updated if the user-facing behavior changes.
Fineract API it relies on

No new Fineract API and no backend change. It uses the existing BFF endpoint GET /api/v1/scheduled-transfers/{publicId}/runs with its fromDate and toDate parameters (added in #265). The BFF reads Fineract's GET /v1/standinginstructionrunhistory and applies the window itself.

Dev list thread or Matrix discussion

Part of the scheduled transfers work in #239: https://lists.apache.org/thread.html/x24mmcxntk1co3fxp7mf7khckohn0q4t Follow-up to #250 / #265 and the UI in #264.

Alternatives and workarounds
  • Show the whole history by default again. Rejected: that is the unbounded read #250 was about, and the cost grows with the account's age.
  • Add a "total runs ever" figure. Not possible cheaply: Fineract cannot filter run history by instruction, so counting a transfer's runs means reading the account's runs.
  • Today the only workaround is to call the endpoint directly with fromDate and toDate. The UI offers no way to do it.
Lingua principale
Java
Stelle
7
Fork
22
Merge medio
1g 14h
PR unite (30g)
50

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/fineract-consumer-facing

Tutte le issue di apache/fineract-consumer-facing

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.