Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo: Checking CI testing. #32839

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: Checking this change.
  • Loading branch information
shuklamaneesh23 committed Jan 6, 2025
commit 78dc6b304b27f7fade23bc985e9ac74f3e4e9af2
Empty file added api/resend-email-invite
Empty file.
6 changes: 6 additions & 0 deletions api_docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ format used by the Zulip server that they are interacting with.

## Changes in Zulip 10.0

**Feature level 333**

* [`PATCH /users`](/api/update-user): Added `send_account_modification_notifications`
function in `do_change_full_name` which notify the user when an admin changes
their full name.

**Feature level 332**

* [`POST /register`](/api/register-queue): Added
Expand Down
9 changes: 9 additions & 0 deletions help/configure-automated-notices.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ You will be notified if someone [subscribes you to a
channel](/help/add-or-remove-users-from-a-channel#add-users-to-a-channel), or
changes your [group](/help/user-groups) membership.


## Notices about user account details changes

{!admin-only.md!}

When an administrator [modifies](/help/change-a-users-name) something about a user's account, it would notify
them that a change was made. We have a Notification Bot that send a private message
to the user informing them about the change.

### New user announcements

{!admin-only.md!}
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# new level means in api_docs/changelog.md, as well as "**Changes**"
# entries in the endpoint's documentation in `zulip.yaml`.

API_FEATURE_LEVEL = 332 # Last bumped for data deletion of deactivated realms.
API_FEATURE_LEVEL = 333 # Last bumped for stream_ids and include_realm_default_subscriptions.

# Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump
Expand Down
2 changes: 1 addition & 1 deletion zerver/actions/user_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def send_account_modification_notifications(

realm = user_profile.realm
sender = get_system_bot(settings.NOTIFICATION_BOT, realm.id)
if acting_user:
if acting_user is not None:
detailed_message = f"{silent_mention_syntax_for_user(acting_user)} has updated your `{property}`.\n\n- **Old `{property}`:** {old_value}\n- **New `{property}`:** {new_value}"
else:
detailed_message = f"The following updates have been made to your account.\n\n- **Old `{property}`:** {old_value}\n- **New `{property}`:** {new_value}"
Expand Down
8 changes: 4 additions & 4 deletions zerver/tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -2142,15 +2142,15 @@ def test_change_avatar_fields(self) -> None:

def test_change_full_name(self) -> None:
now = timezone_now()
with self.verify_action(num_events=2) as events:
do_change_full_name(self.user_profile, "Sir Hamlet", self.example_user("iago"))
with self.verify_action() as events:
do_change_full_name(self.user_profile, "Sir Hamlet", self.user_profile)
check_realm_user_update("events[0]", events[0], "full_name")
self.assertEqual(
RealmAuditLog.objects.filter(
realm=self.user_profile.realm,
event_type=AuditLogEventType.USER_FULL_NAME_CHANGED,
event_time__gte=now,
acting_user=self.example_user("iago"),
acting_user=self.user_profile,
).count(),
1,
)
Expand All @@ -2165,7 +2165,7 @@ def test_change_full_name(self) -> None:
event_time__gte=now,
acting_user=self.user_profile,
).count(),
0,
1,
)

self.set_up_db_for_testing_user_access()
Expand Down
Loading