zulip/zerver/views
Steve Howell 2fb67b3f32 refactor: Extract add/remove_subscriptions_schema.
Now we are consistent about validating color/description.

Ideally we wouldn't need to validate the
`streams_raw` parameters multiple times per
request, but the outer function here changes
the error messages to explicitly reference
the "delete" and "add" request variables.

And for the situation where the user-supplied
parameters are correct, the performance penalty
for checking them twice is extremely negligible.

So it's probably fine for now to just make sure
we use the same validators in all the relevant
places.

There's probably some deeper refactor that we
can do to eliminate the whole `compose_views`
scheme.  And it's also not entirely clear to
me that we really need to support the update
endpoint.  But that's all out of the scope of
this commit.
2020-06-25 13:52:59 -07:00
..
development python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
__init__.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
alert_words.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
archive.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
attachments.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
auth.py fetch_api_key: Return `email` in json_response. 2020-06-24 15:13:31 -07:00
camo.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
compatibility.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
custom_profile_fields.py REQ: Check value in update_user_custom_profile_data. 2020-06-25 10:54:15 -07:00
digest.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
documentation.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
email_mirror.py email-mirror-postfix: Handle 8-bit messages correctly. 2020-06-14 20:24:06 -07:00
events_register.py events_register_backend: Validate client_capabilities type correctly. 2020-06-20 22:29:15 -07:00
home.py people: Enable `user_avatar_url_field_optional` in webapp. 2020-06-24 10:06:35 -07:00
hotspots.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
invite.py invite: Add option to invite user as an organization owner. 2020-06-20 23:04:59 -07:00
message_edit.py views: Extract message_edit.py for message editing views. 2020-06-22 15:08:34 -07:00
message_fetch.py narrows: Validate negated field. 2020-06-25 13:52:59 -07:00
message_flags.py views: Extract message_flags.py for flags views. 2020-06-22 15:08:34 -07:00
message_send.py message_send: Avoid unchecked cast. 2020-06-23 13:30:09 -07:00
muting.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
pointer.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
portico.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
presence.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
push_notifications.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
reactions.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
realm.py realm: Fix type-checking for message_retention_days. 2020-06-24 11:01:34 -07:00
realm_domains.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
realm_emoji.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
realm_export.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
realm_filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
realm_icon.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
realm_logo.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
registration.py confirmation: Pass realm rather than host to confirmation_url. 2020-06-14 23:27:22 -07:00
report.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
storage.py update_storage: Validate storage type correctly. 2020-06-20 22:29:15 -07:00
streams.py refactor: Extract add/remove_subscriptions_schema. 2020-06-25 13:52:59 -07:00
submessage.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
thumbnail.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
tutorial.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
typing.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
unsubscribe.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
upload.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
user_groups.py python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
user_settings.py settings: Add automatic theme detection feature. 2020-06-21 01:09:01 -07:00
users.py REQ: Use check_dict_only in update_user_backend. 2020-06-25 10:54:15 -07:00
video_calls.py video_calls: Annotate a type: ignore with a specific bug URL. 2020-06-23 11:29:54 -07:00
zephyr.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00