Commit Graph

61769 Commits

Author SHA1 Message Date
Tim Abbott f0422e07a4 docs: Update changelog for Zulip Server 9.3 release. 2024-11-22 17:21:20 -08:00
Alex Vandiver d8ed381789 puppet: Increase email_senders page threshold.
Email senders having a few minutes of backlog does not justify paging.

In the future, this worker will be async or sharded and not backlog.
2024-11-22 14:31:30 -08:00
Alex Vandiver 19d115a9da email_mirror: Set a short timeout on parsing incoming emails.
This timeout needs to be short enough that we don't drop the RabbitMQ
connection. Also drop the offending message (by returning with no
further exception) so we don't hit a head-of-queue failure situation.

Ideally, the parser would just be lightning-fast, so this would never
happen.
2024-11-22 14:31:30 -08:00
Tim Abbott c134cc3136 queue_processors: Disable missedmesssage worker on staging.
This worker isn't designed to have multiple copies running.
2024-11-22 14:31:30 -08:00
Tim Abbott cc110cd7e4 migrations: Add progress indicator for imageattachment backfill.
These migrations can take a while, so it's worth having a progress
indicator.

Fixes #32232.
2024-11-22 14:24:36 -08:00
Shubham Padia c06a955340 docs: User cannot create groups on a limited plan.
We add this information to our homepage wherever applicable and in our
documentation.
2024-11-22 13:42:59 -08:00
Shubham Padia 7cfa110934 settings: Realms with limited plans cannot change can_create_groups.
We do not allow realms on a limited plan to create groups. This commit
adds a banner to upgrade to the can_create_groups org setting and
disables editing it on the backend.
This commit also adds a new method called
`disable_group_permission_setting` to easily disable similar settings.
2024-11-22 13:42:59 -08:00
Shubham Padia cccf1eacb1 groups: Restrict creating groups to non limited plans. 2024-11-22 13:42:59 -08:00
Karl Stolley 6e0913d742 right_sidebar: Match invite-user grid to others. 2024-11-22 13:00:28 -08:00
Pratik Chanda 46651a1591 navbar: Make login button work with keyboard navigation.
Earlier in navbar navigation, keyboard events only worked with `gear-
menu`, `personal-menu` and `help-menu`.

This commit introduces the ability to navigate to login in spectator
mode by adding `navbar-item` class and trigger focus to it.

Fixes: zulip#28037.
2024-11-22 10:55:11 -08:00
Pratik Chanda 633ae45f1d navbar: Make login button focusable.
This commit allows login button in navbar draw focus to
them.

Fixes part of zulip#28037.
2024-11-22 10:55:11 -08:00
Pratik Chanda bb6b25d0d1 navbar_menu: Make userlist-toggle-button work with keyboard navigation.
Earlier in navbar navigation, keyboard events only worked with `gear-
menu`, `personal-menu` and `help-menu`. Now that userlist-toggle is
introduced in navbar, we should make it navigable.

This commit introduces the ability to navigate from `help-menu` to
userlist button by adding `navbar-item` class and trigger focus to it.

Fixes: zulip#29465.
2024-11-22 10:55:11 -08:00
Pratik Chanda e0e81aa47c navbar_menu: Use switch/case to handle navbar menu toggle.
This commit refactors `change_active_navbar_menu` to use switch/case
to toggle open target menu after closing any open popovers.
2024-11-22 10:55:11 -08:00
Pratik Chanda d4bcf5bae3 navbar_menu: Refactor `change_active_navbar_menu` to use target menu.
This commit introduces `navbar-item` class for each navbar menus and
`active-navbar-menu` class to indicate active navbar menu. Also
introduces new function `get_target_navbar_menu` to return target
navbar menu from keyboard event. `change_active_navbar_menu` uses target
menu to switch between navbar items.
2024-11-22 10:55:11 -08:00
Pratik Chanda 566e5e688b navbar_menu: Refactor keyboard events for navbar menu.
This commit extracts menu switching logic from `handle_keyboard_events`
to separate `change_active_navbar_menu` to toggle between the current
active navbar menu and the adjacent navbar menu.
2024-11-22 10:55:11 -08:00
Pratik Chanda 9d578247a7 navbar_menu: Add keyboard event check for navbar navigation.
This commit adds a keyboard event check statement for navbar navigation.
2024-11-22 10:55:11 -08:00
Sahil Batra f197d881ca streams: Fix handling empty groups when computing setting values.
Since "Nobody" and other user-defined empty groups has no
members or subgroups, we need a UserGroup query.

Since we are doing UserGroup query, updated the code to
check whether the setting is set to anonymous group or
not just after doing UserGroup query and not in membership
queries.

Also, added tests to check query count when setting is set
to anonymous group.
2024-11-22 10:48:41 -08:00
Nicklas Steen 90e42ca8ed settings: Fix filter alignment under headings in all settings panels.
Previously, when resizing the window, the filters/buttons and the
header did not fit on the same row, the filters/buttons were pushed
onto the next row but not put directly below the heading. This
changes the settings_panel_list_header and
add_default_streams_button_container into flex containers and
properly aligns the items below the heading when changing window
size.
Fixes: #30353
2024-11-22 10:46:39 -08:00
Prakhar Pratyush ded6bfd3f2 add_new_user_history: Remove the RECENT_MESSAGES_TIMEDELTA limit.
We give the new users some messages in their feed.

Earlier, we were including upto 1000 messages which were sent
within the last 12 weeks.

For realms with low-traffic it results in very few messages
being included in the new user's feed.

This commit removes the 12 week limit.
Now, we simply include upto 1000 recent messages.
2024-11-22 10:41:27 -08:00
Sahil Batra 7a6159eee2 streams: Do not show archived streams in dropdown.
Dropdown widget in compose box and in message move modal should
not show archived streams in dropdown as we do not allow sending
messages or moving messages to archived streams.

We need a more focused audit of code for fixing other things
where archived streams are shown.
2024-11-22 10:40:59 -08:00
Harsh c570194ff2 tests: Add assertion for database queries count.
This commit extends the test for the `/api/v1/register` endpoint
for spectator users by adding an assertion to check the number
of database queries.

Fixes: #32409
2024-11-21 19:02:09 -08:00
evykassirer 28376bf353 buddy_list: Center toggle arrow. 2024-11-21 19:01:48 -08:00
evykassirer 17de265116 buddy_list: Redesign view user links.
As discussed here:
https://chat.zulip.org/#narrow/channel/101-design/topic/.22View.20all.22.20links.20in.20right.20sidebar/near/1976275
2024-11-21 15:17:44 -08:00
evykassirer d43e3c31ea right_sidebar: Redesign invite users link.
Fixes #32266 (second half).
2024-11-21 15:16:45 -08:00
evykassirer d168ff2a0f left_sidebar: Redesign create a channel link.
Fixes part of #32266.
2024-11-21 15:16:45 -08:00
Prakhar Pratyush c5b3d2e434 custom_check: Add rule to avoid creating savepoints.
This commit adds a custom rule to check python files
and raise lint error if they have transaction.atomic used
without any argument or savepoint=True is used.

It helps to avoid creating unintended savepoints in the future.
2024-11-21 14:55:15 -08:00
Prakhar Pratyush 62b3e49075 transaction: Add 'savepoint=True' explicitly in tests, if used.
We create savepoint at a couple of places in backend tests
to avoid rollback due to error raised within test's transaction.

This commit explicitly adds 'savepoint=True' at those places.
2024-11-21 14:55:15 -08:00
Prakhar Pratyush fdcd518e26 test_user_groups: Add `durable=True` to the independent transaction.
This commit adds `durable=True` to the short independent db transaction
in `UserGroupRaceConditionTestCase.tearDown` method.

This is as a part of our plan to explicitly mark all the
transaction.atomic calls with either 'savepoint=False' or
'durable=True' as required.
2024-11-21 14:55:15 -08:00
Prakhar Pratyush b369177341 embed_links: Add `savepoint=False` to avoid creating savepoints.
It helps to avoid creating unintended savepoints in the future.

This is as a part of our plan to explicitly mark all the
transaction.atomic calls with either 'savepoint=False' or
'durable=True' as required.
2024-11-21 14:55:15 -08:00
Prakhar Pratyush 175104ea01 streams: Add 'ChannelEmailAddress' model.
This commit removes the 'email_token' field from the
'Stream' model, introduces a new model 'ChannelEmailAddress',
and backfills it.

This is a prep work towards our plan to generate unique
channel emails for different users, which can be used
to check post permissions at message send time.
2024-11-21 14:53:28 -08:00
Anders Kaseorg 801e267e00 integrations: Properly pass data-categories as a JSON array.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-21 14:41:36 -08:00
Tim Abbott 77cac403ee integrations: Fix jQuery .data mishandling translated category names.
Apparently `.data("category")` would be come back as a single-element
array for some French translations, rather than a string.

We fix this by using `.attr("data-category")` across this file, which
is our preferred coding pattern anyway.
2024-11-21 14:41:36 -08:00
Sahil Batra b6f895f61c streams: Optimize DB queries for computing permission setting values.
This commit updates code to use union so that we can compute values
for permission settings using a single DB query.
2024-11-21 11:28:54 -08:00
Sahil Batra 90ae342af2 stream-settings: Add info to can_remove_subscribers_group label.
Mention that admins can unsubscribe others from any channel
in the setting label.
2024-11-21 11:28:54 -08:00
Sahil Batra d1e76a9281 streams: Allow admins to unsubscribe others irrespective of setting. 2024-11-21 11:28:54 -08:00
Niloth P 02049fbbf3 tools/screenshots: Create integration bots using display_name.
Will be adding the updated screenshots of affected integrations as soon
as the PR with the new logos and example screenshots gets merged.
2024-11-21 11:10:12 -08:00
Niloth P 29ef4a05fe tools/screenshots: Fix custom headers crash when using custom options. 2024-11-21 11:10:12 -08:00
Niloth P 619ada36ed integrations: Refine Mention example screenshot. 2024-11-21 11:09:40 -08:00
Niloth P 5de2a7115c integrations: Refine Gitea example screenshot. 2024-11-21 11:09:40 -08:00
Niloth P e1f256c905 integrations: Refine Basecamp example screenshot. 2024-11-21 11:09:40 -08:00
Niloth P 8e17ef3507 integrations: Refine CircleCI example screenshots.
- Removed the extra screenshot.
- Updated the fixture used to generate the screenshot to use a more
suitable topic name and commit message description.
2024-11-21 11:09:40 -08:00
Niloth P ab7d5ceacc integrations: Refine Zendesk example screenshot. 2024-11-21 11:09:40 -08:00
Niloth P 8582e78f02 integrations: Refine Front example screenshot. 2024-11-21 11:09:40 -08:00
Niloth P 1a89357394 integrations: Update Front logo. 2024-11-21 11:09:40 -08:00
Niloth P 42a4aa86b0 integrations: Update Raygun logo. 2024-11-21 11:09:40 -08:00
Niloth P 2c04159bfd integrations: Update Zendesk logo. 2024-11-21 11:09:40 -08:00
Niloth P f078ca86c2 integrations: Update Radarr logo. 2024-11-21 11:09:40 -08:00
Niloth P 2c94506cb5 integrations: Update Patreon logo. 2024-11-21 11:09:40 -08:00
Niloth P 80fcf9d92b integrations: Update Pagerduty logo. 2024-11-21 11:09:40 -08:00
Niloth P b3f5500364 integrations: Update Netlify logo. 2024-11-21 11:09:40 -08:00