You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like a core feature that's missing right now. I want users to be able to see the actual task input arguments, dotted import path of the task handler function + source code file location, and its returned result value (as long as it's still available in the huey results store).
Obviously not everyone has result storing enabled, so it would be behind several conditionals that check:
is a result store available
is the task still present in the result store
has the task produced any output yet
If all are true, then we can display the result inline in Admin widget with a custom render function that handles producing different html depending on its type. To start with we could just render a simple str(result) representation.
We could also use django-jsonform as an optional extra dependency, their stuff is great for rendering arbitrary JSON-able objects nicely in the admin: https://github.com/bhch/django-jsonform
It seems like a core feature that's missing right now. I want users to be able to see the actual task input arguments, dotted import path of the task handler function + source code file location, and its returned result value (as long as it's still available in the huey results store).
Obviously not everyone has result storing enabled, so it would be behind several conditionals that check:
If all are true, then we can display the result inline in Admin widget with a custom render function that handles producing different html depending on its type. To start with we could just render a simple
str(result)
representation.We could also use
django-jsonform
as an optional extra dependency, their stuff is great for rendering arbitrary JSON-able objects nicely in the admin: https://github.com/bhch/django-jsonformRelated:
The text was updated successfully, but these errors were encountered: