zulip/zerver
Zixuan James Li ab53e8d3e6 migrations: Backfill url_template from url format string.
This is implemented by replacing all matches of "%(var_name)s" in a URL
format string with "{var_name}". Since we do want to ensure that the
templates aren't broken after this migration, a RuntimeError is raised
to let the maintainer know that certain linkifier cannot be converted
automatically if it does not pass the uri_template.validate check.

Also, we need to escape "%%", which is used to represent "%" in the old
format string syntax, as well as "{" and "}", which is a part of the
URL template syntax.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2023-04-19 12:20:49 -07:00
..
actions user_topics: Update 'do_update_message' to handle 'merge userTopic states'. 2023-04-18 16:40:57 -07:00
data_import auth: Rewrite data model for tracking enabled auth backends. 2023-04-18 09:22:56 -07:00
integration_fixtures/nagios
lib user_topics: Update 'topic_has_visibility_policy' to support INHERIT. 2023-04-18 16:40:57 -07:00
management auth: Rewrite data model for tracking enabled auth backends. 2023-04-18 09:22:56 -07:00
migrations migrations: Backfill url_template from url format string. 2023-04-19 12:20:49 -07:00
openapi api-docs: Clean up documentation of API events with `message_type`. 2023-04-19 09:33:58 -07:00
tests migrations: Backfill url_template from url format string. 2023-04-19 12:20:49 -07:00
tornado message: Use `recipient_type_name` for API message type references. 2023-04-18 12:29:33 -07:00
views user_settings: Add web_mark_read_on_scroll_policy field. 2023-04-18 18:32:02 -07:00
webhooks integration: Remove branch names from Gitea edited PR event. 2023-04-07 15:17:23 -07:00
worker error_notify: Drop any remaining browser-side errors in RabbitMQ queue. 2023-04-13 14:59:58 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py templates: Use `root_domain_url` Django templates. 2023-04-10 10:26:48 -07:00
decorator.py request-notes: Add `is_webhook_view` boolean to fields. 2023-03-06 10:33:13 -08:00
filters.py
forms.py templates: Update text on /accounts/find. 2023-03-30 09:06:14 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py report_error: Remove API endpoint for client error reporting. 2023-04-13 14:59:58 -07:00
models.py linkifiers: Add url_template field. 2023-04-19 12:20:49 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00