Steve Howell
ae5ba7f4fd
Add a couple cross-realm bots.
...
These are new:
new-user-bot
emailgateway
Our cross-realm bots are hard coded to have email addresses
in the `zulip.com` domain, and they're not part of ordinary
realms.
These have always been cross-realm, but new enforcement in the
frontend code of all messages having been sent by a known user means
that it's important to add these properly.
2017-11-14 16:02:19 -08:00
Vishnu Ks
36f29764cb
emails: Add option to forward mails send in dev env to external email.
...
Fixes #7085 .
2017-11-14 15:27:29 -08:00
Vishnu Ks
d2555e8769
api: Add support to change name of default stream groups.
2017-11-14 14:41:42 -08:00
Vishnu Ks
2af249dd5d
api: Add description attribute to default stream group.
2017-11-14 14:41:42 -08:00
Vishnu Ks
f45ba7de93
api: Pass group id instead of name to default stream group api.
2017-11-14 14:41:42 -08:00
Tim Abbott
a86968cd44
landing_nav: Fix missing login_link_disabled check.
...
This caused login links to incorrectly appear on the zulipchat.com
homepage.
2017-11-13 17:07:17 -08:00
Umair Khan
ad8f5650a3
user-groups: Generate test data of user groups.
2017-11-13 13:08:15 +05:00
derAnfaenger
25bf15a3c9
bots: Use non-generic exception for state key removal.
2017-11-10 18:56:26 -08:00
derAnfaenger
8fccf36246
bots: Wrap StateError exceptions around BotUserData exceptions.
2017-11-10 18:56:26 -08:00
derAnfaenger
d707e3bc1d
bots: Add USER_STATE_SIZE_LIMIT setting.
2017-11-10 18:56:26 -08:00
derAnfaenger
545c73c79e
bots: Rename StateHandlerError to StateError.
2017-11-10 18:54:54 -08:00
derAnfaenger
71372610e3
bots: Validate state size limit directly in set_bot_state().
2017-11-10 18:54:39 -08:00
derAnfaenger
6c543d1280
bots: Make StateHandler test more accurate.
2017-11-10 18:45:52 -08:00
Tim Abbott
54aa87fba3
api: Migrate to using the new version of the API site.
2017-11-10 17:56:22 -08:00
Tim Abbott
a23378a304
check_short_string: Verify string before checking length.
...
While the previous implementation was correct, this should give better
error messages.
2017-11-10 16:37:43 -08:00
Vishnu Ks
f44b60a150
Implement API for default stream groups.
2017-11-10 16:05:36 -08:00
Eeshan Garg
9c2cab50ca
test_docs: Verify that all of our integrations/ docs are rendered.
...
Fixes #7360 .
2017-11-10 20:11:55 -03:30
derAnfaenger
032fad2cf1
queue_processors: Add error coverage for MessageSenderWorker.
2017-11-10 13:23:53 -08:00
derAnfaenger
d9571698f2
queue_processors: Add coverage for get_active_worker_queues().
2017-11-10 13:23:53 -08:00
derAnfaenger
7777a81dbf
queue_processors: Add full coverage for SlowQuery.
2017-11-10 13:23:53 -08:00
Steve Howell
b6ebead827
tests: Add test_raw_unread_stream().
2017-11-10 10:50:57 -08:00
Steve Howell
23f7615adb
tests: Add test_raw_unread_huddle().
2017-11-10 10:50:57 -08:00
Steve Howell
db8c69ff03
tests: Add test_raw_unread_personal().
2017-11-10 10:50:57 -08:00
Steve Howell
5a99fa4990
tests: Extract GetUnreadMsgsTest.mute_(stream,topic) helpers.
...
This also introduces the GetUnreadMsgsTest class, and it fixes
the topic_name field that was accidentally hard coded in mute_topic.
2017-11-10 10:50:57 -08:00
Steve Howell
c799ec0ca6
minor: Inline get_unread_message_ids_per_recipient().
...
This method was only used in one test.
2017-11-10 10:50:57 -08:00
Umair Khan
4c6a376fd5
user-groups: Add groups to page_params.
2017-11-09 17:35:46 -08:00
Umair Khan
b1603d289c
user-groups: Add update members API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:37 -08:00
Umair Khan
a1b894a786
user-groups: Add delete API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:30 -08:00
Umair Khan
eeaf0f1742
user-groups: Add edit API endpoint.
...
Significantly modified by tabbott to fix some bugs.
2017-11-09 17:35:22 -08:00
Umair Khan
1bbe84af49
user-groups: Add create API endpoint.
...
Significantly modified by tabbott for better security structure.
2017-11-09 17:26:14 -08:00
derAnfaenger
7798aae6ca
queue processors: Add full coverage for DigestWorker.
2017-11-09 16:01:24 -08:00
derAnfaenger
dac44dda92
Cover users without activity record in email queue digest tests.
2017-11-09 16:01:24 -08:00
derAnfaenger
970e8c5df2
queue processors: Add full coverage for FetchLinksEmbedData.
2017-11-09 16:01:24 -08:00
Tommy Ip
bcd575d8de
bugdown: Rewrite links to local server to be relative links.
...
Fixes #7247
2017-11-09 15:59:31 -08:00
Tim Abbott
982bd9c38d
Fix push notifications for soft-deactivated users.
...
Previously, these push notification events were being generated, but
then ignored in handle_push_notification because there was no
user_message object.
2017-11-09 15:52:29 -08:00
derAnfaenger
3ac09b3e9b
queue processors: Add coverage for SlowQueryWorker.
2017-11-09 15:20:40 -08:00
Tim Abbott
64b4d83038
push_notifications: Improve debugging of lookup problems.
...
We're having this error being thrown often, and don't know why.
2017-11-09 15:20:24 -08:00
Steve Howell
531a3ee9de
refactor: Fix parse.quote(force_str(s)) calls in bugdown.
2017-11-09 10:43:20 -08:00
Steve Howell
786e90d774
Removed unused imports of force_bytes.
2017-11-09 10:32:14 -08:00
Steve Howell
50e3285a0d
tests: Remove force_text() in test_messages.py.
2017-11-09 10:27:30 -08:00
YJDave
de67bf81fd
org settings: Allow users to delete their message.
...
Fixes #7049 .
2017-11-09 10:20:34 -08:00
rht
5937141264
Remove usage of six.moves.string_types.
2017-11-09 10:00:00 -08:00
Harshit Bansal
65838bb825
email_gateway: Disable code block processor for email gateway.
...
Generally emails are not written with markdown in mind and hence
sometimes render in strange ways. This commit fixes a particular
issue that was causing whitespace before paragraphs to be treated
as code block due to which email content was being rendered in a
box that scrolls in right direction a lot.
Fixes : #7045 .
2017-11-09 09:56:35 -08:00
derAnfaenger
19bc55aa45
Fix various typos.
...
The typos and their corrections were found with the
aid of https://github.com/lucasdemarchi/codespell .
2017-11-09 16:26:38 +01:00
rht
04f4f7166c
zerver/tests: Use python 3 syntax for typing.
...
This patch was extracted by tabbott for just the files with no open
PRs modifying them.
2017-11-08 12:50:27 -08:00
Tim Abbott
5703b38ffb
api: Move usage instructions to their own page.
2017-11-08 10:29:24 -08:00
Eeshan Garg
7c113f0447
api-docs: Render api_url in /api docs.
...
In templates/zerver/api/main.html, since the current context isn't
passed to render_markdown_path when rendering an article,
render_markdown_path doesn't have the context to render values such
as api_url. This commit makes sure that it does by passing a dict
called api_uri_context to render_markdown_path when rendering an
article.
2017-11-08 01:29:49 -03:30
Steve Howell
ae0b27a7ed
Extract messages_for_ids.
2017-11-07 17:48:27 -08:00
Steve Howell
47c63217cc
tests: Add test_include_history().
...
Before this test, we weren't really testing the logic to
get flags from UserMessage.
2017-11-07 17:48:27 -08:00
Steve Howell
8616a4ebc5
Use client_gratavar=True for users on in page_params.
...
This change affects realm_users and realm_non_active_users.
Note that we still send full avatar urls in realm_user/add
events, so apply_events has to do something mildly hacky to
turn the avatar_url to None in that case.
Fixing the event is probably not worth the trouble, as single
urls are not bandwidth hogs; we only need this optimization
for bulk data.
2017-11-07 16:38:14 -08:00