Niloth P
335f9b8119
integration-docs: Update Radarr for new doc format.
...
Part of zulip#29592.
2024-07-21 18:09:13 -07:00
Mateusz Mandera
f50104d475
import_realm: Update incorrect comment about emoji dir in exported data.
...
The emoji dir is present in the data from our export tool. This was
added in 468afe4840
.
This comment hasn't been updated since
c4b886d8ae
, so probably we just forgot to
refresh it when custom emoji export was added.
2024-07-21 13:16:49 -07:00
Kenneth Rodrigues
8b489f4b96
streams: Convert to typed_enpoint.
2024-07-21 12:57:50 -07:00
Kenneth Rodrigues
6815cded83
zerver: Migrate some files to typed_endpoint.
...
Migrates `invite.py`, `registration.py` and
`email_mirror.py` to use `typed_endpoint`.
2024-07-20 15:46:48 -07:00
Niloth P
16abd82fa5
integrations: Remove Solano integration.
2024-07-20 15:44:17 -07:00
Sahil Batra
c6e9173297
exceptions: Add new error class to be used for invalid parameter values.
...
This would help us in avoiding adding translation everytime we use
this error for a new pair of parameters.
2024-07-19 09:24:54 -07:00
Anders Kaseorg
d574200423
tests: Consume streaming responses.
...
Fixes warnings like “ResourceWarning: unclosed file <_io.FileIO
name='/srv/zulip/var/044e5d44-87aa-4c43-abbb-28a144fa6654/test-backend/run_1238680/worker_0/test_uploads/files/thumbnail/2/1e/jmUuDhQC8WlaSRCuc0zQyx7D/img.tif/100x75.webp'
mode='rb' closefd=True>” with warnings enabled.
deque(…, 0) is an efficient way to consume an iterator documented at
https://docs.python.org/3/library/itertools.html#itertools-recipes
under consume.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-19 09:20:56 -07:00
Anders Kaseorg
c7281b406f
test_delete_unclaimed_attachments: Close file in make_attachment.
...
Fixes “ResourceWarning: unclosed file <_io.BufferedReader
name='/srv/zulip/zerver/tests/images/text.txt'>” with warnings enabled.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-19 09:20:56 -07:00
Tim Abbott
de35f44624
zulip_updates: Mention default for send navigation.
...
Apparently I forgot to merge this before -beta1.
2024-07-18 14:06:04 -07:00
Alex Vandiver
4351cc5914
thumbnail: Move get_image_thumbnail_path and split_thumbnail_path.
2024-07-18 13:50:28 -07:00
Alex Vandiver
d474600056
tests: Remove a nonsensical no-op vimeo test.
...
Embeds are disabled in this test, and it tests that it does not embed
anything.
2024-07-18 13:50:28 -07:00
Alex Vandiver
424f3dd503
tests: Break up and reorganize test_markdown.py.
2024-07-18 13:50:28 -07:00
Alex Vandiver
ecdf5713c2
tests: Factor out ZulipVerboseEqualTest class, and use more.
2024-07-18 13:50:28 -07:00
Alex Vandiver
08191d3f69
tests: Default ENABLE_FILE_LINKS to False.
...
Test configuration should mirror default production as much as possible.
2024-07-18 13:50:28 -07:00
Alex Vandiver
e02e9c9181
tests: INLINE_URL_EMBED_PREVIEW=False is the default in tests.
2024-07-18 13:50:28 -07:00
Alex Vandiver
060754980c
tests: INLINE_IMAGE_PREVIEW=True is already the default.
2024-07-18 13:50:28 -07:00
Alya Abbott
d775b6ffff
updates: Add update message (level=7).
2024-07-18 12:38:26 -07:00
Tim Abbott
f37082c4ca
models: Switch font size default to non-compact.
...
This is the intended longer-term default, and it's polished enough for
testing.
2024-07-18 12:37:06 -07:00
Niloth P
cbe2677a2a
integration-docs: Include suggestion for HTTPS hint in Stripe.
...
With some wording tweaks by tabbott to make it more obviously only
shown in certain environments.
2024-07-18 12:28:08 -07:00
Niloth P
ed885ec806
integration-docs: Format keyboard shortcuts in Trello doc.
2024-07-18 12:24:45 -07:00
Niloth P
525f1e28d4
integration-docs: Fix typo in Splunk doc hint.
2024-07-18 12:24:36 -07:00
Sahil Batra
c1c4c95ce7
settings: Require clients to pass dense_mode value when needed.
...
Previously, if someone changed the font-size or line height
settings to some value other than the legacy values, we set
dense_mode to False if it was True. This commit changes the
code to require clients to pass dense_mode as False in such
cases and raise an error otherwise.
2024-07-18 11:36:53 -07:00
Sahil Batra
0ea5daece8
user_settings: Flush cache after commiting changes to DB.
...
We should flush the cache after commiting changes to DB to
make sure that the cache does not contain stale data when
updating multiple settings in a single request.
2024-07-18 11:36:53 -07:00
Anders Kaseorg
97753fe3b0
emoji_names: Rebuild with CLDR 45, emoji-data 15.1.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 22:49:52 -07:00
Mateusz Mandera
4a93149435
settings: Rework how push notifications service is configured.
...
Instead of the PUSH_NOTIFICATIONS_BOUNCER_URL and
SUBMIT_USAGE_STATISTICS settings, we want servers to configure
individual ZULIP_SERVICE_* settings, while maintaining backward
compatibility with the old settings. Thus, if all the new
ZULIP_SERVICE_* are at their default False value, but the legacy
settings are activated, they need to be translated in computed_settings
to the modern way.
2024-07-17 17:14:06 -07:00
Anders Kaseorg
722842a0aa
rocketchat: Remove unnecessary SHA-1 hashing of direct message groups.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 15:56:00 -07:00
Anders Kaseorg
541699a1c6
mattermost: Remove unnecessary MD5 hashing of direct message groups.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 15:56:00 -07:00
Anders Kaseorg
90cc88c88e
mattermost: Split get_recipient_id_from_receiver_name to 3 functions.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 15:56:00 -07:00
Anders Kaseorg
27b0618704
data_import: Fix IdMapper typing.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 15:56:00 -07:00
Anders Kaseorg
1fd3f983a5
data_import: Remove int detection from IdMapper.
...
This seems to have been used only for HipChat.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-17 15:56:00 -07:00
Alex Vandiver
ab6b6639e6
migrations: Derive emoji content-type from the bytes.
2024-07-17 11:39:04 -07:00
Sahil Batra
cf14d8f611
users: Change bot owner only if needed.
...
This is a small optimization to avoid DB queries if the bot owner
is not changed.
This also helps in avoiding showing the error message in UI if
anything other than the owner is updated for a deactivated bot.
Ideally if the bot owner is not changed, the bot_owner_id field
should not be passed in the request, but we would handle that
later given this is anyways a small nice optimization and we
follow this pattern at other places as well in the API.
2024-07-17 10:07:51 -07:00
Lauryn Menard
b9c33ce5f1
api-docs: Add changes section in construct a narrow article.
...
Adds a header to the section of changes notes about new and
deprecated narrow filters, so that it's easier to directly
link to the relevant content in the construct a narrow article
from the main API changelog and endpoint documentation.
2024-07-16 23:40:45 -07:00
Vector73
7a80fcf042
events: Send `delete_message` event to user who deleted the message.
...
Fixes #29826 .
Co-authored-by: Mukul Goyal <goyal.mukul7689@gmail.com>
Co-authored-by: Aman Agrawal <amanagr@zulip.com>
2024-07-16 23:29:02 -07:00
Niloth P
56aa72af90
integration-docs: Update Trello for new doc format.
...
Part of zulip#29592.
2024-07-16 17:02:55 -07:00
Niloth P
c8781b4de7
integration-docs: Update TeamCity for new doc format.
...
Part of zulip#29592.
2024-07-16 17:02:55 -07:00
Alex Vandiver
9983dc761f
migrations: Further fix emoji re-thumbnailing.
...
90701978d9
was an incomplete fix.
2024-07-16 15:38:22 -07:00
Niloth P
f663544353
integration-docs: Update Slack incoming-webhook for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Niloth P
32177a9a1c
integration-docs: Update Sonarqube for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Niloth P
a546fa719a
integration-docs: Update Sonarr for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Niloth P
1ddf92a98c
integration-docs: Update Splunk for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Niloth P
8549a6dc8a
integration-docs: Update Statuspage for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Niloth P
c0ab89ec52
integration-docs: Update Stripe for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:56 -07:00
Alex Vandiver
e8a049ea57
migrations: Handle missing emoji/images/still/ directory.
2024-07-16 14:55:45 -07:00
Niloth P
a17a54b077
integration-docs: Update Zabbix for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:27 -07:00
Niloth P
c271cdb113
integration-docs: Update WordPress for new doc format.
...
Part of zulip#29592.
Co-authored-by: Lauryn Menard <lauryn@zulip.com>
2024-07-16 14:55:02 -07:00
Lauryn Menard
3e100d872a
integrations: Remove HookPress events from WordPress webhook.
...
The HookPress plugin has been unavailable since July 2019, so it
doesn't make sense to continue supporting these events in the
WordPress webhook integration.
2024-07-16 14:55:02 -07:00
Niloth P
1e327cc054
integration-docs: Update Wekan for new doc format.
...
Part of zulip#29592.
2024-07-16 14:55:02 -07:00
Anders Kaseorg
dd0d482d76
narrow: Migrate legacy SQLAlchemy select syntax.
...
Fixes “sqlalchemy.exc.RemovedIn20Warning: Deprecated API features
detected! These feature(s) are not compatible with SQLAlchemy 2.0.”
with warnings enabled.
https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#change-5284
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-07-16 14:50:30 -07:00
Sahil Batra
a0efc0ee76
settings: Refetch realm and user profile objects.
...
This is a temporary solution to make sure stale objects from
cache are not used when previous request updated multiple settings.
2024-07-16 14:04:19 -07:00