Vaida Plankyte
9859264d56
docs: Emphasise Travis CI setup in dev env setup docs.
...
Fixes #5266 .
2017-07-31 09:35:29 -07:00
Steve Howell
a4b0ca8f07
unread.js: Remove unused argument to get_counts().
2017-07-31 09:06:29 -04:00
Steve Howell
34e452bcfd
Extract unread.unread_pm_counter().
...
This class is mostly a thin layer over the dictionary, but it
consolidates all the logic to create lookup keys, which have
to follow the convention of being comma-separated, numerically
sorted user_ids.
2017-07-31 08:59:18 -04:00
Steve Howell
19ebf1e23b
bankruptcy: Clear unread counts for mentions.
2017-07-31 08:30:46 -04:00
Steve Howell
bf81782e59
Rename num_unread_for_subject -> num_unread_for_topic.
2017-07-31 08:11:18 -04:00
Steve Howell
fe74e79a17
Rename subject_count -> topic_count.
...
This fixes all names in the JS codebase.
2017-07-31 08:04:20 -04:00
Steve Howell
d1c5cef186
subject -> topic: Fix unread_topic_counter.
...
This changes all internal references of `subject` to be
`topic` instead.
2017-07-31 08:03:55 -04:00
Greg Price
81bfab373d
clean-repo: Revert optimization to .pyc removal.
...
Fixes #5887 . It seems there's some sort of issue in CPython where it
can get confused into thinking a `.pyc` file that's actually stale is
up to date -- perhaps when they date from the same second, say from
the middle of a rebase.
For now, rather than dig further to fix this properly and be sure of
having really done so, just go back to wiping out all `.pyc` files.
The impact is about 1s; that's noticeable when running a short test
file on a quad-core machine (about 8s), but not so much on a more
typical dev machine or on a larger set of tests.
2017-07-30 17:24:55 -07:00
Tim Abbott
0161671981
markdown: Document the new features of our markdown testing system.
...
This and the preceeding commits is significant progress towards
completing #1857 .
2017-07-28 18:31:46 -07:00
Tim Abbott
76c92ad676
markdown: Enforce backend-only-syntax checks in node tests.
...
While we do have some known cases where syntax diverges intentionally,
this change should make it a lot easier to maintain
markdown.contains_backend_only_syntax over time.
2017-07-28 18:17:25 -07:00
Tim Abbott
1360e1c5fd
markdown: Add support for specifying marked output when not matching.
...
This lets us document cases where the syntax is intentionally
different in ways that we don't think are problematic.
2017-07-28 18:13:15 -07:00
Tim Abbott
4b7c23f133
markdown: Rename bugdown-data.json to a more reasonable name.
2017-07-28 17:54:01 -07:00
Tim Abbott
4f4d28477d
markdown: Rename markdown.contains_bugdown.
...
This name was confusing, since "bugdown" doesn't exactly suggest
"backend markdown processor" to people.
2017-07-28 17:51:33 -07:00
Tim Abbott
f58c2b5a47
markdown: Rename bugdown_re to backend_only_markdown_re.
...
The new name should be more clear, since "bugdown" is arguably our
general markdown flavor's name at this point.
2017-07-28 17:48:47 -07:00
Vaida Plankyte
09e0a8861c
frontend: Add header to static/5xx.html.
2017-07-28 17:45:23 -07:00
Vaida Plankyte
673d32cc46
frontend: Toggle aria-hidden for main app visibility.
...
This prevents things in the main app from being seen by screen readers
looking at an overlay.
2017-07-28 16:49:53 -07:00
Jack Zhang
62f4ddc8f4
Add hotspots svg images.
...
Illustrations by Vaida Plankyte.
2017-07-28 16:34:15 -07:00
Jack Zhang
c242df042f
hotspots: Style hotspots.
2017-07-28 16:34:15 -07:00
Jack Zhang
7ec51a540e
hotspots: Unit test hotspots.js.
2017-07-28 16:34:15 -07:00
Jack Zhang
5a8b1e6253
hotspots: Implement hotspots frontend.
2017-07-28 16:34:15 -07:00
Jack Zhang
d951375d6c
Move compute_placement utility from emoji_picker to popovers.
2017-07-28 16:34:15 -07:00
Jack Zhang
6a7a4132b4
hotspots: Create hotspot_overlay template.
2017-07-28 16:34:15 -07:00
Jack Zhang
11c27015f0
hotspots: Refactor backend for hotspots v2.
2017-07-28 16:34:13 -07:00
vaibhav
691aff55a3
bots: Add UI to select Slack compatible interface for webhooks.
...
interface_type select menu will be used to choose the interface
for outgoing webhooks. It will be displayed only when the selected
bot type is OUTGOING WEBHOOK type. The default value is GENERIC
interface type (1).
2017-07-28 16:22:55 -07:00
Tim Abbott
f834ae14bc
docs: Update management command documentation.
2017-07-28 16:12:10 -07:00
Pweaver (Paul Weaver)
5932896ebb
Fix browser error reporting to find webpack source map files.
...
When we switched to using webpack, source map files weren't being
logged in the expected place.
2017-07-28 16:01:23 -07:00
Tim Abbott
7778a66171
test_messages: Add a test for unauthorized mirroring of PMs.
2017-07-28 15:55:34 -07:00
Tim Abbott
8d0b743a6f
test_messages: Add a test for PMs to deactivated users.
2017-07-28 15:53:33 -07:00
Tim Abbott
a9e987f31d
test_messages: Add a test for private messages copying self.
2017-07-28 15:49:27 -07:00
Vishnu Ks
6527b3bbd9
actions: Create validate_recipient_user_profiles function.
2017-07-28 15:39:44 -07:00
Vishnu Ks
b1fba81490
actions: Create get_recipient_from_user_ids function.
2017-07-28 15:39:44 -07:00
Aditya Bansal
28befc78f2
actions: Fix message_id logged upon event 'subscription_created'.
2017-07-28 14:50:55 -07:00
Aditya Bansal
452bbd9104
test_helpers: Extract stub for request_event_queue & get_user_events.
2017-07-28 14:50:55 -07:00
Joshua Pan
e6611fec99
markdown.js: Remove paragraph break from numbered lists.
...
Fixes #5902 .
2017-07-28 12:32:20 -07:00
Tim Abbott
94a1070979
i18n: Don't try to clear local storage caches if no local storage.
2017-07-28 12:18:33 -07:00
Tim Abbott
93418c6eb4
translations: Remove unnecessary cache clearing code.
...
Since the browser reloads when new server versions are deployed, the
other similar block already handles this issue.
2017-07-28 12:18:15 -07:00
Tim Abbott
a17f42a6f9
events: Don't access state['unread_msgs'] unless it exists.
...
Since that specific state features depends on two features in the
`want` list, we need this extra check.
2017-07-28 12:05:13 -07:00
Aditya Bansal
9e372c465c
populate_db: Set pointer as message_id of last user sent message.
2017-07-28 11:57:52 -07:00
Tim Abbott
e729814cfd
recent_senders: Fix exception in certain typeahead flows.
...
It appears that a regression introduced in
3f60074c33
caused undefined to be passed
as the subject to the recent_senders library much more often; this
fixing that, and makes the library handle such cases reasonably
without an exception regardless.
This was causing a huge number of "Tried to call a Dict method with an
undefined key." exceptions.
2017-07-28 11:04:11 -07:00
Umair Khan
6536384e4b
i18next: Remove older translation caches.
...
Any cache entry which doesn't belong to the current server_generation
is removed.
Fixes #5545 .
2017-07-28 11:04:11 -07:00
Umair Khan
fd9b7210ef
i18next: Clear cache on restart event.
2017-07-28 11:04:11 -07:00
vbNETonIce
ea72432dca
rename in comment: scripts/restart-zulip to scripts/restart-server
...
found this when trying to follow this comment and the script didn't exist anymore
2017-07-28 10:29:17 -07:00
Steve Howell
a306344050
minor: Fix typo in comment (customer -> custom).
2017-07-28 07:05:30 -04:00
Tim Abbott
470d0a481c
docs: Update changelog through today.
2017-07-27 21:57:41 -07:00
Greg Price
98b1678d5d
docs: Document how to make settings changes take effect.
...
The page at https://zulip.org/server.html reminds me that we didn't
have clear documentation of this point where we discuss configuring
the server.
2017-07-27 21:44:58 -07:00
Greg Price
76b62620d9
docs: Add a "production" overview page.
...
This pulls together what's covered in detail in several
longer pages, and gives us a page that can serve as a good
drop-in replacement for https://zulip.org/server.html .
Also tweak a couple of related bits for clarity and orthography.
2017-07-27 21:44:58 -07:00
rht
ca960da58f
create_user: Receive password input from a file instead of shell arg.
...
This is to be used for the case of container orchestration instead of
shell arg to prevent snooping by any user account on the server via `ps
-ef` or any superuser with read access to the user\'s bash history.
2017-07-27 18:08:52 -07:00
Vaida Plankyte
b8b0cd41d0
help: Add explanation of pointer/unread count behavior.
...
Fixes #5770 .
2017-07-27 18:07:58 -07:00
Tim Abbott
7abcc1b274
docs: Add a brief document explaining management commands.
...
Fixes #1330 .
2017-07-27 18:00:53 -07:00
Vaida Plankyte
26f5f77524
prod_settings_template.py: Update GitHub/Google auth setup docs.
2017-07-27 17:35:14 -07:00