Umair Khan
ad8f5650a3
user-groups: Generate test data of user groups.
2017-11-13 13:08:15 +05:00
rht
548c96ad86
zilencer: Text-wrap long lines exceeding 110.
2017-11-07 17:24:06 -08:00
rht
995b300840
zilencer: Remove unused imports (F401).
2017-11-07 16:37:01 -08:00
rht
ccf2792c1c
refactor: Remove six.moves.configparser import.
2017-11-07 10:51:44 -08:00
rht
ec5120e807
refactor: Remove six.moves.zip import.
2017-11-07 10:46:42 -08:00
rht
0e71b243ce
zilencer: Remove inheritance from object.
2017-11-06 08:53:48 -08:00
neiljp (Neil Pilgrim)
6c995db231
mypy: Use Iterator[Any] as return type of queryset_iterator.
2017-11-04 19:47:45 -07:00
Harshit Bansal
233595b2f7
actions.py: Rename `do_add_reaction()` to `do_add_reaction_legacy()`.
2017-10-31 15:42:35 -07:00
Vishnu Ks
1d94119d31
actions: Call send_initial_pms from process_new_human_user.
2017-10-25 14:14:59 -07:00
rht
691598a88b
py3: Remove "from six.moves import range".
...
This is no longer required, since in Python 3, this is what the range
built-in does.
2017-10-17 23:28:14 -07:00
rht
2f3ae84e5a
py3: Remove all `__future__ import division`.
2017-10-17 23:09:12 -07:00
Tim Abbott
51006f4a43
populate_db: Create bots before sending messages.
...
Apparently, the order we'd just created in
cbbdd539f4
broke populate_db; this is a
better and more sustainable fix to the overall problem.
2017-10-11 23:27:00 -07:00
Tim Abbott
cbbdd539f4
populate_db: Fix creating welcome-bot at the wrong place.
...
While it might be useful to have created welcome-bot earlier in a
certain sense, it's definitely not a good idea in this populate_db
implementation, because doing so threw off the random initial
assignment of users to streams and thus broke the casper tests.
2017-10-11 22:17:09 -07:00
derAnfaenger
5ddc336844
tests: Add welcome bot as user.
2017-10-11 20:45:42 -07:00
Brock Whittaker
835b6c7059
components: Make checkboxes darker.
...
This makes the standard checkboxes 7% darker and makes the disabled
ones about 12% darker + 7% darker than they were before, to
increase visibility.
Fixes : #6331 .
2017-10-11 13:15:44 -07:00
rht
8d289b8228
zilencer: Remove absolute_import.
2017-09-27 20:20:07 -07:00
rht
ed9b3ca440
zilencer: Remove import print_function.
2017-09-27 18:06:47 -07:00
Robert Hönig
c77b245944
backend tests: Add 'AARON' as bot owner of OUTGOING_WEBHOOK_BOT.
2017-09-26 16:11:27 -07:00
Rishi Gupta
0727f045f5
zilencer: Add management commands to create new dev users and realms.
2017-09-22 06:35:43 -07:00
Rishi Gupta
b32fe9f2a0
features: Update screenshot and add tool to generate.
...
This adds a new management command that should make generating or
updating screenshots a bit easier in the future.
2017-08-22 11:32:22 -07:00
Tim Abbott
d7f8781b06
populate_db: Remove unnecessary print statement.
2017-08-15 12:55:56 -07:00
Tim Abbott
2858c13513
populate_db: Use caching helpers to get users.
2017-08-15 12:55:00 -07:00
Tim Abbott
27b79e7189
populate_db: Fix duplicate test data when run multithreaded.
...
The previous implementation resulted in each of the 10 threads using
the same random seed and thus same messages.
Fixes #6028 .
2017-08-05 11:22:11 -07:00
Darren Fix
69767a43cb
Create complex sample messages for dev VM.
...
Create a generator script to pull lines from a play, enhancing
random lines with emoji, Markdown and other flair.
With numerous contributions from Rein Zustand and Tim Abbott to finish
the project.
Fixes : #1666 .
2017-08-01 20:54:39 -07:00
Aditya Bansal
9e372c465c
populate_db: Set pointer as message_id of last user sent message.
2017-07-28 11:57:52 -07:00
Harshit Bansal
eeb25b6b4b
populate_db: Add a test realm emoji while populating databases.
...
Add `green_tick` realm emoji which can be used while performing tests.
2017-07-27 18:57:06 +00:00
Vishnu Ks
7eaec543f1
zilencer: Use get_user in populate_db.py.
2017-07-18 17:14:05 -07:00
Vishnu Ks
df664db7b4
zilencer: Remove unused imports from populate_db.py.
2017-07-18 17:14:05 -07:00
Vishnu Ks
9a44794d14
zilencer: Eliminate get_user_profile_by_email from sync_api_key.
2017-07-18 17:14:05 -07:00
Vishnu Ks
b0b809b195
zilencer: Eliminate get_user_profile_by_email from print_initial_password.
2017-07-18 17:14:05 -07:00
Vishnu Ks
754db8ec9f
zilencer: Eliminate get_user_profile_by_email from profile_request.
2017-07-18 17:14:05 -07:00
Aditya Bansal
f2d6194ae1
actions: Start logging subscription activities in RealmAuditLog.
2017-07-17 17:23:41 -07:00
Aditya Bansal
0c4165a5bd
pep8: Add compliance with rule E261 to populate_db.py.
2017-07-11 11:56:50 -07:00
Vaida
d5517bae36
Delete the old zulip.com "referrals" system.
...
This system hasn't been in active use for several years, and had some
problems with it's design. So it makes sense to just remove it to declutter
the codebase.
Fixes #5655 .
2017-07-07 14:59:18 -07:00
Rishi Gupta
36cd122905
models: Change default org_type to CORPORATE.
...
Once we implement org_type-specific features, it'll be easy to change a
corporate realm to a community realm, but hard to go the other way. The main
difference (the main thing that makes migrating from a community realm to a
corporate realm hard) is that you'd have to make everyone sign another terms
of service.
2017-06-29 15:14:58 -07:00
vaibhav
9cf9837f12
webhooks: Add outgoing webhook bot user to development database.
2017-05-29 16:01:23 -07:00
Aditya Bansal
b07273c2d0
pep8: Add compliance with rule E261 to commands/profile_request.py.
2017-05-07 23:21:50 -07:00
Tim Abbott
60225012e6
unread: Add tool for marking all messages as unread for testing.
...
This tool can save a lot of manual work in testing our unread counts
logic.
2017-04-25 15:40:12 -07:00
Tim Abbott
8ae052a9d8
populate_db: Set a description for the default realm.
2017-04-17 21:59:21 -07:00
hackerkid
b2504084ab
Replace timezone.now with timezone_now.
2017-04-16 12:28:56 -07:00
Harshit Bansal
ac2172e233
models: Rename RealmAlias model to RealmDomain.
...
Includes a migration.
2017-04-04 15:48:03 -07:00
Rishi Gupta
8617c2d594
populate_db: Make Iago staff.
...
Will make it easier to test the /activity page.
2017-03-27 16:43:35 -07:00
Rishi Gupta
30024d0a8f
models: Remove Realm.domain.
2017-03-25 19:55:48 -07:00
Tim Abbott
3617ebfd41
api: Rename get_old_messages to get_messages in the backend.
...
Fixes #1315 .
2017-03-23 23:52:44 -07:00
Rishi Gupta
871c754369
bulk_create: Remove unused function bulk_create_realms.
2017-03-13 14:42:55 -07:00
Tim Abbott
950e06cf32
populate_db: Remove unused Deployment import.
2017-03-06 00:11:53 -08:00
Tim Abbott
10a52147fc
zilencer: Remove obsolete create_deployment command.
2017-03-06 00:10:03 -08:00
Rishi Gupta
1453a5bfda
Change string_id of test zephyr realm from mit to zephyr.
...
Also changes Realm.is_zephyr_mirror_realm to use string_id=zephyr instead of
domain=mit.edu.
Part of a larger migration away from Realm.domain.
2017-03-04 12:18:01 -08:00
Rishi Gupta
15d60fa7ed
Change now() to timezone.now() throughout codebase.
...
Change `from django.utils.timezone import now` to
`from django.utils import timezone`.
This is both because now() is ambiguous (could be datetime.datetime.now),
and more importantly to make it easier to write a lint rule against
datetime.datetime.now().
2017-02-28 16:03:37 -08:00
Tim Abbott
8691f1466a
populate_db: Disable use of memcached when populating database.
...
This fixes an issue where one would get errors of the form:
`ValueError: unsupported pickle protocol: 3`
in a `run-dev.py` server run against Python 2 if you ran `provision`.
Provision currently runs `populate_db` with Python 3, storing Python 3
based data in memcached, which then can't be read by Python 2.
2017-02-26 21:08:47 -08:00