Tim Abbott
d5f718a3e7
Rename 'Manage Streams' to 'Manage streams'.
2017-01-16 18:00:10 -08:00
Sampriti Panda
196cf4367b
urls: Move /messages/render to POST endpoint
2017-01-13 16:11:51 -08:00
Rafid Aslam
d3ee53bdef
Move endpoints to use stream_id instead of stream_name in their URLs
...
- Change `stream_name` into `stream_id` on some API endpoints that use
`stream_name` in their URLs to prevent confusion of `views` selection.
For example:
If the stream name is "foo/members", the URL would be trigger
"^streams/(?P<stream_name>.*)/members$" and it would be confusing because
we intend to use the endpoint with "^streams/(?P<stream_name>.*)$" regex.
All stream-related endpoints now use stream id instead of stream name,
except for a single endpoint that lets you convert stream names to stream ids.
See https://github.com/zulip/zulip/issues/2930#issuecomment-269576231
- Add `get_stream_id()` method to Zulip API client, and change
`get_subscribers()` method to comply with the new stream API
(replace `stream_name` with `stream_id`).
Fixes #2930 .
2017-01-12 15:23:31 -08:00
Rafid Aslam
156eefacc2
API: Add `json/get_stream_id` endpoint
...
Add `json/get_stream_id` endpoint, used to convert `stream_name`
into `stream_id`.
2017-01-12 15:23:31 -08:00
Tomasz Kolek
053feb947c
Change way of handling comments event in jira integration.
2017-01-12 14:54:32 -08:00
Tomasz Kolek
9a60220c37
Refactor jira integration.
...
Remove events that don't exist.
Move handling issue events to separate function.
Make formatting strings using format function.
Change camelCase variable name convetion to using underscores.
Make unknown events error more clear.
Add issue_event_type_name param to all fixtures.
2017-01-12 14:54:32 -08:00
Rishi Gupta
5d10124830
test-signup: Change failed signup test to be on an open realm.
...
Previously, test_failed_signup_due_to_restricted_domain used a realm with
restricted domains, but also with invite_required = True. We didn't have a
test that tested for a failed signup in an open realm with restricted
domain, so edited test_failed_signup_due_to_restricted_domain to test for
that.
2017-01-11 15:26:47 -08:00
Tomasz Kolek
e6ab93a4c4
Fix Bitbucket2 integration fulfilled event type.
...
The "merged" event type was apparently renamed to "fulfilled".
2017-01-11 14:18:07 -08:00
Tomasz Kolek
f0cc6d8029
Adjust Taiga integration to new payloads format.
...
Update all payloads.
Remove move task between User stories events.
Update code to handle new payload format.
Fixes : #2318 .
2017-01-11 14:17:44 -08:00
Rishi Gupta
494c1a2b55
Remove unnecessary uses of Realm.domain in zerver/tests.
2017-01-09 11:26:08 -08:00
Tim Abbott
f3b5683e77
views: Rename __init__.py to zerver.views.registration.
...
This completes the cleanup process of eliminating functions in the
root zerver/views/__init__.py module.
2017-01-08 16:21:15 -08:00
Rishi Gupta
38c2dc8790
Change settings.SYSTEM_ONLY_REALMS to use Realm.string_id.
2017-01-06 19:45:08 -08:00
Rishi Gupta
89af775e03
test_classes: Remove domain from ZulipTestCase.register.
2017-01-06 19:45:08 -08:00
Rishi Gupta
021c65a656
test_classes: Remove domain from ZulipTestCase.submit_reg_form_for_user.
2017-01-06 19:45:08 -08:00
Harshit Bansal
ceb636dbd9
Manage allowed domains from admin settings.
...
Fixes : #1867 .
2017-01-06 12:03:31 -08:00
Rishi Gupta
3514040d2e
tests.py: Rename FindMyTeamTestCase to TestFindMyTeam.
2017-01-06 10:42:28 -08:00
Rishi Gupta
fdb47fc5ee
find my team: Canonicalize URL route.
...
Change URL endpoint to use underscores, not dashes, and change name to use
the full path to the view function. See e.g. /create_realm.
2017-01-06 10:42:28 -08:00
Rishi Gupta
0039689acb
find team flow: Update text in emails and templates.
2017-01-06 10:42:28 -08:00
Rishi Gupta
8d038eef2f
digest emails: Move the subject line to a templates/ file.
...
To match how we do the subject line for the emails in followup/ and
invitation/.
2017-01-06 10:42:28 -08:00
Rafid Aslam
88ec999cf3
tests: Bump up max length queries in test_bulk_message_fetching().
...
Bump up max length queries in `test_bulk_message_fetching()` to 11
in `zerver/tests/test_messages.py` to avoid test failing when run
this test alone.
Fixes #3087 .
2017-01-05 17:30:47 -08:00
Steve Howell
99b5c00ec1
Add stream id to message dictionary.
...
We now pass the stream id in the messages we send to
our clients.
2017-01-05 15:32:45 -08:00
Jackson
032b5e9db9
integrations: Add webhook code, API endpoint, and tests for Delighted.
2017-01-05 10:47:30 -08:00
Vamshi Balanaga
1b2472b5cb
integrations: Modify solano labs integration.
...
This adds support for the "running" status and adds a test fixture.
2017-01-05 10:19:32 -08:00
Rishi Gupta
2b0a7fd0ba
Rename models.get_realm_by_string_id to get_realm.
...
Finishes the refactoring started in c1bbd8d
. The goal of the refactoring is
to change the argument to get_realm from a Realm.domain to a
Realm.string_id. The steps were
* Add a new function, get_realm_by_string_id.
* Change all calls to get_realm to use get_realm_by_string_id instead.
* Remove get_realm.
* (This commit) Rename get_realm_by_string_id to get_realm.
Part of a larger migration to remove the Realm.domain field entirely.
2017-01-04 17:12:23 -08:00
Umair Khan
f208813ea3
Add Find My Team feature.
2017-01-03 21:33:42 -08:00
Vamshi Balanaga
234310bfd1
integrations: Add webhook code, API endpoint, and tests for solano labs.
2017-01-03 20:18:34 -08:00
Rishi Gupta
cf762eaf84
Change X.realm.id to X.realm_id across codebase.
...
This makes it more clearly the pattern in the Zulip codebase, and thus
decreases the risk of accidentally doing database queries.
2017-01-03 16:46:26 -08:00
Rishi Gupta
130f981901
messages.send_message_backend: Take a realm_str instead of a domain.
2017-01-03 16:46:15 -08:00
Rishi Gupta
c6e12e74be
Change domain to realm_id in bugdown and realm filter dicts and caches.
2017-01-03 16:25:20 -08:00
Rishi Gupta
50d67d9a13
test_messages: Add warning about running test_bulk_message_fetching alone.
...
Running this test fails if it is not run as a part of the larger
test_messages suite. This commit adds a comment to that effect.
2017-01-03 16:25:20 -08:00
Jackson
29ce856843
Clean PUT /users/me/pointer to POST /users/me/pointer.
2017-01-03 15:43:11 -08:00
Jackson
0a9869868c
Clean PUT /users to POST /users
2017-01-03 15:40:00 -08:00
Jackson
6ec8abab86
Clean PUT /default_streams to POST /default_streams.
2017-01-03 15:40:00 -08:00
anirudhjain75
5f4a822655
mypy: Annotate zerver/tests/test_decorators.py.
2017-01-02 08:59:49 -08:00
Tim Abbott
8d66a4f53f
test_signup: Fix test failure due to user docs include/.
2016-12-30 17:46:55 -08:00
Umair Khan
b6cb6a4f0c
ldap: Inherit FakeLdap exceptions from ldap.
2016-12-30 16:55:06 -08:00
Jackson
aeac3848c8
integrations: Add webhook code, API endpoint, and tests for HelloSign.
2016-12-30 14:19:31 -08:00
Prabod Rathnayaka
6f087e468e
Add setting hiding private message content in desktop notifications.
...
Tweaked by tabbott to fix a refactoring bug, set the default to True,
fix the real-time sync, and add tests for this.
Fixes #2355 .
2016-12-30 14:10:34 -08:00
Rishi Gupta
9e5325a164
Add /stats page with basic stats graph.
...
Adds a new url route and a new json endpoint.
2016-12-29 14:20:13 -08:00
Juan Verhook
cfa9c2eaf2
mypy: Update zerver directory to use Text
2016-12-29 09:12:15 -08:00
Harshit Bansal
9931ad1324
Loosen realm filter pattern validator to support Git commit IDs.
...
Specify, we no longer require a prefix.
Also improves the clarity of the examples in the documentation.
Fixes : #2696 .
2016-12-27 20:31:08 -08:00
Tim Abbott
39f0ffdedd
Move static/third/gemoji to static/generated/emoji.
...
Fixes #1153 .
2016-12-27 20:16:23 -08:00
Tomasz Kolek
56f530331d
Add default topics mechanism to stripe integration.
...
Fixes : #2586 .
2016-12-27 16:27:54 -08:00
paxapy
8e7fa6b2de
emoji: Add add_emoji_by_admins_only realm setting.
...
This setting controls whether normal users can add realm emoji.
Fixes #978 .
2016-12-27 15:46:14 -08:00
Igor Tokarev
1238d08f72
emoji: Add emoji author data in API.
2016-12-27 15:42:21 -08:00
Igor Tokarev
ffa724f8fc
emoji: Add author field to RealmEmoji table and track.
2016-12-27 15:42:04 -08:00
Rishi Gupta
717afcb408
Remove calls to get_realm in preparation for its deprecation.
...
Also removes two calls to email_to_domain.
2016-12-26 17:53:32 -08:00
Rishi Gupta
e9a6bd1986
Change register/<domain>/ URL route to register/<realm_str>/.
2016-12-26 17:51:00 -08:00
Rishi Gupta
d6e7014f06
Refactor views.create_homepage_form into its callers.
...
The indirection is no longer that useful, and obscures Django's conventional
style for calling a form.
2016-12-26 17:50:23 -08:00
Rishi Gupta
a87e653c32
Refactor models.completely_open to take a Realm instead of a domain.
2016-12-26 17:49:58 -08:00