David Roe
def426aa34
Remove exceptions for two domains where all streams were private.
...
(imported from commit 1e391a50875091f6a8843d3915a6893f2d903f22)
2015-08-20 17:33:16 -07:00
Tim Abbott
6176dfd039
Install yui-compressor for building enterprise tarballs.
...
(imported from commit 917d6a5221b5c2c50fc399c9942cb3682e3471ca)
2015-08-20 17:33:16 -07:00
Tim Abbott
9000d27f12
Update generate_enterprise_secrets to support running in production.
...
(imported from commit 1051f668ebe684cc60ba4444e815ef60398fad61)
2015-08-20 17:33:16 -07:00
Tim Abbott
e79447131f
Make build-enterprise-tarball run again.
...
(imported from commit e3dd8d75811458d0cee8a2d05a4b47abd6eda7fd)
2015-08-20 17:33:16 -07:00
acrefoot
0a6bb975c3
Replace settings.OG_ZULIPER_EMAILS with database lookups
...
Also renames the OG_ZULIPER_EMAILS to CROSS_REALM_BOT_EMAILS
(imported from commit a9e0ccebbd6b37376e535600670ad493dc8de7e1)
2015-08-20 17:20:41 -07:00
Reid Barton
53c2b3f6f4
Clean up vagrant postgres user creation code
...
We don't need to check whether the user exists before creating it:
CREATE USER failing is fine.
(imported from commit e8b2bc5495e328ee30d15445a566c0edff2f069d)
2015-08-20 16:30:21 -07:00
Reid Barton
748f931999
Fix postgres users when re-provisioning
...
If we run provision.py a second time, there will already be
zulip/zulip_test users, so the CREATE USER will fail and the password
won't get updated to the newly generated value. By creating the user
and setting the password in two commands, we allow the creation to
fail without affecting whether the password is set.
Also the quoting for updating .pgpass was wrong.
(imported from commit 5e249813c17cb4829e4e4958e92aaa30563c5f96)
2015-08-20 16:30:21 -07:00
Anders Kaseorg
dd8eda4edc
run-dev: Run compile-handlebars-templates inside the pgrp
...
(imported from commit bb13f8804b7e9e930ecd2542ea8772c76370d32e)
2015-08-20 15:54:53 -07:00
Anders Kaseorg
bd66b2139b
run-dev: Eschew useless shells
...
(imported from commit 34dab15941f5c63f381f5b2b7b78482dbc2b02ea)
2015-08-20 15:54:53 -07:00
Reid Barton
664db6b622
Generate more test messages to avoid test failures
...
Sometimes I get the error "Selected message id not in MessageList"
when running the casper tests. I think it's probably when the test
user's home view does not contain any messages.
Ideally we would fix this in a way that guarantees that we generate
whatever messages the test suite needs...
(imported from commit 51a02da612dda88d60681b9e09cd6e6a2c39a470)
2015-08-20 15:43:43 -07:00
David Roe
8cb7b759c6
Add tests for new realm properties, fix revealed typo.
...
(imported from commit 49ffcf7edc64c2dbc3cf41ed64222390072c2e88)
2015-08-20 15:29:46 -07:00
David Roe
086d8eee22
Add name_changes_disabled realm field.
...
(imported from commit 6b04ba2f7ad64c44f2ef18302f0fbd819259d632)
2015-08-20 15:29:46 -07:00
David Roe
5b7f3466ba
Add feature where only admins can invite new users.
...
This is controlled through the admin tab and a new field in the Realms table.
(imported from commit e78a6f48160e2a1bbc68d278beb726fe31515266)
2015-08-20 15:29:46 -07:00
David Roe
809efc4f2b
Add realm option to show or not show digest e-mail.
...
(imported from commit e9cfe519aa9f2857a1dcc7c75f5e1889834fcb86)
2015-08-20 15:29:45 -07:00
David Roe
e5cb2a468f
Enable Lab features for all users
...
(imported from commit 4e2658d28a5e02067ad472fec76c66f46592d520)
2015-08-20 15:29:45 -07:00
David Roe
90e2f5053f
Add mandatory topics as a realm option.
...
(imported from commit 929a884b8610669aa24a167367b899683e33a045)
2015-08-20 15:29:45 -07:00
Yoyo Zhou
6a63303736
Add dependencies for test-js-with-node and test-js-with-casper to provision.py.
...
Create a .bash_profile in the VM that activates the python venv on each login.
Node dependencies include some npm packages that haven't been backported to trusty yet.
(imported from commit 8307740004a05b0c9d6ea26f97c2e80b9d1bbaf4)
2015-08-20 14:29:45 -07:00
Yoyo Zhou
f78abd2dcc
Update schema changes content and formatting.
...
(imported from commit 46f3d43bfe62883d490ea870b2d29f7a45397c08)
2015-08-20 14:24:59 -07:00
Yoyo Zhou
4a6e132a44
Add "Schema changes", rST generated via pandoc -r mediawiki -w rst
...
(imported from commit f3c5621a8b612217986c879d3d15b85c9098ccca)
2015-08-20 14:24:59 -07:00
Yoyo Zhou
1e3249c94e
Add note that provision.py sets up postgres test db for you
...
(imported from commit 87d31b04db15b8ea994f40362ab910ccc028c91a)
2015-08-20 14:21:55 -07:00
Yoyo Zhou
a1237aa2b2
Update testing notes formatting and content.
...
(imported from commit 44cc34888f14d101c29bcd1c8d63cc082b4ffe09)
2015-08-20 14:21:55 -07:00
Yoyo Zhou
bb45f8d8e3
Copy "Testing the app" from the wiki, via pandoc -r mediawiki -o rst
...
(imported from commit 7150179ff1008ffa6849b983fb579a36fffc9c06)
2015-08-20 14:21:55 -07:00
Reid Barton
5a747ab690
Make the CasperJS frontend tests work again
...
(At least when PhantomJS doesn't crash...)
(imported from commit 62936b12883e4c6bbd3701da80783b4bffe46025)
2015-08-20 13:33:07 -07:00
Anders Kaseorg
dfb1601aed
Turn on cleanup_before_reload for everyone
...
(imported from commit 724a7b2bb5a0679b58eac62eaaf41d8397726c38)
2015-08-20 11:10:39 -07:00
Anders Kaseorg
62973fce0f
Remove unused zulip_mit_emails, is_zulip_mit_user
...
(imported from commit 8d49bd9a490a367c58befa09e0922f66e7923e77)
2015-08-20 11:10:39 -07:00
Anders Kaseorg
3043859700
Remove CUSTOMER3 advertisements
...
(imported from commit c48b478cbb7b682f1c76af027b487af73893c2be)
2015-08-20 11:10:39 -07:00
Anders Kaseorg
7cd1d9665d
test_settings: set CAMO_KEY = 'dummy' to make tests pass
...
(imported from commit d8705d8bbcad365b6b94a456d1942a8afc1a32d4)
2015-08-20 11:07:52 -07:00
Cat Miller
0a20f168a7
Auto-generate dev-secrets file.
...
Source LOCAL_DATABASE_PASSWORD and INITIAL_PASSWORD_SALT from the secrets file.
Fix the creation of pgpass file.
Tim's note: This will definitely break the original purpose of the
tool but it should be pretty easy to add that back as an option.
(imported from commit 8ab31ea2b7cbc80a4ad2e843a2529313fad8f5cf)
2015-08-20 00:20:44 -07:00
Tim Abbott
86278804c9
Use the EmailAuthBackend for the test suite.
...
(imported from commit 2f7bf9864991358e9dabacbd2b0f652a9f69230c)
2015-08-19 23:34:30 -07:00
Tim Abbott
dc5a5ce1de
Fix lint error.
...
(imported from commit 4c0897d109ddb229989afd8e4b4db270569e558a)
2015-08-19 23:24:56 -07:00
David Roe
4bd93325de
Don't create the MIT realm in the Dev VM.
...
(imported from commit 2e8122cfca87ace24f5048a6ecc57c8c5b3d101c)
2015-08-19 22:24:53 -07:00
David Roe
a9023935e4
Make the default Dev VM user Iago a Zulip admin.
...
(imported from commit ebec7b44c1d7fdbd270ee534f2c5453a21ae3884)
2015-08-19 22:24:53 -07:00
David Roe
dedc83e5dd
Switch links on login page to the register page in Dev VM.
...
(imported from commit 16e285b2d8f3c5124eaef0b20aa1097d4a1934d0)
2015-08-19 22:24:53 -07:00
David Roe
472898cfc6
Allow adding users to realms more easily in Dev VM.
...
Include new field on Realm to control whether e-mail invitations are required
separately from whether the e-mail domain must match.
Allow control of these fields from admin panel.
Update logic in registration page to use these fields.
(imported from commit edc7f0a4c43b57361d9349e258ad4f217b426f88)
2015-08-19 22:24:53 -07:00
David Roe
32783ebbfb
Admin users in red, at beginning, in dev login view
...
(imported from commit 530f0a5d26d5c2b637834281e45adb399852ae0a)
2015-08-19 22:24:53 -07:00
Tim Abbott
902edf5200
Fix comment typo in provision.py.
...
(imported from commit d8fcfb6d2ab5820f0d6032ae66bda16cf92132f0)
2015-08-19 21:41:44 -07:00
Jonathan Dahan
580cdb55be
Install git pre-commit hooks in the vm as part of provisioning.
...
(imported from commit b3aa3b44de198abea49f5b43e2403f466f30f66c)
2015-08-19 21:41:04 -07:00
Jonathan Dahan
795f191fb3
Remove git commit domain restrictions.
...
(imported from commit a756428d0b95db95fb093e78a182ad8873914f54)
2015-08-19 21:40:04 -07:00
Luke Faraone
1e7d7c0b71
Install a supervisor job for run-dev.
...
The development server will automatically start after provisioning finishes.
(imported from commit 6be3d954d9049acd0360189b07b1481756b69eef)
2015-08-19 21:07:23 -07:00
Luke Faraone
7e78dc4ca1
Clean up, comment more in provision.py.
...
Also remove unused import.
(imported from commit 8ba0020758ad842085b4f7dae7bfa3560281bd3a)
2015-08-19 21:07:23 -07:00
Luke Faraone
75d0146d33
Don't assume the user's OS in provision.py
...
We still need to put in the work to support other platforms, but now at least
we'll error out if you're not on 64-bit Ubuntu 14.04.
(imported from commit 3a35953206906044947e3447c7ab8fca78a76e1e)
2015-08-19 21:07:22 -07:00
Luke Faraone
0d7f749ad8
Run provision.py as a provisioner.
...
This way, vagrant up for the first time will set up the developer's VM
correctly
(imported from commit cee17b15e2f53a1b6de1f1ee16dbad00071ba55c)
2015-08-19 21:07:22 -07:00
Luke Faraone
e2d416ad8b
Clean up additional comments in the Vagrantfile.
...
I'll fixup this before publication.
(imported from commit a57cc240c6b57da4423749c13aa72fa63e4812c5)
2015-08-19 21:07:22 -07:00
Luke Faraone
04d3eb33b1
run-dev.py: Reword --interface help text.
...
The old language was confusing because "the interface" could refer to something
like eth0, but in actuality refers to the IP/hostname to listen on.
(imported from commit 4f77d72a4dfcdbe7e7747c6228975aa68dfbe6ac)
2015-08-19 21:07:22 -07:00
Jonathan Dahan
6f77e68622
Add GET /export endpoint, which dumps important tables in json.
...
Meant to be used in tandem with the manage.py import command.
The following sensitive data is scrubbed:
* user api keys
* user password hashes
* stream email keys
* invite-only streams
* messages from invite-only streams
* messages from users from other domains
(imported from commit 8e58dcdcb80ef1c7127d3ab15accf40c6187633f)
2015-08-19 15:31:08 -07:00
Jonathan Dahan
be23e6d189
Ignore generated event_queues.json and .vagrant directory.
...
(imported from commit c499a500cbc9e1354b84ab1a6b7fe859f2509db1)
2015-08-19 13:36:44 -07:00
Yoyo Zhou
6e55b4df8a
Update directory-structure.rst content to fix internal references
...
- Delete references to zilencer
- Replace "local server" references
- Add directories for message views, frontend templates/tests, and docs
(imported from commit 7295835434c17609595399e3aec7f9d565fd6b3d)
2015-08-19 11:52:49 -07:00
Yoyo Zhou
1629e77174
Directory structure generated from pandoc, with formatting fixes
...
(imported from commit d54bb062b641bac0520494f0a2cb151d69018d61)
2015-08-19 11:52:49 -07:00
Yoyo Zhou
127cdf63c6
Add CSS style override for RTD to make tables use word wrapping
...
(imported from commit 29007c052dd7048eaf86388a6a9715fc13f102b5)
2015-08-19 11:52:49 -07:00
Yoyo Zhou
5f74e6e76d
Fix a lint warning in notifications.py caught by newer pyflakes (0.9.1)
...
zerver/lib/notifications.py:353: list comprehension redefines 'msg' from line 336
(imported from commit 094a21616f8fe7ffe05719c6de6449ade5c43517)
2015-08-19 11:43:49 -07:00