Tim Abbott
e1c1f96f9e
zilencer: Eliminate submit_feedback indirection.
2017-03-06 00:01:57 -08:00
Tim Abbott
ed5b76f566
zilencer: Move feedback code to zerver/lib/feedback.
2017-03-06 00:01:57 -08:00
Tim Abbott
1f9d93bc96
submit_feedback: remove unused domainish variable.
2017-03-06 00:01:57 -08:00
Tim Abbott
9a08ef5545
zilencer: Remove FEEDBACK_TARGET forwarding logic.
...
This feature hardcoded zulip.com, and never really made much sense
("feedback" should generally go to the local server administrator, not
to the Zulip development community).
2017-03-06 00:01:57 -08:00
Tim Abbott
69061e6db4
zilencer: Remove obsolete lookup_endpoints_for_user endpoint.
...
This endpoint was part of the same obsolete system as
desktop_sso_dispatch.
2017-03-06 00:01:56 -08:00
Tim Abbott
9e8023843a
zilencer: Remove obsolete desktop_sso_dispatch.
...
This feature has been obsolete since when Zulip was released as open
source software, since it's purpose was to avoid putting a "server
url" prompt in the desktop app, and now that prompt is required
anyway.
2017-03-06 00:01:47 -08:00
Eeshan Garg
70df1f5829
new-feature-tutorial: Recommend updating user documentation.
...
Fixes : #3876
2017-03-05 23:04:56 -08:00
Tim Abbott
89eb7636ba
remove_push_device_token: Remove unused request argument.
2017-03-05 22:01:28 -08:00
Tim Abbott
657dfcbddc
push: Move remove_push_device_token to library.
2017-03-05 19:15:17 -08:00
Tim Abbott
c0ad9c02fd
push: Extract validate_token helper function.
2017-03-05 19:15:17 -08:00
Tim Abbott
271bd5a282
push: Move add_push_device_token to library.
2017-03-05 19:15:16 -08:00
Tim Abbott
410c0626a6
push: Pass apple alert via the zulip dict.
...
This completes the process of simplifying the interface of the
send_*_push_notification functions, so that they can effectively
support a push notification forwarding workflow.
2017-03-05 18:37:00 -08:00
Tim Abbott
fc192d6b3b
push: Don't pass a UserProfile into send_apple_push_notification..
2017-03-05 18:37:00 -08:00
Tim Abbott
393c4d2eaa
push: Don't pass a UserProfile into _do_push_to_apns_service.
2017-03-05 18:37:00 -08:00
Tim Abbott
53c9e3b4ca
push: Don't pass a full UserProfile into APNsMessage.
2017-03-05 18:37:00 -08:00
Tim Abbott
c8bfd568bc
push: Pass devices list into send_apple_push_notification.
2017-03-05 18:36:58 -08:00
Tim Abbott
0ddaf5c610
push: Pass reg_ids list into send_android_push_notification.
...
This refactoring is preparation for being able to forward push
notifications to users on behalf of another Zulip server.
The goal is to remove access to the current server's database from the
send_*_push_notification code paths.
2017-03-05 18:36:07 -08:00
Tim Abbott
b1b2d8d2c7
push: Move handle_push_notifications to push_notifications.py.
2017-03-05 18:32:09 -08:00
sinwar
d8ff09cb42
requirements: Upgrade pycodestyle to latest version.
...
Fixes #3927 .
2017-03-05 16:17:04 -08:00
sinwar
6f0564e9f4
python: Fix remaining bare excepts in codebase.
...
Fixes #2862 .
2017-03-05 16:17:04 -08:00
Tim Abbott
08e1759ad0
bots: Replace bare excepts with targeted exceptions.
2017-03-05 16:17:04 -08:00
Steve Howell
a17deb144a
Use data-stream-id in topics popover.
2017-03-05 15:44:44 -08:00
Steve Howell
8e2e406404
refactor: Extract stream_popover.js.
...
This module handles the popovers in the stream list--one for
stream actions and another for topic-specific actions.
The extraction was mostly straightforward, but I did move some
of the code related to the color picker to be more consistent
with how I organized the other click handlers.
2017-03-05 15:44:43 -08:00
Steve Howell
ba49962f9a
refactor: Extract stream_popover_sub().
...
Part of this change moved a click handler from subs.js to
popover.js.
2017-03-05 15:44:43 -08:00
Steve Howell
6630b84dc0
Remove data-stream-name from subscription_settings.
2017-03-05 15:44:43 -08:00
Steve Howell
58b018858e
refactor: Pass in sub to ajaxUnsubscribe().
2017-03-05 15:44:43 -08:00
Steve Howell
761a0beb7e
refactor: Rename variable in show_settings_for().
2017-03-05 15:44:43 -08:00
Steve Howell
e703b0bfdb
refactor: Remove stream_name param in update_stream_color().
2017-03-05 15:44:43 -08:00
Steve Howell
f8819256b0
Use stream_id in update_subscription_properties().
2017-03-05 15:44:43 -08:00
Steve Howell
419a3174f1
Send stream_id in stream/update events.
2017-03-05 15:44:42 -08:00
Steve Howell
0bb1af0fd9
Send stream_id in subscription updates.
2017-03-05 15:26:00 -08:00
Cynthia Lin
0f02031846
user docs: Add user guide for *View messages containing files or links*.
...
Fixes #3754
2017-03-05 14:17:25 -08:00
Steve Howell
95cdc744d9
refactor: Simplify code for renaming streams.
2017-03-05 11:55:09 -08:00
Steve Howell
c5757ac8fe
refactor: Change params for subs.mark_subscribed().
...
We pass in sub instead of stream_name, to support callers that
already do lookups by stream id.
And then we make the second optional argument be subscribers, since
that is all we were using from the old `attrs` argument.
2017-03-05 11:55:09 -08:00
Steve Howell
2f8ecad295
Remove unused get_stream_name().
2017-03-05 11:55:09 -08:00
Steve Howell
4f1108cc27
refactor: Pass in a sub to remove_user_from_stream().
2017-03-05 11:55:09 -08:00
Steve Howell
190b2ab1d3
refactor: Pass in a sub to invite_users_to_stream().
2017-03-05 11:55:09 -08:00
Steve Howell
8a4dee4a80
bug fix: Handle bad streams for compose-invite feature.
...
We now handle missing subs more gracefully when you click on the
link to invite somebody you at-mentioned in a stream message.
2017-03-05 11:55:09 -08:00
Steve Howell
6183a0d8b2
bug fix: Handle invalid streams in would_receive_message().
2017-03-05 11:55:09 -08:00
Steve Howell
4b98ec0a12
bug fix: Handle errors in at-mention typeaheads.
...
If a stream doesn't exist, prevent executing code that leads
to needless warnings.
2017-03-05 11:55:09 -08:00
Steve Howell
434f228135
refactor: Avoid nesting in the compose invite handler.
...
We exit early now if email is undefined, rather than
having a big if statement.
2017-03-05 11:55:09 -08:00
Steve Howell
24631a7405
refactor: Pass in a sub to subs.toggle_pin_to_top_stream().
2017-03-05 11:55:09 -08:00
Steve Howell
32c2dc63f1
refactor: Pass in a sub to subs.toggle_home().
2017-03-05 11:55:09 -08:00
Steve Howell
3a93a7310e
refactor: Pass in a sub to set_stream_property().
...
This helps us localize the legacy need to pass stream names
(vs. ids) to the back end to set stream properties.
2017-03-05 11:55:09 -08:00
Steve Howell
1904871d77
refactor: Start to deprecate get_stream_name().
...
When possible, we should use get_sub_from_target() instead of
get_stream_name(), not only because it often saves a lookup later,
but it also makes it easier to audit the code for name vs. id
bugs. (When you rename a stream, there can be races where you
use the old stream name instead of the more durable stream_id).
This commit handles the easy cases where the caller directly
wanted the sub, not the name.
2017-03-05 11:55:09 -08:00
Steve Howell
df6d644788
refactor: Extract get_sub_for_target().
2017-03-05 11:55:09 -08:00
Steve Howell
a4376efd0f
refactor: De-dup code using subs.sub_or_unsub().
2017-03-05 11:55:09 -08:00
Steve Howell
67e558f905
refactor: Pass in a full sub to sub_or_unsub().
2017-03-05 11:55:09 -08:00
Steve Howell
c38bbea6b9
Add tests for subs.sub_or_unsub().
2017-03-05 11:55:09 -08:00
Steve Howell
8c61bb69cc
casper: Fix flakiness with uploading realm icon.
2017-03-05 11:42:43 -08:00