Tim Abbott
680d30adc2
docs: Add comments linking to new events doc.
2017-02-11 16:59:28 -08:00
Tim Abbott
eae125e72f
docs: Clarify transifex documentation.
2017-02-11 16:57:50 -08:00
Robert Hönig
cbac3fcd64
Merge German translation docs.
...
Merge the German translation docs 'general-notes.md' and
'special-terms.md' into one translation guide 'german.md'.
2017-02-11 16:42:57 -08:00
Rafid Aslam
241794c586
Change "Reply" to "Quote and reply" in message popover
...
Change "Reply" in message popover to "Quote and reply"
which is reply and quotes the selected message.
Fixes #3302 .
2017-02-11 14:51:55 -08:00
Rishi Gupta
eee5cb5197
analytics: Add tests for views code.
2017-02-11 14:51:01 -08:00
Rishi Gupta
d6ce017a58
analytics: Minor cleanup of views.py.
2017-02-11 14:51:01 -08:00
Rishi Gupta
480fc0874b
analytics: Break ties deterministically in sort_client_labels.
2017-02-11 14:51:01 -08:00
Tommy Ip
c7e33c6c9f
optimization: Use Python to test management commands.
...
The original test was written in shell script which launches a new
django instance for every tests. By doing it in Python, we avoid
the overhead and reduce the test time to <1 second.
Fixes #3620 .
2017-02-11 13:48:16 -08:00
Elliott Jin
4092aab620
unread: Refactor to move DOM element updates into UI layer.
2017-02-11 08:36:39 -08:00
Elliott Jin
ba449d7c23
unread: Refactor to move server calls into UI layer.
2017-02-11 08:36:39 -08:00
Elliott Jin
ef7d4e417c
unread: Refactor to move bankruptcy modal into UI layer.
2017-02-11 08:36:39 -08:00
Elliott Jin
d233f617dd
muting: Refactor to move side effects into UI layer.
2017-02-11 08:36:39 -08:00
Tim Abbott
46226bad21
presence: Fix mypy errors in new feature.
2017-02-10 23:57:28 -08:00
Tim Abbott
eeca69cb4b
mypy: Clean up more optional types.
2017-02-10 23:53:44 -08:00
Tim Abbott
aee81b702c
add_subscriptions_backend: Cleanup type of principals.
2017-02-10 23:53:44 -08:00
Tim Abbott
c9a782ff75
Simplify zerver/views/users.py:get_stream_name.
2017-02-10 23:53:44 -08:00
Tim Abbott
2bba7755e3
decorator: Improve user agent parsing.
2017-02-10 23:53:44 -08:00
Tim Abbott
bc63407e6a
decorator: Cleanup api_key_legacy code readability.
2017-02-10 23:53:44 -08:00
Tim Abbott
b81fd407e8
mypy: Fix several Optional typing errors.
2017-02-10 23:53:44 -08:00
Tim Abbott
6d00d4d2b1
mypy: Clean bugdown use of Optional.
2017-02-10 23:53:44 -08:00
Tim Abbott
e746868375
mypy: Fix optional typing usage in rendering code path.
2017-02-10 23:53:44 -08:00
Tim Abbott
4e20b622ad
bugdown: Remove unused height argument to add_a.
2017-02-10 23:53:44 -08:00
Tim Abbott
9f0c1db430
mypy: clean up strict optional errors in upload.py.
2017-02-10 23:53:44 -08:00
Tim Abbott
2140d2963d
UserPresence: Cleanup confusing to_presence_dict arguments.
2017-02-10 23:53:44 -08:00
Tim Abbott
1c0f65cbec
mypy: Fix some incorrect optional tags.
2017-02-10 23:53:44 -08:00
Tim Abbott
879d8cdca0
mypy: Stop using deprecated --silent-imports.
2017-02-10 23:53:44 -08:00
Tim Abbott
bb5d81281c
mypy: Upgrade to new package name and version 0.571.
...
Fixes #3448 .
2017-02-10 23:53:44 -08:00
Tim Abbott
f944ac8902
mypy: Fix incorrect annotation for by_used_time.
2017-02-10 23:53:44 -08:00
Tim Abbott
650469ead6
mypy: Make zerver/lib/ccache.py support python 3.
2017-02-10 23:53:44 -08:00
Tim Abbott
923f4ddd80
models: Remove nullable property from RealmAlias.realm.
2017-02-10 23:53:44 -08:00
Tim Abbott
ffc24e9f66
api: Add bindings for new get_presence endpoint.
2017-02-10 23:52:56 -08:00
Tim Abbott
71af0f7e2e
Add endpoint to fetch presence data for a single user.
...
This is an experimental API subject to its data format being changed.
Fixes #3638 .
2017-02-10 23:52:56 -08:00
Tim Abbott
ac8b661a8f
presence: Extract get_status_dicts_for_query.
2017-02-10 23:52:56 -08:00
Tim Abbott
080182ad17
populate_db: Fix broken initial presence data.
...
Apparently, the initial data just set everyone to "API" in a broken way.
2017-02-10 23:52:32 -08:00
Steve Howell
2e07533b4e
Add compose.update_email().
...
When we get notified of an email change and the compose box is
open for PMs, we should update the email in the compose box.
This helper will be useful when we start handling such events.
2017-02-10 21:57:50 -08:00
Steve Howell
f56d3807cc
Add people.update_email_in_reply_to() helper.
...
This will be used for live updating.
2017-02-10 21:57:50 -08:00
Steve Howell
f8d59c8108
Make compose replies for PMs more robust.
...
We now use user_ids from the message to generate the
reply_to more dynamically.
2017-02-10 21:57:50 -08:00
Steve Howell
37509da20d
Display sender's most current email in message popover menu.
2017-02-10 21:57:50 -08:00
Steve Howell
ffd45971de
Use user ids when processing recent PMs.
2017-02-10 21:57:50 -08:00
Steve Howell
12c4478a3f
Use user ids in JS-side "pm-with" filter.
...
We now convert our pm-with search operand to a list of user ids
for matching against messages, rather than using emails. On the
message side we look at user ids from display_recipient.
2017-02-10 21:57:48 -08:00
Brock Whittaker
c2e9690e34
Add line break to prevent image inline-block'ing.
...
The image in the page will display next in line to the previous
paragraph which is not how it should look. This adds a <br> to
make the image appear to work as a block element and go down to
the next line without corrupting the <ol> it lives within.
2017-02-10 21:46:09 -08:00
Brock Whittaker
993189f2a3
Remove link to /#settings in header.
...
This removes the linke to /#settings in the "Change your settings"
header at the top of the /help/change-your-settings page.
2017-02-10 21:46:09 -08:00
Brock Whittaker
5f6632c9e9
Add "back to home" button at top of help pages.
...
This adds a button that will bring a user back to the home
of the help section "/help".
2017-02-10 21:46:09 -08:00
Feorlen
74ca33d015
Describe the WIP PR process in Zulip overview doc.
...
Add new text in the Ways to contribute section to encourage early PRs.
2017-02-10 21:42:38 -08:00
Tim Abbott
7e8d3d9a46
populate_db: Add --extra-bots option to create extra bots.
2017-02-10 17:40:45 -08:00
saisrivathsa
b867ac3496
Extract zerver/lib/events.py from actions.py with event registration.
...
This moves do_events_register, fetch_initial_state_data and friends to
a new file.
Modified significantly by tabbott for correctness and to remove unused
imports.
Fixes #3635 .
2017-02-10 16:50:43 -08:00
Tim Abbott
0564bebdbe
test-migrations: Fix inverted check.
2017-02-10 16:41:04 -08:00
Tim Abbott
1fbc3b508a
test-migrations: Switch to --check from deprecated -e.
2017-02-10 16:08:13 -08:00
Umair Khan
c14e981e00
testing: Conform runner to Django architecture.
...
In Django, TestSuite can contain objects of type TestSuite as well
along with TestCases. This is why the run method of TestSuite is
responsible for iterating over items of TestSuite.
This also gives us access to result object which is used by unittest
to gather information about testcases.
2017-02-10 16:01:43 -08:00
Umair Khan
e5a16ceb0a
testing: Use failfast instead of fatal_errors.
...
`failfast` has the same meaning as `fatal_errors` in Django's test
runner.
2017-02-10 16:01:43 -08:00