View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006060||Taler||wallet (Android App)||public||2020-01-22 19:57||2020-01-23 17:00|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0006060: Render pending events on main screen and top of history|
|Description||In most cases pending operations turn into history events quickly.|
Sometimes a pending operation indicates an error that requires attention from the user (i.e. when an operation failed because there is no internet connectivity)
Some pending operations require something to happen *outside* the control of our software (for example when we are waiting for a bank transfer between the user's bank account and the exchange)
The schema for pending operations is defined here:
|Tags||No tags attached.|
||Florian Dold, how should we handle pending operations that will never finish? Is there a way for the user to cancel/remove them?|
Every pending operation should have some "cancel" / "dismiss" action. What happens for this typically depends on the type of pending operation and would be implemented by wallet-core.
When implementing the rendering, you should just assume that every pending operation has some "pendingOperationId" (just like history events have unique identifiers), and the wallet offers some "dismissPendingOperation" or maybe "cancelPendingOperation" API. Some types of pending operations might also offer different "actions", but dismissing them should be implemented first.
For some types of pending operations the wallet would then automatically create a history event for the cancelled pending operation.
> When implementing the rendering, you should just assume that every pending operation has some "pendingOperationId" (just like history events have unique identifiers), and the wallet offers some "dismissPendingOperation" or maybe "cancelPendingOperation" API.
Do I need to assume their existence or are they already implemented somewhere, so I can actually use them? Or do you want me to just add a non-functional dismiss button everywhere.