Tim Abbott
8905216df5
Automate inclusion of urls.py files for EXTRA_INSTALLED_APPS.
...
By removing this hardcoding of the list of valid extra apps, we make
it a lot easier to add additional pluggable apps to the Zulip
codebase.
2016-04-26 21:39:39 -07:00
Tim Abbott
bf50dd7771
Simplify zilencer urls.py configuration to a single file.
...
The previous separated-out configuration wasn't helping us, and this
makes it easier to make the extra installed applications pluggable in
the following commits.
2016-04-26 21:35:07 -07:00
Tim Abbott
2b30b670e0
Factor out EXTRA_INSTALLED_APPS setting.
2016-04-26 21:28:51 -07:00
Tim Abbott
6e1e4aaef6
postgres-init-db: Add POSTGRES_USER argument.
2016-04-26 15:27:35 -07:00
Tim Abbott
dc772518e7
Don't chown supervisor socket if it doesn't exist.
2016-04-26 15:27:35 -07:00
Tim Abbott
6a3c775842
install: Ensure prod-static/serve is created.
2016-04-26 15:27:35 -07:00
Tim Abbott
bb25b6060e
install: Avoid unnecessarily storing apt key under /root.
2016-04-26 15:07:53 -07:00
Tim Abbott
e9416a9fb2
install: Add PUPPET_CLASSES variable.
2016-04-26 15:06:37 -07:00
Tim Abbott
a9d86a3620
install: Add DEPLOYMENT_TYPE variable.
2016-04-26 15:04:32 -07:00
Tim Abbott
68c6d514e8
install: Add ADDITIONAL_PACKAGES option.
2016-04-26 15:02:28 -07:00
Vladislav Manchev
f5e6176aea
Add custom realm emoji UI to administration page.
2016-04-26 13:15:54 -07:00
Tim Abbott
f5fe2d4bf7
Fix case-insensitive typeahead for emoji.
2016-04-26 13:14:28 -07:00
Tim Abbott
abacd9b2da
Integration guide: Document need to edit urls.py.
2016-04-26 11:50:19 -07:00
Tim Abbott
e4aab64464
Sort webhook integration URL definitions.
...
This will merge conflict with every new integraiton in flight, which
is unfortunate, but will make there be fewer merge conflicts as people
add new webhooks in the future (currently, every pair of new
integrations conflict because folks are adding them all at the end,
whereas after this change, there will only be merge conflicts when
adding two integrations near each other alphabetically).
2016-04-26 11:49:33 -07:00
Vishnu Ks
fe4a03fd01
Move narrowed_msg_list to message_list.js.
2016-04-26 10:25:11 -07:00
Tomasz Kolek
12fc4f047c
test_helpers: Create get_last_message helper.
2016-04-26 09:54:02 -07:00
Tomasz Kolek
5fbda3a9c1
Add codeship integration.
2016-04-26 09:54:01 -07:00
David Payne
8c62a27769
Add teamcity webhook integration.
...
This integration relies on the Teamcity "tcWebHooks" plugin which is
available at
https://netwolfuk.wordpress.com/category/teamcity/tcplugins/tcwebhooks/
It posts build fail and success notifications to a stream specified in
the webhook URL.
It uses the name of the build configuration as the topic.
For personal builds, it tries to map the Teamcity username to a Zulip
username, and sends a private message to that person.
2016-04-26 09:45:26 -07:00
Tim Abbott
672a431fba
Expand documentation on tools/check-py3.
2016-04-25 16:46:46 -07:00
Eklavya Sharma
ae46d425b6
Add info about tools/check-py3 in docs/testing.rst.
...
Fixes #701 .
2016-04-26 03:32:29 +05:30
Vishnu Ks
ae49ad383d
Rename all function on MessageList to all_messages.
2016-04-25 13:45:18 -07:00
Eklavya Sharma
cbba7202e6
Add future and modernize to requirements.txt
...
Also improve tools/travis/setup-py3k in these ways:
* remove sudo
* add --no-deps to pip install
* specify versions in pip install
2016-04-25 09:50:32 -07:00
Eklavya Sharma
1ce2d26679
Prevent check-py3 from failing on no files.
...
Now tools/travis/check-py3 does not fail unexpectedly when there are
no python files in the current directory.
2016-04-25 09:50:32 -07:00
Eklavya Sharma
b4009c28d0
Move py3k and add a travis wrapper for it.
...
Move tools/travis/py3k to tools/check-py3.
Add tools/travis/py3k which calls tools/check-py3.
2016-04-25 09:50:32 -07:00
Eklavya Sharma
101148c49e
Fix typo and formatting in docs.
2016-04-25 20:29:29 +05:30
Tim Abbott
21161a8adb
Add memcached_prefix to .gitignore.
2016-04-22 17:32:44 -07:00
Tim Abbott
74ed9fabd0
Integration guide: Expand instructions on screenshots.
2016-04-21 18:17:26 -07:00
Vishnu Ks
35b0af2852
Move all_msg_list to message_list.js.
2016-04-21 17:46:21 -07:00
Tomasz Kolek
c74483e69e
github_webhook: change double quotes to single quotes for consistency.
2016-04-21 17:04:25 -07:00
Tomasz Kolek
09e40b27c2
github_webhook: throw an exception on unhandled events types.
2016-04-21 17:03:58 -07:00
Tomasz Kolek
fafc9cb742
github_webhook: remove redundant parenthesis.
2016-04-21 17:02:49 -07:00
Tomasz Kolek
43b0cfaebc
github_webhook: Use more one-line pythonic assignments.
2016-04-21 17:00:47 -07:00
Tomasz Kolek
decb686255
github_webhook: factor out is_test_repository function.
2016-04-21 16:57:19 -07:00
Tomasz Kolek
e1079d8475
github_webhook: extract the constants to the top of the file.
2016-04-21 16:56:44 -07:00
Tim Abbott
84e23dd015
Document code copied from Django and then modified.
2016-04-21 14:59:39 -07:00
Tim Abbott
ae047f8551
Fix slightly ugly login page URL of /login?next=/.
2016-04-21 14:59:39 -07:00
Tim Abbott
8a278cbe3a
Switch to using a Zulip version of @login_required.
...
Currently the code is the unmodified Django upstream implementation;
this commit is preparation for modifying it.
2016-04-21 14:59:39 -07:00
Tim Abbott
d9dba5d2c2
deactivate_realm: Improve error handling for unknown realm.
2016-04-21 09:02:00 -07:00
Tim Abbott
c2237c60c0
deactivate_realm: Fix help string.
2016-04-21 09:02:00 -07:00
Tim Abbott
d890011442
Add a script to reactivated deactivated realms.
2016-04-21 09:02:00 -07:00
Tim Abbott
79297898f1
Remove obsolete AppleDeviceToken model.
2016-04-20 21:51:52 -07:00
Tim Abbott
49799440a4
Replace use of django-guardian with fields on UserProfile.
...
As documented in https://github.com/zulip/zulip/issues/441 , Guardian
has quite poor performance, and in fact almost 50% of the time spent
running the Zulip backend test suite on my laptop was inside Guardian.
As part of this migration, we also clean up the old API_SUPER_USERS
variable used to mark EMAIL_GATEWAY_BOT as an API super user; now that
permission is managed entirely via the database.
When rebasing past this commit, developers will need to do a
`manage.py migrate` in order to apply the migration changes before the
server will run again.
We can't yet remove Guardian from INSTALLED_APPS, requirements.txt,
etc. in this release, because otherwise the reverse migration won't
work.
Fixes #441 .
2016-04-20 21:51:52 -07:00
Vishnu Ks
ee39f5009f
Make message_list.js work like the other modules.
2016-04-20 15:29:30 -07:00
Tim Abbott
28d1a3105c
models: Add a __repr__ for Client.
2016-04-20 15:26:51 -07:00
Tim Abbott
552caf661a
Caching: Fix 'update_fields' not being present in .delete()
2016-04-20 15:12:53 -07:00
Tim Abbott
9c56027627
lint: Add CSS lint rule for whitespace after {.
2016-04-20 11:50:01 -07:00
Tim Abbott
a46b5d7bbe
Add lint check for missing whitespace after =.
2016-04-20 11:37:03 -07:00
Tim Abbott
a72385246e
Fix missing whitespace after '=' in python/js code.
2016-04-20 11:36:14 -07:00
David Payne
ece96ef3fe
Jira's "issue created" message should @-notify the assignee.
2016-04-20 10:54:30 -07:00
Tomasz Kolek
82f1cdb085
Add send_webhook_fixture_message command.
...
This tool simplifies the process of producing nice screenshots for
documenting webhook integrations.
Fixes #658 .
2016-04-20 10:45:27 -07:00