Commit Graph

66504 Commits

Author SHA1 Message Date
Alex Vandiver
f36bdd7933 Release Zulip Server 11.1. 11.1 2025-09-11 18:11:06 +00:00
Alex Vandiver
3f4497a373 puppet: Add options for allow/deny rules in Smokescreen.
Fixes: #20490
(cherry picked from commit 4739c4b057)
2025-09-11 11:13:48 -04:00
Alex Vandiver
9ece37d925 puppet: Add a daily cron job to re-sync subscriber counts.
Default installs will re-examine every stream, since the process is
relatively fast.  Large installs have the option to only examine
streams which have the potential to have changed subscriber counts.

(cherry picked from commit 94a0f02acc)
2025-09-11 11:10:52 -04:00
Alex Vandiver
23de6ae1dd update_subscriber_counts: Add tool to re-sync subscriber counts.
(cherry picked from commit f915498e48)
2025-09-11 11:10:52 -04:00
Anders Kaseorg
0d253b0989 requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 7a8b340ad2)
2025-09-10 14:50:32 -07:00
Anders Kaseorg
5963e5c6a5 install-uv: Upgrade uv from 0.7.21 to 0.8.10.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 26dc355bf5)
2025-09-10 14:50:32 -07:00
Alya Abbott
6735f23cbb help: Add more links to self-hosted export instructions.
(cherry picked from commit 6027344ad5)
2025-09-10 12:09:57 -07:00
Alex Vandiver
b3919c433d sentry: Use TornadoIntegration when running under Tornado.
The DjangoIntegration is explicitly disabled, because it attempts to
hook into the request handling in a way which is not compatible with
Tornado, and leaks event handlers.

(cherry picked from commit 70b709494c)
2025-09-10 12:09:57 -07:00
Alex Vandiver
c4d3547ddf settings: Derive RUNNING_INSIDE_TORNADO based on sys.argv.
This allows it to be used at application startup time.

(cherry picked from commit 169daa31a0)
2025-09-10 12:09:57 -07:00
Alex Vandiver
18b800fbfc run-dev: Let Sentry be enabled, if configured.
It was being automatically forced off by dint of being run with a TTY
still attached to STDIN.  `./manage.py rundjangoserver` was
unaffected, as it does not descend from ZulipBaseCommand.

(cherry picked from commit 8bb0768c4b)
2025-09-10 12:09:57 -07:00
Karl Stolley
651df27e04 search_pills: Increase opacity in dark mode.
(cherry picked from commit 8022e26ed4)
2025-09-10 12:09:57 -07:00
Evy Kassirer
75917a9019 subscription_info: Improve subscriber fetch preformance.
Discussed here:
https://chat.zulip.org/#narrow/channel/141-kandra-ops/topic/partial.20subscribers.20query.20does.20users.20sequential.20scan/near/2255421

(cherry picked from commit 31505e90f7)
2025-09-10 12:09:57 -07:00
Alex Vandiver
6d89cd7135 docs: Document Tornado sharding configurations.
(cherry picked from commit 530685a597)
2025-09-10 12:09:57 -07:00
Alex Vandiver
7c8af81075 sync-translations: Provide more framework to updating to/from Weblate.
(cherry picked from commit b8b9444023)
2025-09-10 12:09:57 -07:00
Lauryn Menard
cf5c77d8a5 test-subs: Make new channel name consistent in notification bot test.
Updates final check in test_notification_bot_dm_on_subscription to
use the same pattern for the new channel name, and adds a comment
to clarify what that final check is for since it doesn't look at
the Notification Bot DM or channel messages for that case.

(cherry picked from commit 1030f41884)
2025-09-10 12:09:57 -07:00
Lauryn Menard
b1b5b66bf6 test-subs: Fix comment in test_notification_bot_dm_on_subscription.
(cherry picked from commit 14581de0de)
2025-09-10 12:09:57 -07:00
Aman Agrawal
55bd5c0aeb inbox: Remove empty space below filters for hidden folders.
Hidden folders occupied space due to bottom margin.

Fixed by moving the margin to elements which have `display: none`
property so that margin is removed.

(cherry picked from commit 39b560e611)
2025-09-10 12:09:57 -07:00
Prakhar Pratyush
2d203f1743 api_docs: Fix 500 error on /api/register-remote-push-device.
`settings.ZULIP_SERVICES_URL` is used to construct curl
example for `/api/register-remote-push-device`.

On zulip cloud `settings.ZULIP_SERVICES_URL=None`, it resulted
in 500 error on visiting that page.

This commit fixes the bug by using "https://push.zulipchat.com"
as the default value if `settings.ZULIP_SERVICES_URL=None`.

The doc already mentions that the endpoint is meant to be used
by self-hosted servers, so the default value makes sense if
ZULIP_SERVICES_URL=None.

(cherry picked from commit 271aba001c)
2025-09-10 12:09:57 -07:00
Alex Vandiver
90fb8c5c9a i18n: Updated .po files for new strings. 2025-09-08 12:39:00 -04:00
Hosted Weblate
fa2034203e i18n: Sync translations from Weblate. 2025-09-08 12:39:00 -04:00
Shubham Padia
1b30049059 banners: Capitalise desktop in insecure-desktop-app intent and message.
(cherry picked from commit 03c73c28cd)
2025-09-04 14:46:16 -04:00
Pratik Chanda
6052630cae notifications: Fix desktop notifications for message not grouping.
Earlier, message notifications for same key would not get grouped
together because of the old notification_object close event listener
firing up when not supposed to.

This commit fixes this behaviour by checking the notification object
instance is the same as the currently displayed notification object
from notice memory when closing it.

Co-authored-by: prakhar1144 <prakhar@zulip.com>
(cherry picked from commit 6af4e82c49)
2025-09-03 17:31:37 -07:00
Pratik Chanda
cd682f3dee search_suggestion: Remove subset suggestions from search suggestion.
Earlier, we would show subset suggestions for current search pills
in the suggestion list. Like if `is:dm`, `is:mentioned` and `has:link`
are already selected in the searchbox, we would show
`is:dm, is:mentioned` and `is:dm` again in the suggestion.

This commit removes subset suggestions for current search pills
from the suggestion line.

(cherry picked from commit 85e7d2f5f7)
2025-09-03 17:31:37 -07:00
Aman Agrawal
faed722c4b sidebars: Don't highlight selection by default on search input focus.
Unless user wants to move the selection or type a value in search
input, we don't highlight the current selection.

(cherry picked from commit 5dbf584ac5)
2025-09-03 17:31:37 -07:00
Aman Agrawal
8f47e03613 left_sidebar: Avoid selecting header as first row when searching.
(cherry picked from commit 478ea89506)
2025-09-03 17:31:37 -07:00
Aman Agrawal
a5dd0a4f33 sidebar_ui: Extract selectors for left sidebar headers.
(cherry picked from commit a4c2327fa9)
2025-09-03 17:31:37 -07:00
Aman Agrawal
c6041f9b94 left_sidebar: Fix muted channel visible in collapsed folder on search.
While searching in left sidebar, if you collapse a folder, muted
or inactive channels are still visible.

This is due specificity of hiding the channel when folder is
collapsed was lower than that of showing it when a search
is active.

Fixed by increasing the specificity of hiding it when folder
is collapsed.

(cherry picked from commit 77d8140eb2)
2025-09-03 17:31:37 -07:00
Aman Agrawal
d0f2a9d162 left_sidebar: Allow user to navigation on section headers.
(cherry picked from commit 2671aff7c3)
2025-09-03 17:31:37 -07:00
Sahil Batra
1713694e3e openapi: Mark server_supported_permission_settings field as stable.
We have mostly decided on the structure of the group permission
setting object in server_supported_permission_settings field of
register response, so this commit removes the comment mentioning
it as unstable and adds the corresponding "Changes" entry.

(cherry picked from commit 6e17b05156)
2025-09-03 17:31:37 -07:00
Sahil Batra
faf08dfcb1 api-docs: Fix incorrect field names for group-setting value objects.
Documentation for group setting values at /api/group-setting-values
incorrectly mentioned obejct fields as 'direct_member_ids' and
'direct_subgroup_ids' when they actually are 'direct_members' and
'direct_subgroups' from the start.

(cherry picked from commit aae639a8a0)
2025-09-03 17:31:37 -07:00
Evy Kassirer
4e3ec18c8a channel_folders: Don't label section OTHER if there are no folders above it.
Fixes #35878.

(cherry picked from commit c52174a0a2)
2025-09-03 17:31:37 -07:00
Mateusz Mandera
2a97f6a88e import: Set Stream.subscriber_count for imported channels.
The import code wasn't setting subscriber_count at all, resulting in a
value of 0 when dealing with imports from 3rd party apps.
We run this unconditionally, also for imports from Zulip, since this
ensures we won't inherit incorrect values, if the data we're import has
them - e.g. due to some bugs that affected the server the data came from.

(cherry picked from commit 6ab30fcced)
2025-09-03 17:31:37 -07:00
Alya Abbott
16f3234f75 help: Clean up intro wording and add a note about subdomain reuse.
(cherry picked from commit b4edfb4a19)
2025-09-03 17:31:37 -07:00
Pratik Chanda
398cf9827b filter: Use encoding for channel/topic narrow for url redirect.
Earlier, when generating redirect url for search exit, we did not
encode the url in case of topic narrows. We expect some characters
to be replaced when generating hash.

This commit encodes the url for channels and topic narrows and
prevents redirecting to broken hashes.

(cherry picked from commit acc5cffae4)
2025-09-03 17:31:37 -07:00
PieterCK
758c541d5a settings_export: Fix plural strings in export confirmation modal.
(cherry picked from commit e9be0c54bd)
2025-09-03 17:31:37 -07:00
Sayam Samal
bf84c2aa19 topic_popover: Update topic URL to permalink for message header popover.
This commit updates the topic URL in the message header topic menu
popover, introduced in feedb6ea2d to a
permalink having a `with` operator attached to it.

(cherry picked from commit a0441b5bcb)
2025-09-03 17:31:37 -07:00
apoorvapendse
9ff265e5f6 composebox: Fix composebox closing on clicking links.
Previously, clicking on links with the composebox open
didn't close it.

7391a2983f introduced a bug
where the composebox focus logic wasn't triggered at all
if drag evidence wasn't present on the target.

We now do a `e.target.closest("a").length > 0` check
like before and only prevent the default click behavior if
dragging on the target link is detected.
This allows normal link clicks to trigger the
previous composebox focus trigger logic.

Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/composebox.20closes.20when.20going.20to.20recent.20conversations
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
(cherry picked from commit 7a52313f85)
2025-09-03 17:31:37 -07:00
apoorvapendse
9415de59e9 tests: Make puppeteer tests for drafts more robust.
I noticed that when you are in a group dm narrow
and open drafts, the overlay-message-row class
is inside different containers, and the nth last
child check does not apply for that case, which is
why the test failed.

More generally, last-child is just not a good selector for robust
testing.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
(cherry picked from commit 533f177175)
2025-09-03 17:31:37 -07:00
apoorvapendse
e7796305d2 links: Fix unnecessary blocking of click behavior.
Links become unclickable if the following is true:
1. Composebox is open
2. You have selected some text

Currently doing this will prevent the default click behavior
which is a big bug and can get quite annoying.

We now switch to a more robust check which only prevents the
click behavior if some drag evidence is present, determined with
`mouse_drag.is_drag`

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
(cherry picked from commit 7391a2983f)
2025-09-03 17:31:37 -07:00
Alex Vandiver
9a2194ef6c run-hooks: Handle hooks after OS upgrade on fresh install.
(cherry picked from commit fc962b8b0e)
2025-09-03 17:31:37 -07:00
Karl Stolley
bffaff037e recents: Align filter tops top left, right sidebars.
(cherry picked from commit 2660c876fa)
2025-09-03 17:31:37 -07:00
Karl Stolley
e8cd9b0b4b inbox: Align filters to left, right sidebars.
(cherry picked from commit b71352c4dc)
2025-09-03 17:31:37 -07:00
Karl Stolley
ed8beeabd1 right_sidebar: Eliminate gap between filter, vdots area.
(cherry picked from commit a5ab61f83a)
2025-09-03 17:31:37 -07:00
Karl Stolley
fe90091375 right_sidebar: Establish last-item/next-heading concord.
(cherry picked from commit 545b14abfa)
2025-09-03 17:31:37 -07:00
Karl Stolley
0920e3131f sidebars: Add easily adjustable space below sidebar filters.
(cherry picked from commit 4f08718163)
2025-09-03 17:31:37 -07:00
Karl Stolley
b561f4ee4f sidebars: Bring left, right sidebar tops into concord.
(cherry picked from commit b3fb672b5d)
2025-09-03 17:31:37 -07:00
Karl Stolley
61d0f3736c left_sidebar: Zero out space below Views.
(cherry picked from commit 176ba669c2)
2025-09-03 17:31:37 -07:00
Prakhar Pratyush
e7f3277931 api_docs: Deprecate the non-E2EE register push device endpoints.
Endpoints marked deprecated:
* /users/me/apns_device_token
* /users/me/android_gcm_reg_id

The older endpoints were for non-E2EE push notification case.

Fixes part of #35213.

(cherry picked from commit e8c9f4a811)
2025-08-28 17:34:20 -07:00
Prakhar Pratyush
08336b2f50 api_docs: Mark /mobile_push/test_notification as deprecated.
The older endpoint was for non-E2EE push notification case.

Fixes part of #35213.

(cherry picked from commit b157b14d76)
2025-08-28 17:34:20 -07:00
Kislay Verma
31ac5f8421 api_docs: Clarify description for send_new_subscription_messages.
The same subscription request can contain both existing channels
and newly created channels, so we clarify here that direct message
notifications are only sent when users are subscribed to existing
channels.

Also, updates this text to use "direct message" instead of "DM".

Co-authored-by: Lauryn Menard <lauryn@zulip.com>
(cherry picked from commit 396f4d004a)
2025-08-28 17:34:20 -07:00