Tim Abbott
6e55342e21
bulk_remove_subscriptions: Pass client object in.
...
We need the client object to pass on to do_mark_stream_as_read.
2018-08-01 16:48:31 -07:00
Vishnu Ks
2b28042ddf
models: Rename remaining audit log event types to past tense.
...
This makes the realm audit event type log entries more consistent.
2018-07-22 20:00:28 -07:00
Vishnu Ks
abb218ebab
models: Add SUBSCRIPTION_DEACTIVATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
ff4c1ca2c1
models: Add SUBSCRIPTION_CREATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
20fae065f6
models: Add BOT_OWNER_CHANGED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
d5b6f032d2
models: Add USER_API_KEY_CHANGED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
0d69fc482b
models: Add USER_TOS_VERSION_CHANGED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
83ff688bb6
models: Add USER_EMAIL_CHANGED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
75ed3f92e2
models: Add USER_FULL_NAME_CHANGED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
c8aac0fbb9
models: Add USER_CHANGE_AVATAR_SOURCE event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
4c73221108
models: Add USER_CHANGE_PASSWORD event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
201b99a6f8
models: Add USER_REACTIVATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
d0b89cbb44
models: Add USER_DEACTIVATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
ce3fffdbb2
models: Add USER_ACTIVATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Vishnu Ks
2c8effe9fe
models: Add USER_CREATED event type constant to RealmAuditLog.
2018-07-10 15:42:26 +05:30
Yashashvi Dave
06e7e933cc
/json/users: Replace email with user_id in API to update/remove users.
2018-05-18 15:20:43 -07:00
rht
4f5b1c0a5a
zerver/tests: Use python 3 syntax for typing in most files.
2017-11-16 21:52:01 -08:00
Steve Howell
12e65eb21c
Use stream ids in various tests.
...
This commit prepares us to introduce a StreamLite class. For
these tests, we don't care about the actual contents of the
Stream, just the right stream is there.
2017-10-08 20:18:34 -07:00
Tim Abbott
dc843efd56
RealmAuditLog: Add support for stringifying entries.
2017-09-22 07:09:37 -07:00
Aditya Bansal
f2d6194ae1
actions: Start logging subscription activities in RealmAuditLog.
2017-07-17 17:23:41 -07:00
Maxim Averin
a4c3f571db
Switch change_tos_version to use RealmAuditLog.
2017-05-29 15:24:01 -07:00
Maxim Averin
685fb16c39
Switch change_full_name to use RealmAuditLog.
...
This requires adding an `acting_user` parameter to the
`do_change_bot_owner` function.
2017-05-29 15:22:08 -07:00
Steve Howell
b609911656
Remove unused get_user_profile_by_email() imports.
2017-05-08 11:57:38 -07:00
Steve Howell
3b2a3601c1
tests: Add ZulipTestCase.notification_bot().
2017-05-08 11:57:38 -07:00
Steve Howell
942db9b6c5
tests: Added ZulipTestCase.example_user() function.
...
The example_user() function is specifically designed for
AARON, hamlet, cordelia, and friends, and it allows a concise
way of using their built-in user profiles. Eventually, the
widespread use of example_user() should help us with refactorings
such as moving the tests users out of the "zulip.com" realm
and deprecating get_user_profile_by_email.
2017-05-08 11:57:38 -07:00
Maxim Averin
15170b5423
Switch regenerate_api_key to use RealmAuditLog.
2017-04-25 10:23:33 -07:00
hackerkid
b2504084ab
Replace timezone.now with timezone_now.
2017-04-16 12:28:56 -07:00
Tim Abbott
cfe8871dfc
test_audit_log: Put all tests in a single test class.
...
This simplifies the process for adding new tests here a bit.
2017-04-05 12:53:59 -07:00
Maxim Averin
02900ff54a
Switch do_change_bot_owner to use RealmAuditLog.
...
This requires adding an `acting_user` parameter to the
`do_change_bot_owner` function.
2017-04-05 12:50:55 -07:00
Tim Abbott
5776ecfac2
test_audit_log: Fix unnecessary user creation.
2017-03-27 13:23:10 -07:00
Maxim Averin
f213369e1d
zerver: Replace log_event with RealmAuditLog in do_change_avatar_fields.
2017-03-27 13:23:10 -07:00
Maxim Averin
b13b660709
zerver: Replace log_event with RealmAuditLog in do_change_user_email.
...
This replaces the ancient file logging approach for the auditable
password change event with the database audit log.
2017-03-13 22:08:12 -07:00
Maxim Averin
fc35982b87
zerver: Replace log_event with RealmAuditLog in do_change_password.
...
This replaces the ancient file logging approach for the auditable
password change event with the database audit log.
2017-03-13 22:07:14 -07:00
Rishi Gupta
51b7677db7
Add RealmAuditLog table and record user activation/deactivation events.
...
The RealmAuditLog will make it easier for server admins to replay history.
2017-03-04 16:45:44 -08:00