Sayam Samal
09f1487bfe
corporate: Rename stream->channel in TUM case study.
2024-05-07 10:01:47 -07:00
Sayam Samal
a660c66aa4
corporate: Rename stream->channel in terms and privacy policies.
2024-05-07 10:01:47 -07:00
Sayam Samal
cd6d76500c
corporate: Rename stream->channel for basic instances.
...
This renames the term "stream" to "channel" in /templates/corporate
for the basic instances, where the term does not interfere with the
quotes and links.
2024-05-07 10:01:47 -07:00
Aman Agrawal
3ffffd77ff
stream_popover: Fix broken move topic to stream popover.
...
`data("typeahead").unlisten()` of move topic to stream popover
crashed since we removed `data('typeahead')` in #29973 .
2024-05-07 09:16:34 -07:00
Pratik
982097f0a7
user_profile_modal: Change "edit" icon and "copy link" icon.
...
This commit replaces the fontawesome "edit" and "copy-link" icon found
in the user profile modal with the corresponding zulip icons.
It also moves the functional classes like
user-profile-manage-own-copy-link-button from the icon element to its
container, including adding a new div wrapping the icon in
user-profile-manage-others-edit-button.
2024-05-06 18:14:40 -07:00
Pratik
3b2bf7b2b9
modal_css: Refactor css of header of user profile modal.
...
This commit enhances the layout of user profile modal header by using
flexbox properties.
2024-05-06 18:14:40 -07:00
Pratik
fdbce9d889
profile_modal: Replaces underscore style classes with hyphenated one.
...
This commit replaces the underscore-style classes of user profile modal
with the hyphenated one.
2024-05-06 18:14:40 -07:00
Mahhheshh
1198785c62
analytics: Improve do_increment_logging_stat performance.
...
The previous implementation using Django's `get_or_create` for
`do_increment_logging_stat` involved two separate database queries,
potentially leading to race conditions.
Use an `ON CONFLICT ... DO UPDATE` (aka "upsert") query, which
eliminates race conditions and improves performance. This is mildly
complicated due to the different unique indexes across the various
tables, and the need for bug-for-bug compatibility with the previous
implementation.
Fixes #28947 .
Co-authored-by: Alex Vandiver <alexmv@zulip.com>
2024-05-06 16:34:01 -07:00
Mahhheshh
218c7ae8cd
test_counts: Add test to do_incremental_logging_stat.
...
Adds an test, to count the number of database queries made by
`do_incremental_logging_stat` function.
2024-05-06 16:34:01 -07:00
Alex Vandiver
7607969f27
zilencer: Add a unique index on RemoteRealm counts with RemoteRealm objects.
2024-05-06 16:34:01 -07:00
Anders Kaseorg
27767252cf
eslint: Enable @typescript-eslint/no-unsafe-* rules.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 16:12:27 -07:00
Anders Kaseorg
467e5a4361
drafts: Fix implicit use of any.
...
Attempting to convert .data("draft-id") to .attr mysteriously breaks
draft saving, so I’ll leave that for future work.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 16:12:27 -07:00
Anders Kaseorg
3fc5800d53
compose_ui: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 16:12:27 -07:00
nimishmedatwal
acf13e49cf
rendered_markdown: Fix code getting copied when visiting playground.
...
Fixes #29844 .
2024-05-06 15:50:39 -07:00
Dhruv Goyal
178d4f364b
documentation: Described display_in_profile_summary field as optional.
...
Fixes #29908 .
2024-05-06 15:32:31 -07:00
Anders Kaseorg
20e4659e68
portico header: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
34c465e475
portico header: Remove nonsense _full-height-no-scroll code.
...
e.target is the wrong element, and even if this were to successfully
add the _full-height-no-scroll class to <body>, that’s not a child of
.portico-hello-page.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
0315c22c97
portico header: Delete bogus change handler.
...
Its selector looks like it’s missing a ‘.’, but “fixing” it breaks the
page even more, and trying to decipher this mess of event handlers
that poorly replicate what should be native behavior is making my
brain hurt.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
0a30bb9ee8
message_edit_history: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
0c11a842c1
bootstrap_typeahead: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
7360fd2a67
bootstrap_typeahead: Remove create and lookup API.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Anders Kaseorg
acf93eac4b
bootstrap_typeahead: Store values in a WeakMap.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 15:02:45 -07:00
Alya Abbott
d8e8f381fa
contributor docs: Update links to PR guides.
...
Follow-up to restructuring PR guide pages.
2024-05-06 14:58:20 -07:00
Alex Vandiver
06543b54b1
backport: Fix the commit-ids that are used.
...
The commit hashes that appear in the `pull/12345/head` ref are the
ones _before_ any final rebase occurs, and as such may not match to
any commit hashes which exist in `main`.
Use the GitHub GraphQL API to pull the last "merge commit" on the PR,
which is post-rebase, and use that as the target commit when
cherry-picking. Then walk backwards from that commit, including every
sequential commit which is still associated with the PR; we do this
because during the merge, commits may be added or removed, so the PR
is not reliable in the commit count.
2024-05-06 14:47:22 -07:00
Anders Kaseorg
f13e94d9ae
requirements: Upgrade Python requirements.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 12:56:30 -07:00
Anders Kaseorg
042f28dca8
invites: Broaden invite_expires_in_minutes type.
...
It may be internally recomputed using .total_seconds() / 60, which is
a float.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 12:56:30 -07:00
Anders Kaseorg
8b47b5dc34
send_email: Assert custom email payload is a str.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 12:56:30 -07:00
Anders Kaseorg
0dff5f0a27
narrow: Add maybe_negate annotation needed by mypy 1.10.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 12:56:30 -07:00
Alex Vandiver
b2ebe34500
missedmessage_emails: Backoff the background worker retries.
2024-05-06 12:50:27 -07:00
Tim Abbott
7db916fe66
docs: Fix a couple typos in pull request guide.
2024-05-06 12:47:50 -07:00
Anders Kaseorg
328f246092
ui_report: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
5b92fbacaa
stats: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
70d140ec59
settings_linkifiers: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
515eecd15c
reactions: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
298b1aa1e6
signup: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
c53c7cb929
invite: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
b59b3f6952
channel: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
7b48b7e4e5
settings_linkifiers: Avoid mutating the response object.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
e23f81c72c
settings_linkifiers: Fix array/string confusion.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
7fb19cff98
upgrade: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
8ec694a854
sponsorship: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
fbfdc19cc0
billing helpers: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
d1e2fefad2
billing: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
719ff6d79c
settings_components: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
1bde66242c
popover_menus: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
bde758c8ae
scroll_util: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
897dffa598
poll_modal: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
b054050ee8
unread: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
6ed50d1c80
e2e-tests: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00
Anders Kaseorg
819bccfec1
submessage: Fix implicit use of any.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-05-06 11:31:34 -07:00