Tim Abbott
1aac52d685
casper: Use waitUntilVisible in user deactivation tests.
2017-02-09 23:35:10 -08:00
Brock Whittaker
29dbb9e0b4
casper: Use waitUntilVisible and waitWhileVisible in admin tests.
...
This fixes a potential class of flakiness in the tests where they
interact with parts of the admin UI that aren't actually visible at
the moment via selectors, which probably doesn't test what we intend
to test properly.
2017-02-09 23:35:10 -08:00
Brock Whittaker
1143ed7219
redesign: Change /#settings and /#administration to an overlay.
...
This also adds a box-shadow to the #deactivate_self_modal so that it
looks similar to the old backdrop.
2017-02-09 23:35:10 -08:00
Tim Abbott
7a76f3dcc8
settings: Redesign the account settings template.
...
This is technically part of the settings page redesign in the next
commit, but it's probably useful to keep separate, since it touches
totally different code.
2017-02-09 23:33:28 -08:00
Tim Abbott
708c034d93
casper: Extract 13-user-deactivation.js from 10-admin.js.
...
For some reason, this section of tests basically totally breaks
whatever test runs after it. To minimize the impact of that problem,
we move it to a separate file.
2017-02-09 23:32:37 -08:00
Tim Abbott
d69c40eb75
casper: Clean up some admin casper tests.
...
This adds missing casper.then(), some waits for relevant selectors,
and tightens some of the selectors to be more precise.
2017-02-09 23:32:26 -08:00
Brock Whittaker
2dd36aa422
Make subscriptions page responsive.
...
This makes the subscriptions page responsive by having the settings tab
slide over when a user taps on a stream, giving almost the whole screen
to view the settings.
2017-02-09 14:01:00 -08:00
Abhijeet Kaur
ef72cf5c7c
bug fix: Fix wikipedia bot in case no results are found.
...
Incorrect Index access in wikipedia.py resulted in IndexError and
wikipedia bot to crash for few queries. This causes the bug to be fixed.
Replaced url to avoid 2 redirects and enhance performance.
Fixes : #3508 .
2017-02-09 12:20:51 -08:00
Tim Abbott
699257c3bf
casper: Extract extended editing tests out of 10-admin.js.
...
The casper test file 10-admin.js had gotten to be super huge, so a
split is a good idea regardless, but this should also make quaranteen
for tests broken by the settings redesign more manageable.
2017-02-09 00:53:24 -08:00
Tim Abbott
4857f3c2d2
casper: Use casper.then consistently in realm filters tests.
2017-02-09 00:34:56 -08:00
Tim Abbott
26ae2a69a9
casper: Clean up default stream tests a bit more.
...
This users casper.then in a more reasonable way, and also moves the
stream_name definition to the section where it's used.
2017-02-09 00:34:04 -08:00
Tim Abbott
b8df71c360
subs: Use antialiased fonts in subscriptions page.
2017-02-08 23:28:11 -08:00
Tim Abbott
0aa07b9d0f
subs: Improve transitions styling for subscriptions page.
2017-02-08 23:28:10 -08:00
Tim Abbott
64ec7e236d
settings: Add missing data-name for auth methods template.
2017-02-08 23:21:21 -08:00
Tim Abbott
febfb1844d
settings: Move auth methods template to settings/ subdirectory.
2017-02-08 23:21:21 -08:00
Tim Abbott
09fad19111
settings: Apply new-style to all settings sections.
2017-02-08 23:14:13 -08:00
Tim Abbott
02c8ea729b
settings: Reindent settings_tab.handlebars to 4-space.
2017-02-08 23:13:10 -08:00
Tim Abbott
6aea77403d
settings: Add data-name entries for administration pages.
2017-02-08 23:11:31 -08:00
Tim Abbott
72ff55db2f
help: Fix capitalization of various menu items.
2017-02-08 23:07:14 -08:00
Tim Abbott
1c8d17b7c9
settings: Extract deactivation-user-modal.handlebars.
2017-02-08 22:53:36 -08:00
Tim Abbott
a28bb77b51
settings: Extract deactivation-stream-modal.handlebars.
2017-02-08 22:53:36 -08:00
Tim Abbott
d9b63dd97c
settings: Extract realm-domains-modal.handlebars.
2017-02-08 22:53:36 -08:00
Harshit Bansal
8ae54ddb99
actions.py: `restricted_to_domain` should be False if there are no aliases.
...
Having `restricted_to_domain` set to True if there are no more aliases
left means the user is either confused or forgot to set it to False. It
should be set to False automatically when the last alias is deleted.
2017-02-08 22:14:43 -08:00
Harshit Bansal
7d10cbc32b
Add RealmAlias.allow_subdomains to model, frontend, and API.
...
Includes a database migration.
Fixes #1868 .
2017-02-08 22:03:27 -08:00
Rishi Gupta
a16c48f0c4
actions.py: Change do_remove_realm_alias to take a RealmAlias.
...
Ensures that this function doesn't throw an error / prevents putting in an
incorrect realm or domain argument.
2017-02-08 21:15:28 -08:00
Tim Abbott
0c363dffca
lint: Ban use of deprecated assertEquals.
2017-02-08 16:38:43 -08:00
Kouhei Sutou
a2d935a2ee
puppet: Fix PostgreSQL user to create PGroonga extension
...
"root" user isn't a PostgreSQL administrator. "postgres" is a PostgreSQL
administrator.
2017-02-08 12:57:56 -08:00
Tim Abbott
609082c475
puppet: Remove hardcoding of /root/zulip from puppet path.
...
This is an important prerequisite to being able to remove dependence
on the /root/zulip symlink altogether.
2017-02-08 11:13:19 -08:00
Elliott Jin
0e0584aeaa
muting: Fix calling update_unread_counts in a loop.
...
Previously, set_muted_topics was calling update_unread_counts once for each
topic in the input; this results in poor performance when there is a large
number of muted topics.
Fixes : #3605
2017-02-08 11:13:19 -08:00
Tim Abbott
fa8045a484
puppet: Add websockets Nagios test to configuration.
...
Since browser clients send messages via websockets and not the API,
this is an important element in making sure mission-critical Zulip
functionality is working.
2017-02-08 11:13:19 -08:00
Tim Abbott
8db13d0bb9
check_send_receive_time: Use a different state file for websockets.
...
Otherwise, the two Nagios checks will fight over the same state file
if both are in use.
2017-02-08 11:13:19 -08:00
Kouhei Sutou
5764054bbb
docs: Fix markup issue in pgroonga docs.
2017-02-08 10:17:23 -08:00
Umair Khan
c585fa6eb4
change-email: Delete display recipient cache.
2017-02-07 21:49:31 -08:00
Rishi Gupta
677b9e1ec6
stats: Preserve visibility of traces when changing aggregations.
...
In messages_sent_over_time. Previously, every aggregation kept its own state
regarding which of {Humans, Bots} was showing.
2017-02-07 21:31:34 -08:00
Rishi Gupta
22df58289f
stats.js: Fix round_to_percentages when percentage is 100.
...
Fixes bug introduced in 9901128
.
2017-02-07 21:31:34 -08:00
Tim Abbott
84b18f865a
users: Verify full names explicitly in account registration.
...
I believe this completes the project of ensuring that our recent work
on limiting what characters can appears in users' full names covers
the entire codebase.
2017-02-07 20:20:32 -08:00
Tim Abbott
56cecc4891
users: Verify full names explicitly in user creation.
...
This fixes an issue where users could be created with an invalid name
(introduced only a couple commits ago when we added character set
restrictions).
2017-02-07 19:54:30 -08:00
Tim Abbott
2283b5fc91
users: Consolidate name change enforcement logic.
...
This has the side effect of fixing an issue where one could edit a
bot to have an invalid name.
2017-02-07 19:45:21 -08:00
Ritwik Srinivas
74b68f6bbc
Adds banned characters in name function
...
Disallows you from putting the characters @, *, `, and > and " in
your name. Added test cases similar to the MAX_NAME_LENGTH check
Copied initial code from:
https://github.com/zulip/zulip/pull/2473
2017-02-07 19:31:14 -08:00
Jackson
dcca54e8a9
integrations: Add Greenhouse integration.
2017-02-07 19:08:35 -08:00
Rishi Gupta
18508ca02c
stats.js: Clean up code for the number of users chart.
2017-02-07 18:55:35 -08:00
Rishi Gupta
ac42ad0322
stats.js: Replace font and button colors with variables.
2017-02-07 18:55:35 -08:00
Rishi Gupta
5f2c70c61f
stats.js: Refactor code for the two pie charts.
...
Also fixes a bug where we didn't probably update the labels when clicking on
the Me/Everyone/10/30/Cumulative buttons.
2017-02-07 18:55:35 -08:00
Rishi Gupta
9901128b33
stats.js: Change how we set the precision for percentages close to 100%.
2017-02-07 18:55:35 -08:00
Rishi Gupta
5f7cb9db16
stats.js: Reorder code to match the order of the charts on /stats.
2017-02-07 18:55:35 -08:00
Rishi Gupta
796ac7bfe6
stats.js: Remove the throw_error helper function.
2017-02-07 18:55:35 -08:00
Umair Khan
41aa07adb6
change-email: Delete email caches on email change.
2017-02-07 18:43:26 -08:00
Umair Khan
f4b242e707
Add time validation for email confirmations.
...
Adds a function which returns the number of days for which
a confirmation link will remain valid. This function can be
overridden by derived classes to provide a different value.
2017-02-07 18:43:26 -08:00
hackerkid
8b2d4f150a
Vagrantfile: Add support for a custom post-provision script.
...
Documentation tweaked by tabbott.
Fixes #3108 .
2017-02-07 18:38:07 -08:00
Tim Abbott
cf4faf6598
docs: Clarify that non-webhook integrations need documentation too.
2017-02-07 18:24:35 -08:00