Steve Howell
e64277879f
Use zjquery to test topic_list.js.
...
We no longer use real jQuery to test topic_list. This changes
the nature of the tests to be higher level checks on how the DOM
is constructed. The actual details of how templates get
rendered should be in templates.js.
2017-08-09 12:32:09 -07:00
Steve Howell
5c5ce3c1b9
Use zjquery in user_events test.
...
We don't use zjquery in a meaningful way, but we need to be careful
about leaking the real version of jQuery from prior tests.
2017-08-09 12:32:09 -07:00
Steve Howell
779a29e70e
Use zrequire in node_tests/stream_list.js.
2017-08-09 12:32:09 -07:00
Steve Howell
7cfc73b040
Use zrequire in node_tests/stream_data.js.
2017-08-09 12:32:09 -07:00
Steve Howell
890794ac8f
Use zrequire in node_tests/pm_list.js.
2017-08-09 12:32:09 -07:00
Steve Howell
d6b618e2eb
Use zrequire in node_tests/activity.js.
2017-08-09 12:32:09 -07:00
Steve Howell
9e054c8b3b
Use zrequire in node_tests/narrow.js.
2017-08-09 12:32:09 -07:00
Steve Howell
2f775c3e0b
node tests: Extract zrequire helper.
...
We are phasing out the following in tests:
add_dependencies - this is just kind of a clunky UI
require - normal JS requires cause test leaks
In order to plug require leaks, we are effectively doing what
we always have done inside of add_dependencies, which is to
keep track of which modules we have done `require` on, and
these get cleared between tests.
Now we just use `zrequire` every time we want to pull in real
code to our global namespace.
2017-08-09 12:32:09 -07:00
Vaida Plankyte
984108ac90
README.md: Add link to bug report guidelines.
...
Fixes #1028 .
2017-08-09 11:38:46 -07:00
Vaida Plankyte
b6da398e17
docs: Add bug report guidelines.
2017-08-09 11:38:46 -07:00
Greg Price
5a6169a13f
version: Bump PROVISION_VERSION to cause update to Python 3.
2017-08-08 16:15:37 -07:00
neiljp (Neil Pilgrim)
82bac5ca11
Webhook: Remove duplicate trello code.
2017-08-08 15:55:09 -07:00
Greg Price
d3a69da829
py3: Fix or remove (almost) all references to Python 2 venv in docs.
...
I think soon we'll put the Python 3 venv at `/srv/zulip-venv` and
make `/srv/zulip-py3-venv` just an alias to that (then remove the
alias too), but for now the old name is helpful for spotting places
that need an update.
The `/srv/zulip-venv` name still appears in codepaths used by Travis
tests.
2017-08-08 15:48:12 -07:00
rht
b0e4233d3f
Dev environment setup: default to Python 3.
...
From the line in tools/provision it should trickle to the rest of the
scripts. This works since almost all the python scripts have been linted
to be generic.
Proof that the setup is python3 only: with this commit, within the
vagrant container env, /srv/zulip-venv is no longer present and
`./tools/run-dev.py` runs just fine.
[gnprice: Added `rm -f` and warning message, and made small edits.]
2017-08-08 15:28:11 -07:00
Vishnu Ks
f0bb11ef40
management: Use self.get_user in convert_bot_to_outgoing_webhook.
2017-08-08 14:13:19 -07:00
Vishnu Ks
d1bece2ec2
management: Use self.get_realm in create_stream.
2017-08-08 14:13:19 -07:00
Vishnu Ks
9fb5381acb
management: Use self.get_realm in set_default_streams.
2017-08-08 14:13:19 -07:00
Vishnu Ks
3bc475d04f
management: Use self.get_realm in rename_stream.
2017-08-08 14:13:19 -07:00
Vishnu Ks
4e7dbff197
management: Use self.get_realm in realm_filters.
2017-08-08 14:13:19 -07:00
Vishnu Ks
7859ec76cf
management: Use self.get_realm in realm_emoji.
2017-08-08 14:13:19 -07:00
Vishnu Ks
af1c1861da
management: Use self.get_realm in realm_domain.
2017-08-08 14:13:19 -07:00
Vishnu Ks
1b0b135bfc
management: Remove unused imports from process_queue.
2017-08-08 14:13:19 -07:00
Vishnu Ks
0532b35c43
management: Remove unused imports from print_email_delivery_backlog.
2017-08-08 14:13:19 -07:00
Vishnu Ks
164badde13
management: Use self.get_realm in merge_streams.
...
The variable encoding is removed becuase it is not used
anywhere.
2017-08-08 14:13:19 -07:00
Vishnu Ks
6b46762384
management: Fix typo in get_realm CommandError message.
2017-08-08 14:13:19 -07:00
Vishnu Ks
27936fcfd4
management: Remove unused imports from makemessages.
2017-08-08 14:13:19 -07:00
Vishnu Ks
cf61349563
management: Use self.get_realm in logout_all_users.
2017-08-08 14:13:19 -07:00
Vishnu Ks
e28a007487
management: Use self.get_user in knight command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
3a2edc66f1
management: Use get_system_bot in initialize_voyager_db.
2017-08-08 14:13:19 -07:00
Vishnu Ks
f45b80aafe
management: Remove unused imports from initialize_voyager.
2017-08-08 14:13:19 -07:00
Vishnu Ks
05af206392
management: Remove unused imports from import command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
f58efdc3cb
management: Remove unused imports from export_usermessage_batch.
2017-08-08 14:13:19 -07:00
Vishnu Ks
28e76c990a
management: Remove unused imports from email_mirror command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
6687b236bf
management: Remove unused imports from deliver_email command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
b8dacf9bf6
management: Remove unused import from checkconfig command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
5ce0d85ccf
management: Remove unused import from check_redis command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
19f8da4995
management: Use self.get_realm in export command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
4e9dff09fd
management: Use self.get_realm in dump_messages.
2017-08-08 14:13:19 -07:00
Vishnu Ks
bc48c68c09
management: Use self.get_realm in reactivate_realm command.
2017-08-08 14:13:19 -07:00
Vishnu Ks
279af33ea2
management: Use self.get_realm in deactivate_realm.
2017-08-08 14:13:19 -07:00
Vishnu Ks
349d604ad5
management: Use self.get_realm in create_user.
2017-08-08 14:13:19 -07:00
Vishnu Ks
679fece79d
management: Add argument for specifying help in add_realm_args.
2017-08-08 14:13:19 -07:00
Steve Howell
9cad3a009f
Add topic server history, but behind a feature flag.
...
You can now see full topic history if you set the flag
`feature_flags.use_server_topic_history` to `true`.
2017-08-08 17:07:09 -04:00
Steve Howell
3b88e592d0
Add topic_data.get_server_history().
...
This isn't connected to anything yet, but you can now get
all the historical topics for a stream by calling
topic_data.get_server_history().
2017-08-08 17:07:09 -04:00
Tim Abbott
9bbcb712ec
travis: Fix content-length test.
2017-08-08 13:22:22 -07:00
Brock Whittaker
7d80e0c78c
portico: Fix #registration padding.
...
This fixes the registration padding to not be really large. It was an
issue of margin + padding instead of using margin for both where the
result would be max(margin1, margin2).
2017-08-08 13:21:48 -07:00
Brock Whittaker
6a406e2b70
portico: Fix tables to be striped again.
...
This fixes tables to be in more of a compartment and striped again
(which they lost due toe the light grey background).
2017-08-08 13:21:48 -07:00
Brock Whittaker
9f2017c1aa
portico: Unify with smaller box shadows.
...
This unifies components with smaller, more consistent box shadows.
2017-08-08 13:21:48 -07:00
Brock Whittaker
3d4198c681
Replace `String.prototype.startsWith` with `indexOf`.
...
This replaces the `startsWith` string prototype method with `indexOf`
because no versions of Internet Explorer support this feature, and
it really is not difficult to just use `indexOf` instead and check
whether the starting index of the full string is 0.
2017-08-08 12:06:32 -07:00
Brock Whittaker
be33266f83
Make 4xx and 5xx pages full screen.
...
This makes the 4xx and 5xx pages full screen by changing the
`.error_page` div to be fixed and full screen height.
2017-08-08 11:58:22 -07:00