View Issue Details

IDProjectCategoryView StatusLast Update
0009955Talermerchant backoffice SPApublic2026-01-31 12:39
ReporterBohdan Assigned Tosebasjm  
PriorityhighSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.0 
Target Version1.5 
Summary0009955: Page has to be reload to show changes in orders
DescriptionWhen the orders are changed using API calls backoffice doesn't show this; the page has to be reloaded to show changes; simple navigation between segments is not enough to check for changes
Steps To Reproduce1. Create the order
2. Delete it using a direct call to a backend
3. Go through different pages(e.g. to inventory)
4. Go back to orders
5. Still see the order that has been deleted
TagsNo tags attached.

Relationships

related to 0009681 closedsebasjm while viewing order details page, SPA does not long-poll, shows stale data 
related to 0010734 closedsebasjm order status stale in SPA 

Activities

sebasjm

2025-12-08 19:17

developer   ~0026826

the backend long polling doesn't support this so the SPA doesn't check if the current list changed.

https://docs.taler.net/core/api-merchant.html#get-[-instances-$INSTANCE]-private-orders

We should improve first the backend

Christian Grothoff

2026-01-26 03:33

manager   ~0027355

Added long-polling API with new not_etag query parameter to GET /private/orders/$ID.
Not quite complete though: the trigger on a reconciliation update (wire transfer finished) is missing.

Christian Grothoff

2026-01-26 03:34

manager   ~0027356

(that said, should be OK to add to SPA!)

Christian Grothoff

2026-01-26 05:52

manager   ~0027357

898aad8e..64978c91 adds notifications on settlement status changes. So with this, the SPA should now be able to long-poll on ANY change to the order status using the new not_etag query parameter (ideally in combination with if-none-match set to the ETag to really only get a 304 if nothing changed).

sebasjm

2026-01-26 18:22

developer   ~0027374

this won't solve the original issue. the lp_not_etag is on the order details but no on the order listing.

Christian Grothoff

2026-01-26 19:26

manager   ~0027377

Eh, that depends on which dialog we are talking about. I though this was about the dialog showing an individual order's details. For that dialog, this will help.
For the *list* of all orders, it doesn't directly help, and I'm not sure there is a good way to do that.

Christian Grothoff

2026-01-26 19:26

manager   ~0027378

Anyway, for now please just modify the order details view to long-poll like this on changes to the order that is currently being viewed.

sebasjm

2026-01-29 20:26

developer   ~0027454

d3e65709f..4becda012 adds the long polling on order details

there is a problem still, see 0010943

sebasjm

2026-01-29 20:26

developer   ~0027455

server needs to add long polling on order list or mark as wont fix

Christian Grothoff

2026-01-30 06:31

manager   ~0027473

Ok, order list is another issue. I'm honestly not quite sure how to best do this. Needs discussion!

Christian Grothoff

2026-01-31 12:38

manager   ~0027497

I just checked, and the server *HAS* long-polling on the order list. There was only one unusual constraint, which is that the "delta" value given had to be positive. I've now removed that in 0009955. So with this, you should be able to do two long pollers, one into the future and one for the visible "window" of orders and receive notifications if any of them change.

Issue History

Date Modified Username Field Change
2025-05-13 23:54 Bohdan New Issue
2025-05-14 20:30 Christian Grothoff Status new => confirmed
2025-05-14 20:30 Christian Grothoff Target Version 1.0 stretch goals => 1.5
2025-12-07 10:43 Christian Grothoff Relationship added related to 0009681
2025-12-07 10:44 Christian Grothoff Relationship added related to 0010734
2025-12-08 19:15 sebasjm Category merchant backoffice SPA => merchant backend
2025-12-08 19:17 sebasjm Note Added: 0026826
2026-01-25 13:05 Christian Grothoff Assigned To => Christian Grothoff
2026-01-25 13:05 Christian Grothoff Status confirmed => assigned
2026-01-26 00:27 Christian Grothoff Priority normal => high
2026-01-26 03:33 Christian Grothoff Note Added: 0027355
2026-01-26 03:34 Christian Grothoff Note Added: 0027356
2026-01-26 05:52 Christian Grothoff Note Added: 0027357
2026-01-26 05:52 Christian Grothoff Assigned To Christian Grothoff => sebasjm
2026-01-26 05:52 Christian Grothoff Category merchant backend => merchant backoffice SPA
2026-01-26 18:22 sebasjm Assigned To sebasjm => Christian Grothoff
2026-01-26 18:22 sebasjm Status assigned => feedback
2026-01-26 18:22 sebasjm Note Added: 0027374
2026-01-26 19:26 Christian Grothoff Note Added: 0027377
2026-01-26 19:26 Christian Grothoff Note Added: 0027378
2026-01-26 19:27 Christian Grothoff Assigned To Christian Grothoff => sebasjm
2026-01-26 19:27 Christian Grothoff Status feedback => assigned
2026-01-29 20:26 sebasjm Note Added: 0027454
2026-01-29 20:26 sebasjm Assigned To sebasjm => Christian Grothoff
2026-01-29 20:26 sebasjm Status assigned => feedback
2026-01-29 20:26 sebasjm Note Added: 0027455
2026-01-30 06:31 Christian Grothoff Note Added: 0027473
2026-01-30 06:32 Christian Grothoff Tag Attached: discussion-needed
2026-01-31 12:38 Christian Grothoff Note Added: 0027497
2026-01-31 12:39 Christian Grothoff Tag Detached: discussion-needed
2026-01-31 12:39 Christian Grothoff Assigned To Christian Grothoff => sebasjm
2026-01-31 12:39 Christian Grothoff Status feedback => assigned