zulip/zerver/views
Suyash Vardhan Mathur d1ccf15cd3 apidocs: Fix invalid API page bug.
The current logic to get API pages' title using
OperationID should be used when the first line
of the file explicitly mentions so.

In cases where the files didn't begin with `#` but also
didn't need to get title from OpenAPI summary,
this logic fails and causes Server error.
This particularly happens when the article is invalid,
and the `missing.md` file doesn't need title to be
generated, but doesn't start with `#` either.

This commit fixes the logic of using the generated title and covers the bug.
2021-06-03 10:47:47 -07:00
..
development docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
__init__.py
alert_words.py request: Rename validator parameter of REQ to json_validator. 2021-04-07 14:13:06 -07:00
archive.py archive: Use access_web_public_stream helper. 2021-04-14 12:37:34 -07:00
attachments.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
auth.py auth: Implement a generic OpenID Connect backend. 2021-05-28 09:43:06 -07:00
compatibility.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
custom_profile_fields.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
digest.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.py apidocs: Fix invalid API page bug. 2021-06-03 10:47:47 -07:00
drafts.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
email_mirror.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
events_register.py mypy: Don’t use Iterable for values iterated multiple times. 2021-04-29 16:06:17 -07:00
home.py home: Remove unused has_mobile_devices parameter. 2021-05-18 17:36:55 -07:00
hotspots.py api: Fix encoding of strings in hotspot endpoint. 2021-05-07 11:45:25 -07:00
invite.py invites: Allow user to be invited as a moderator. 2021-04-30 15:57:09 -07:00
message_edit.py backend: Extract check_update_message from update_message_backend. 2021-05-09 20:44:04 -07:00
message_fetch.py docs: Correct “webapp” to “web app”. 2021-05-14 13:15:38 -07:00
message_flags.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
message_send.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
muting.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
portico.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
presence.py docs: Correct “webapp” to “web app”. 2021-05-14 13:15:38 -07:00
push_notifications.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
reactions.py reactions: Extract check_add_reaction from add_reaction. 2021-04-28 09:11:08 -07:00
realm.py settings: Add new setting for controlling who can move msgs to stream. 2021-04-16 15:10:39 -07:00
realm_domains.py api: Fix encoding of strings in realm domain endpoint. 2021-05-07 14:06:54 -07:00
realm_emoji.py settings: Rename MAX_EMOJI_FILE_SIZE. 2021-06-02 13:55:15 -07:00
realm_export.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
realm_icon.py settings: Rename MAX_ICON_FILE_SIZE. 2021-06-02 13:55:15 -07:00
realm_linkifiers.py linkifiers: Add an API to support the editing of linkifier. 2021-04-19 18:01:45 -07:00
realm_logo.py settings: Rename MAX_LOGO_FILE_SIZE. 2021-06-02 13:55:15 -07:00
realm_playgrounds.py docs: Capitalize “Markdown” consistently. 2021-04-26 09:31:08 -07:00
registration.py emails: Make it obvious when registering creates new realm. 2021-06-02 15:18:03 -07:00
report.py docs: Fix capitalization mistakes. 2021-05-10 09:57:26 -07:00
storage.py storage: Fix get_storage and remove_storage with empty keys list. 2021-04-13 08:53:03 -07:00
streams.py api: Fix encoding of strings in streams endpoint. 2021-05-10 10:29:22 -07:00
submessage.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
thumbnail.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
tutorial.py api: Fix encoding of strings in tutorial endpoint. 2021-05-07 14:06:54 -07:00
typing.py typing: Support sending stream/topic typing status. 2021-04-27 20:52:21 -07:00
unsubscribe.py unsubscribe: Configure as csrf_exempt. 2021-04-28 15:33:32 -07:00
upload.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
user_groups.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
user_settings.py settings: Rename MAX_AVATAR_FILE_SIZE. 2021-06-02 13:55:15 -07:00
users.py python: Convert deprecated Django ugettext alias to gettext. 2021-04-15 18:01:34 -07:00
video_calls.py api: Fix encoding of strings in video calls endpoint. 2021-05-07 14:11:48 -07:00
zephyr.py docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00