Harshit Bansal
5e5bb02e39
bugdown: Remove `make_realm_filters()`.
...
This commit removes `make_realm_filters()` and merges its functionality
in `make_md_engine()` and `maybe_update_markdown_engines()`.
2017-11-15 22:47:11 -08:00
Harshit Bansal
e615a2ab4f
bugdown: Simplify the "opts" parameter of `make_md_engine()`.
2017-11-15 22:47:11 -08:00
Harshit Bansal
e3f2f67d0e
bugdown: Rename `maybe_update_realm_filters()`.
...
This commit renames `maybe_update_realm_filters()` to
`maybe_update_markdown_engines()` which sounds closer
to the semantics.
2017-11-15 22:47:11 -08:00
Umair Khan
98be0cc502
user-groups: Send delete user group event.
...
Fixes #7380
2017-11-15 22:35:43 -08:00
Umair Khan
79f4a7627f
user-groups: Send remove members event.
2017-11-15 22:35:23 -08:00
Umair Khan
cec3f19366
user-groups: Send add members event.
2017-11-15 22:35:23 -08:00
Umair Khan
eb48fab495
user-groups: Send description update event.
2017-11-15 22:35:23 -08:00
Umair Khan
5571122120
user-groups: Send name update event.
2017-11-15 22:35:23 -08:00
Umair Khan
912505317a
user-groups: Send create group event.
2017-11-15 22:35:23 -08:00
Tim Abbott
f02e5b90f6
cross_realm: Use bulk_get_users to fix handling of missing users.
...
This fixes a regression in ae5ba7f4fd
,
where Zulip would 500 if the newly added system bots didn't exist on
the server.
This also fixes a moderate size performance problem where we'd fetch 5
users from memcached or the database in a loop.
2017-11-15 21:24:51 -08:00
Brock Whittaker
f9f0f356be
settings: Add backend storage and interface for night mode.
...
This allows the night mode setting to be stored in the backend.
2017-11-15 16:36:06 -08:00
Tim Abbott
85844107fd
integrations: Remove code for legacy Hubot lozenges.
...
We no longer display the only model anyway.
2017-11-15 14:04:19 -08:00
Steve Howell
dbcc76b996
Fix MissedMessageWorker.
...
This fixes a regression in 25c669df52
.
We were draining the queue in both the superclass and the subclass,
so by the time the subclass started processing events, there were
no events to process. Now the subclass properly uses the events
passed in from the superclass.
2017-11-15 10:26:28 -08:00
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