Greg Price
058d76f5ff
avatar_hash: Update a comment to reflect the current code.
...
Also move a couple of comments inside the functions they describe,
because they're about the implementation of the functions rather
than their interface.
2017-06-26 15:15:32 -07:00
Eeshan Garg
708f3a4bb1
lib/integrations: Stop rendering HTML files.
...
Now that all of our integrations/webhooks docs have been migrated
to Markdown, we no longer need to render HTML.
2017-06-26 12:30:04 -04:00
Eeshan Garg
4ad951f256
integrations/perforce: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
ed388ed320
integrations/redmine: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
53c1a53120
integrations/jenkins: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
9115be0e9e
integrations/trello-plugin: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
c17600e3be
integrations/rss: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
421c71919c
integrations/mercurial: Use create-stream macro.
2017-06-26 12:30:04 -04:00
Eeshan Garg
9dde906115
integrations/git: Use macros and improve Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
b60c95d971
integrations/svn: Use Markdown macros.
2017-06-26 12:30:04 -04:00
Eeshan Garg
b9ac92c1a0
integrations/openshift: Use Markdown macros.
2017-06-26 12:30:04 -04:00
Eeshan Garg
31fa2f7c6d
integrations/hubot: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
3eeb90c599
integrations/puppet: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
fc0d7ed882
integrations/phabricator: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
169d7393a6
jira-plugin: Use create-stream macro and improve Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
70448a9c65
integrations/email: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Eeshan Garg
5fa71a4369
integrations/asana: Migrate docs to Markdown.
2017-06-26 12:30:04 -04:00
Vishnu Ks
50008fe309
actions.py: Create internal_send_private_message function.
2017-06-25 11:23:45 -04:00
Abhijeet Kaur
c42d935be8
bots: Move "EmbeddedBotHandler" class to "zerver/lib/bot_lib.py" file.
...
This would keep embedded classes for zulip at one place, that is, in
"zerver" directory. This also fixes break in PyPI package for bindings.
2017-06-21 16:01:16 -04:00
Sampriti Panda
5dc053d6fb
bots: Add validation to add_bot_backend to prevent empty short names
...
Fixes #5487
2017-06-21 10:11:08 -04:00
Harshit Bansal
dfbf8b8086
bugdown: Remove shortname mention syntax.
...
We used shortnames for mentioning users before we had autocomplete
feature. Since we now have autocomplete typeahead, this syntax is
no more useful and just causes problems. This commit removes the
shortname mention syntax.
Fixes : #4189 .
2017-06-19 16:57:59 -04:00
Jack Zhang
af3b7d4c98
message-edit: Patch html tags after edits on new lines.
2017-06-19 16:43:11 -04:00
Aditya Bansal
f32c1892ff
preview.py: Fix error raised on uploading file with unicode filename.
2017-06-19 14:58:44 -04:00
Cory Lynch
6255636923
Support special characters for code block languages.
...
Fixes #5412
2017-06-19 06:53:25 -04:00
Cory Lynch
b4419528f7
Update narrow.py, messages.py to support is:unread.
2017-06-19 06:51:13 -04:00
vaibhav
42af09663d
validators: Add check_url validator.
...
This just uses Django's existing validator, and reformats its
interface to work with has_request_variables.
2017-06-15 15:03:26 -07:00
Tim Abbott
0904d61e96
integrations: Remove compatibility code for HTML format docs.
...
This fixes a coverage error in Travis CI caused by this code no longer
being used.
2017-06-15 12:34:46 -07:00
Abhijeet Kaur
af7e08acb0
bots: Add UI to view bot types of existing bots in "Your bots".
...
Tweaked by tabbott for more standard internationalization.
2017-06-15 10:08:31 -07:00
kunall17
d8310724b6
Use absolute URLs in GCM push notifications.
...
This will eventually allow us to simplify the logic required for the
mobile apps processing GCM notifications.
2017-06-15 03:56:59 -07:00
Harshit Bansal
7950f82f27
realm_emoji: Make sure that a deactivated realm emoji can't be used.
...
A deactivated realm emoji should neither be accepted further as a
reaction nor its further occurences in a message be rendered as an
emoji. However, all the old occurences should continue to render
normally.
2017-06-15 02:59:57 -07:00
Aditya Bansal
914ab1040d
integrations/codebase.html: Migrate to Markdown.
2017-06-13 16:32:00 -07:00
Eeshan Garg
f1c209b38d
lib/integrations: Stop passing kwargs as positional args to super.
2017-06-13 15:33:22 -07:00
Eeshan Garg
84da473da5
webhooks/semaphore: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
902ae31e15
webhooks/deskdotcom: Migrate docs to Markdown.
2017-06-13 15:30:35 -07:00
Eeshan Garg
32550159de
github_webhook: Use Integration.stream_name as recommended stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
c3c004743c
github/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
9cefdb9ed2
bitbucket/doc.md: Use Integration.stream_name as default stream.
2017-06-13 15:30:35 -07:00
Eeshan Garg
db09913f38
lib/integrations: Add stream_name attribute to Integration.
...
Instead of using the name of the integration as a recommended
stream name in its documentation, the Integration object now
has a dedicated attribute stream_name to explicitly specify a
recommended stream name for when it is different than the name
of the integration itself.
2017-06-13 15:30:35 -07:00
Umair Khan
8660e002bb
Django 1.11: Upgrade parallel test runner.
...
In Django 1.11, args argument of run_subsuite function is a tuple of
length 4. The new argument is the test runner class which we do not
need because we run tests using our own version of the test runner.
2017-06-13 15:04:04 -07:00
Umair Khan
1e9c87855c
Django 1.11: is_authenticated is now a property.
2017-06-13 15:04:04 -07:00
Steve Howell
b5ebdc7926
migrations: Add create_if_not_exist() helper.
...
This replaces a function that was on longer in use. We need
this helper for our old version of postgres.
2017-06-13 13:58:58 -07:00
Rishi Gupta
dbac262509
hotspots: Change hotspots to have a name and a description.
2017-06-13 12:59:33 -07:00
Aditya Ramesh
a77aa79da9
emails: Add html versions of emails that do not have them.
...
Fixes #4691 .
2017-06-12 23:02:28 -07:00
Rishi Gupta
1f77a0cdee
confirmation: Remove Confirmation.objects.send_confirmation.
...
I think it makes sense to wrest the email sending from confirmation, now
that we have a clean email-sending interface in send_email. A few other
reasons:
* send_confirmation is get_link_for_object followed by send_email, but those
two functions have no arguments in common.
* Sending email through confirmation obfuscates the context dict, and is a
relatively complicated piece of the codebase anyone trying to deal with
the email system has to understand.
* The three emails previously being sent through confirmation don't have
that much in common, other than that they happen to have a confirmation
link in them.
The .split('/')[-1] in registration.py is a hack, but a hack used several
places in the codebase, so maybe one day get_link_for_object will also
return the confirmation_key.
2017-06-12 23:02:28 -07:00
Rishi Gupta
e30211a524
confirmation: Remove custom_body argument from send_confirmation.
2017-06-12 23:02:28 -07:00
Rishi Gupta
9a02739008
emails: Remove invitation_mit.
2017-06-12 23:02:28 -07:00
Rishi Gupta
215568aae2
actions.py: Remove transaction.atomic from do_start_email_change_process.
...
Don't think it's necessary?
2017-06-12 23:02:28 -07:00
vaibhav
dbc56e29a5
bots: Add simple flask server for running contrib bots.
2017-06-12 22:08:44 -07:00
Steve Howell
e3c6c22269
Optimize push_notifications.response_listener().
...
We were needlessly getting a UserProfile object out of cache,
when we only needed the user_id.
2017-06-10 10:43:57 -07:00
Steve Howell
549a1626d9
Optimize get_recipient_user_profiles().
...
For the fairly rare case that a user sends messages to themselves,
we now only call get_user_profile_by_id() once.
2017-06-10 10:43:57 -07:00