zulip/zulip

Contribute Zulip's JsonableError framework to Django upstream

Open

#975 opened on Jun 7, 2016

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Python (19,672 stars) (7,339 forks)batch import
area: dependencieshelp wanted

Description

Zulip has this nice JsonableError framework (defined in zerver/lib/request.py plus zerver/middleware.py) that can turn an exception thrown inside Zulip into a nice user-facing error message for all of our JSON routes. I think this would be a great feature to contribute to Django upstream, since it would help a lot of other developers as well. I talked to a Django core team member at PyCon, and he thought it would be a great addition but probably deserves a thread on the django-devel mailing list to make sure we get the right interface merged into mainline.

(We'd want to generalize this a bit to support other ways to marshall the data, and maybe think a bit more about making internationalization really nice, but I think this would be a great small contribution.)

Contributor guide

Contribute Zulip's JsonableError framework to Django upstream · zulip/zulip#975 | Good First Issue