Skip to content

Commit

Permalink
docs: Checking this change.
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklamaneesh23 committed Jan 6, 2025
1 parent 2c98eb4 commit 790ea7c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
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: 2 additions & 0 deletions zerver/actions/user_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,8 @@ def send_account_modification_notifications(
) -> None:
if user_profile.is_bot or acting_user == user_profile:
return
if acting_user == None:
return

realm = user_profile.realm
sender = get_system_bot(settings.NOTIFICATION_BOT, realm.id)
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

0 comments on commit 790ea7c

Please sign in to comment.