Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mobile] State-matching and queuing endpoint #105

Open
agritheory opened this issue Apr 18, 2024 · 0 comments
Open

[mobile] State-matching and queuing endpoint #105

agritheory opened this issue Apr 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request version-15

Comments

@agritheory
Copy link
Owner

agritheory commented Apr 18, 2024

One of the requirements for a low-friction mobile scanning interface is the ability to enqueue an action and update the app UI optimistically. When it succeeds, it can resolve this with the UI transparently. If there's a failure, it should notify and/or undo changes, depending on their context.

We would expect this to map to a GQL subscription so that the user knows errors. We will want to port this implementation into a yet-to-be-started python package. A Frappe app implementation exists here

This can be achieved by providing notification functions for the on_success and on_failure callbacks: https://github.com/frappe/frappe/blob/version-15/frappe/utils/background_jobs.py#L67-L68

These should both push data on subscription to the client

@agritheory agritheory self-assigned this May 6, 2024
@agritheory agritheory added enhancement New feature or request version-15 labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request version-15
Projects
None yet
Development

No branches or pull requests

1 participant