kota-karthik
5f758e6d0d
auth: Implement Max Password Length Error Handling.
...
Previously, during registration and login, the system failed to check
if the entered password exceeded the maximum length. This led
to silent truncation of passwords longer than the limit, potentially
causing user confusion and security issues,as detailed in #15087 .
In response,I've updated LoggingSetPasswordForm and RegistrationForm.
Now, entering a password beyond the maximum length triggers
a ValidationError.This uses PASSWORD_TOO_LONG_ERROR, alerting
users with "The password cannot exceed 100 characters in length."
This fix enhances user understanding and system security.
Fixes #27922 .
2024-01-06 11:48:03 +05:30
Sahil Batra
377df9e4db
user_groups: Do not remove the user group row if user can join again.
...
We now do not remove the user group row immediately from "Your groups"
panel when user is removed from the group, if the user can join that
group again by themselves. This makes the behavior similar to what
we have for streams.
2023-12-20 20:34:01 -08:00
Lauryn Menard
653901fc30
support: Update remote server support search test.
...
Creates some reusable helper functions and adds remote realms to
the search results that are checked, which gives coverage for the
remote realm user counts in the support view.
2023-12-19 14:44:26 -08:00
Lauryn Menard
22e035d8e2
support: Fix description for remote realm host field.
2023-12-19 14:44:26 -08:00
Lauryn Menard
f56923fafa
support: Format ARR column as dollar amount in remote activity view.
2023-12-19 14:44:26 -08:00
Lauryn Menard
ad8daffb62
support: Add Zulip version to remote server information.
...
In the remote server information displayed in the remote support
view, show the Zulip version currently on the RemoteZulipServer
object as last_version.
2023-12-19 14:44:26 -08:00
Lauryn Menard
9e9fec68a1
support: Add plan's estimated annual revenue to remote support view.
...
Also fixes formatting for per license price and moves the billing
schedule to be above this line so that it's clearer the per license
price is based on the billing schedule.
2023-12-19 14:44:26 -08:00
Lauryn Menard
fb3bd0cde1
support: Add user count data to remote support view.
2023-12-19 14:44:26 -08:00
Lauryn Menard
a8172591ca
support: Show current discount for current plan.
...
This should match any discount information shown for the remote
realm or server.
2023-12-19 14:44:26 -08:00
Lauryn Menard
be6c90f608
support: Move and highlight current sponsorship information.
...
Moves the note about being on the sponsored Community plan to be
under the remote server or realm name.
Adds a note about a remote server or realm with a partial discount
set, which is another type of sponsorship.
Highlights these notes visually with emojis for support admin.
2023-12-19 14:44:26 -08:00
Lauryn Menard
f92152fafb
support: Add shared helper for customer/plan in support views tests.
...
Adds a shared helper function for support view tests that need
a customer and/or customer plan.
2023-12-19 14:44:26 -08:00
Lauryn Menard
649cc15220
corporate: Shorten plan status strings.
2023-12-19 14:01:43 -08:00
Karl Stolley
e4a3b1b1a3
plans: Precisely determine min- and max-widths.
2023-12-19 13:31:57 -08:00
Prakhar Pratyush
63bb63ad80
corporate: Remove '#nocoverage' comments.
...
This commit removes '#nocoverage' comment as we have added
few E2E tests in 'test_stripe.py'.
2023-12-19 10:59:38 -08:00
Prakhar Pratyush
f278e21c7a
test_stripe: Add legacy remote server schedule upgrade E2E test.
2023-12-19 10:59:38 -08:00
Prakhar Pratyush
2a6c93a2b9
test_stripe: Add remote server non-sponsorship E2E test.
2023-12-18 23:49:03 -08:00
Prakhar Pratyush
1380319708
test_stripe: Improve non-sponsorship remote realm billing test.
...
This commit improves the test to check the internal states
of the database e.g. check what /billing/ says about the
next renewal date and amount.
2023-12-18 23:49:03 -08:00
Anders Kaseorg
125ddf2f79
self-hosting: Fix link to redirect.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-18 16:11:35 -08:00
Anders Kaseorg
620a75f149
check_help_documentation: Exclude temporarily unavailable endpoint.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-18 15:44:00 -08:00
Aman Agrawal
b2faa5c5bb
stripe: Add a CustomerPlan for self hosted sponsored customers.
2023-12-18 12:55:34 -08:00
Aman Agrawal
d4a852e97c
stripe: Save a query to get CustomerPlan for sponsored customers.
2023-12-18 12:55:34 -08:00
Karl Stolley
44c8e25e32
portico: Correct tab/scroll logic for self-hosted fragments.
2023-12-18 12:24:50 -08:00
Aman Agrawal
d962814a30
upgrade: Make it possible to upgrade to a provided tier.
...
Main work is maintaining context during various redirects and
and passing the context to the final upgrade process.
2023-12-18 12:23:46 -08:00
Aman Agrawal
1326619b77
stripe: Provide min license count to template as per tier.
2023-12-18 12:23:46 -08:00
Lalit
02257b8cbf
ts: Migrate `popover_menus` to typescript.
...
This commit migrates `popover_menus` module to TypeScript. Also adds
a placeholder types declaration file for `css_variables` module.
2023-12-17 14:00:44 -08:00
evykassirer
bfff48decc
unread: Return objects directly, no functional change.
2023-12-17 10:14:11 -08:00
evykassirer
f15a687916
unread: Use message type instead of checking stream_id.
2023-12-17 10:14:11 -08:00
evykassirer
6596598949
unread: Create key_to_bucket object in call to constructor.
2023-12-17 10:14:11 -08:00
evykassirer
722494bfae
unread: Rename KeyDict to key_to_bucket.
2023-12-17 10:14:11 -08:00
evykassirer
5c9bb51c5b
unread: Use some clearer variable names.
2023-12-17 10:14:11 -08:00
Tim Abbott
39936972f7
zilencer: Fix can_push logging bug with system bot realms.
...
We could be incorrectly logging the can_push value associated with the
system bot realm when only a single human realm existed on a server.
2023-12-17 09:55:31 -08:00
evykassirer
24dc2e783d
message_store: Migrate message_store to typescript.
2023-12-17 09:43:47 -08:00
Tim Abbott
5dc1d36f73
zilencer: Fix community plan push notifications.
2023-12-17 09:36:47 -08:00
Aman Agrawal
311a645c5a
sponsorship_request: Minor changes.
...
* Show if requested org is hosted on Zulip Cloud.
* Change how user numbers are displayed.
2023-12-17 09:33:37 -08:00
Tim Abbott
1e0339c18b
plans: Fix community plan documentation.
...
It appears the plans page version of this had a less clear/specific
list of example communities than was intended. Also improve the longer
version in the Help Center to give the same examples.
2023-12-17 00:09:06 -08:00
Aman Agrawal
6b1f71872b
plans: Fix same page hashtag link.
...
Fixes /plans fragment links redirecting users to different page.
2023-12-16 22:51:21 -08:00
Aman Agrawal
d85462a459
pricing_plans: Fix scrollbars always visible.
...
Kick in min-width at the required width.
This will ensure that scrollbars are only visible if the window
is at this width.
2023-12-16 22:51:21 -08:00
Anders Kaseorg
b38f3d2472
models: Extract zerver.models.lookups.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
c343d7c30e
models: Move query_for_ids to zerver.lib.query_helpers.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
33d140c8dc
models: Extract zerver.models.alert_words.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
1f1b2f9a68
models: Extract zerver.models.bots.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
27c0b507af
models: Extract zerver.models.custom_profile_fields.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
d5410b577a
models: Extract zerver.models.onboarding_steps.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
68d3b9f629
models: Extract zerver.models.realm_audit_logs.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
c9c819e1d7
models: Extract zerver.models.scheduled_jobs.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
73e68050bb
models: Extract zerver.models.presence.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
9fb577337b
models: Extract zerver.models.user_activity.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
cff0b78771
models: Move some functions to zerver.lib.attachments.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
09d0abfe70
models: Extract zerver.models.drafts.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00
Anders Kaseorg
b15999c799
models: Extract zerver.models.messages.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-12-16 22:08:44 -08:00