Commit Graph

63435 Commits

Author SHA1 Message Date
Anders Kaseorg
89bc073b5b emoji_names: Rebuild with CLDR 46.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
a9d64d5604 dependencies: Upgrade JavaScript dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
30b68abf55 install-node: Upgrade Node.js from 22.11.0 to 22.12.0.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
6ada80513f blueslip_stacktrace: Fix logic for chained exceptions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
97d1a55737 blueslip: Require record for more_info.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
49c72f8a09 dropdown_widget: Use util.the for $events_container.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:30:40 -08:00
Anders Kaseorg
7ce49a709e check-schemas: Remove unnecessary special case for saved_snippets.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-01-02 17:28:17 -08:00
Aman Agrawal
c5feccaa34 message_list: Rename variable for caller clarity. 2025-01-02 17:27:02 -08:00
Aman Agrawal
fd9a73bde3 Revert "tooltip_templates: Remove unused data-view-code attribute."
This reverts commit 0383730391.
2025-01-02 17:25:20 -08:00
Aman Agrawal
b1eef20fd5 tippy: Use data-view-code to check atttribute.
This make it easy to grep for.
2025-01-02 17:25:20 -08:00
Prakhar Pratyush
469cc53187 export: Add banner if admin's private data export setting is disabled.
This commit introduces a banner on the "Start Export" modal
to notify the admin that their personal setting to export
private data is not toggled ON.

The banner is shown when the 'Export type' is 'Standard' and
admin's personal setting to export private data is not toggled ON.

The banner ensures admins are aware their private data will
not be exported unless they enable the respective setting.
2025-01-02 16:40:33 -08:00
Prakhar Pratyush
891a35570b migrations: Update active status of Channels based on recent activity.
This commit adds a database migration to set is_recently_active=False
for channels based on the last time a message was sent.

The migration follows the same logic used in the
`update_channel_recently_active_status` management command.

This change is particularly useful for self-hosted servers, as it
avoids the need to wait a week for the
`update_channel_recently_active_status` management command to run
via cron.
2025-01-02 16:37:34 -08:00
Prakhar Pratyush
86cd8349f7 cron: Update 'update-channel-recently-active-status' to run weekly.
This commit updates the 'update-channel-recently-active-status'
cron job to run weekly instead of daily.
2025-01-02 16:37:34 -08:00
Greg Price
6c80d80ad3 docs: Update contributing/design-discussions for #mobile-design. 2025-01-02 15:48:57 -08:00
Greg Price
cdf457f800 docs: Describe new #mobile-design channel. 2025-01-02 15:48:57 -08:00
Greg Price
c219bbe6dd docs: Describe #design for code contributors. 2025-01-02 15:48:57 -08:00
Greg Price
3498d00853 docs: Split up list of code-contributor channels by codebase.
This duplicates a bit of prose, but I think that's worth it for
simplifying what a given contributor has to read.
2025-01-02 15:48:57 -08:00
Greg Price
a1e0100687 docs: Clarify role of #design vs #feedback. 2025-01-02 15:48:57 -08:00
Steve Howell
5fd24bc9a2 event checkers: Replace data_types.py with pydantic.
This commit completely eliminates the home-grown
data_types.py system for checking types.

Now, in our unit tests and schema checkers, we use
pydantic types to check the shape of the event
objects that are either in our JSON fixtures or
that get captured by test_events.py.

The code in event_types.py was completely
code-generated from the legacy version of
event_schema.py, so there shouldn't be any
manual errors in how I ported the types over.
(The code generation was non-trivial, though,
as I had to account for changes from
snake_case to CamelCase and deal with some
other anomalies.)
2025-01-02 12:23:35 -08:00
Steve Howell
934f584257 check-schemas: Improve success output.
We now tell you how many fixtures were checked
as part of the success message.

Right now we're up to 118 checks.
2025-01-02 12:23:35 -08:00
Steve Howell
01f4ec5ee4 check-schemas: Enforce that all fixtures get checked.
I had to work around that the event type is "saved_snippets",
but the author of the feature otherwise correctly used
the singular "saved_snippet".
2025-01-02 12:23:35 -08:00
Steve Howell
7480c5f285 checks-schemas: Remove checks related to API docs.
When we move away from `data_types.py` in favor of using
`pydantic` to describe the shape of our event objects in
the events test (hopefully coming soon), then the code
I deleted here will no longer work.

The consequence of this change is that API docs may
diverge from the actual event types that we use, but
I believe there are better ways to manage this.

Also, the deleted code was particularly hard to debug
(and I say that as the original author). It probably
also causes friction for folks who want to update the
docs but who don't necessarily grok how the event tests
work under the legacy `data_types.py` regime.

Once we get pydantic types working, we can probably
just write a separate tool to validate against them
against the API docs using the `openapi-schema-pydantic`
package or something similar.
2025-01-02 12:23:35 -08:00
apoorvapendse
ddd58b1a14 user_group: Fix broken edit description functionality.
This commit fixes the currently broken feature of being
able to change the group info using the edit icon that
triggers the dialog_widget to let users edit their
group description.

Fixes #32767.
2025-01-02 12:00:06 -08:00
apoorvapendse
44f5f4e129 setup_docs: Update vagrant installation to support Ubuntu 24.04.
Update the Vagrant installation procedure, as Vagrant is no
longer available in the apt repository starting from Ubuntu 24.04

Fixes #32837.
2025-01-02 09:13:24 -08:00
apoorvapendse
5378464f87 provision: Source virtualenv for login shells conditionally.
This commit conditionally adds the source command for
virtualenv in the user's bash profile only when the
system is virtualized.

Checking WSL_DISTRO_NAME in the env vars
is the cheapest option in case of checking
whether the system runs as WSL VM since
it is an in memory operation.
Hence it is checked for first in `is_wsl_instace`.

Fixes #15029.
2025-01-02 09:11:43 -08:00
Lauryn Menard
e65f3cf657 corporate: Create license ledger for automanaged plan migrations.
If we move a paid plan from a remote server to a remote realm, and
the plan has automated license management, then we create an updated
license ledger entry when we move the plan for the remote realm
billing data so that we have an accurate user count for licenses
when the plan is next invoiced.
2024-12-31 16:54:40 -08:00
Lauryn Menard
c01787f41a corporate: Clean up vestiges of migrating plans to multiple realms.
In commit ea863bab5b, handle_customer_migration_from_server_to_realm
was updated to only move a remote server's plan in the case that there
is only one remote realm on the server.
2024-12-31 16:54:40 -08:00
Lauryn Menard
d6db6e3806 invite-modal: Fix invalid custom input to not show "NaN".
Updates the invite modal so that if the custom input is 0, the
submit button is deactivated, since an email invitation or invite
link that immediately expired would be unusable.

Also, updates the custom input to show 0 if a user navigates away
from and back to the custom input option afer putting in an invalid
value, e.g. "abc" or "-20". Previously, the custom input showed
"NaN" in that case.
2024-12-31 16:51:59 -08:00
Niloth P
7aa2658707 integrations: Symlink email integration doc to help center doc. 2024-12-31 16:39:37 -08:00
Niloth P
7261898d89 integrations: Remove Desk.com integration.
Desk.com has been discontinued by Salesforce in March 2020.
2024-12-31 16:31:48 -08:00
Lauryn Menard
1166bc001e help: Document setting a data deletion date during org deactivation. 2024-12-30 09:44:35 -08:00
Alya Abbott
1ad2ce212e help: Get rid of a double negative. 2024-12-30 09:43:50 -08:00
Saubhagya Patel
faa9680fc8 docs: Update markdown.md for echo.ts module update.
This commit updates the "Markdown implementation"
documentation in the `markdown.md` file to reflect the
conversion of the `echo.js` module to TypeScript.
2024-12-30 09:43:29 -08:00
Saubhagya Patel
222c59507c docs: Update sending-messages.md for variable/function updates.
This commit updates the "Sending messages" documentation
in the `sending-messages.md` file to reflect the variable and
function updates, ensuring consistency with changes in the
codebase over time.
2024-12-30 09:43:29 -08:00
Anders Kaseorg
9ba1763855 event_schema: Add local_message_id to message_event.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
d512290b15 event_schema: Use event_dict_type for user_topic_event.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
6416355952 unread_ops: Extract and correct message_details_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
6dfa1b6138 types: Extract update_message_event_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
2548430af3 types: Extract and correct user_group_update_event_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
4da6db9af8 user_events: Extract user_update_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
b1be32b1ee typing_events: Extract typing_user_schema and typing_event_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
20c3a564a7 stream_events: Extract updatable_stream_properties_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
05040f3814 stream_types: Extract api_stream_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
7a784265f5 state_data: Extract realm_domain_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
6ac10f84d0 settings_preferences: Extract user_settings_property_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
bd93e109b4 settings_exports: Export export_consent_schema and realm_export_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
8dd3fffeb0 realm_playground: Extract realm_playground_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
b4f14b4132 presence: Extract presence_info_from_event_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
8d52e09f18 linkifiers: Extract realm_linkifier_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00
Anders Kaseorg
defe5e0128 bot_types: Add user_id to server_update_bot_schema.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-12-30 09:42:26 -08:00