Anders Kaseorg
2ad1a27b28
create-production-venv: Remove Python 2 support.
...
We still create a Python 2 virtualenv for thumbor but that’s
separate (/srv/zulip-thumbor-venv from
scripts/lib/create-thumbor-venv).
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-01-09 17:32:05 -08:00
Vishnu Ks
c263674507
billing: Add node test for billing.js.
2019-01-08 10:47:35 -08:00
rht
15763f8545
provision: Include DISTRIB_FAMILY in parse_lsb_release output.
2019-01-07 18:52:09 -08:00
Vishnu Ks
13de959121
tools: Add script to automate python dependency upgrade.
2019-01-07 10:25:35 -08:00
Marco Burstein
9ddadd39f4
compose: Add support for using Zoom as the video chat provider.
...
This adds Zoom call properties to the `Realm` model, creates endpoints
for creating calls, adds a frontend and tests.
Fixes #10979 .
2019-01-07 10:00:02 -08:00
Mateusz Mandera
36714342a3
lint: Allow usage of the word subject in test_email_mirror.py.
2019-01-05 15:59:19 -08:00
Tim Abbott
99721755e8
node: Temporarily remove composebox_typeahead from fully covered.
2019-01-05 15:31:30 -08:00
Tim Abbott
453b65bde3
provision: Clean up comments and unused variables.
...
This has some changes inspired by #8514 .
2019-01-04 15:16:19 -08:00
rht
7e1520b01f
provision: Ensure `python3` exists in PATH for CentOS.
2019-01-04 14:11:03 -08:00
Vishnu Ks
d94b0da3c8
billing: Separate billing.js into multiple modules.
2019-01-04 23:52:00 +05:30
Vishnu Ks
81e6a022e6
emails: Inline CSS in missed_message.
...
As part of this change, we port into the .messages class the work in
4e8e7348da
to change overflow-y to auto,
not scroll (skipping that would result in a regression).
2019-01-03 17:55:29 -08:00
Vishnu Ks
4e1c0589c2
emails: Refactor if condition from style tag in missed_message_email.
2019-01-03 17:55:29 -08:00
Tim Abbott
4df618f584
portico: Order jquery.validate before signup.js.
...
This is important, because the signup.js module uses jquery.validate.
2019-01-03 15:22:57 -08:00
Steve Howell
d8d703af45
frontend: Add basic user_status module.
...
So far this processes page_params, but it's otherwise
an unused internal API.
2019-01-02 09:16:31 -08:00
Steve Howell
4d5ce0b285
lint: Exclude "subject" from JS files (except util.js).
...
We also exempt the frontend tests for now.
2019-01-01 20:52:07 -08:00
Steve Howell
b4bc6b4445
emails: Fix subject -> email_subject in send_email.py.
2019-01-01 20:49:00 -08:00
Steve Howell
4da28efc90
emails: Fix subject -> email_subject in error_notify.py.
2019-01-01 20:48:59 -08:00
Steve Howell
16328732d4
refactor: Remove "subject" from stream_topic.py.
2019-01-01 20:48:56 -08:00
rht
d3139266c8
setup_venv: Uninstall typing on Python >3.4.
...
Otherwise this causes an error
```
AttributeError: type object 'Callable' has no attribute '_abc_registry'
```
on 3.7. While the error is specific to 3.7, it is safer to uninstall
typing for all the versions that don't require a pip-provided typing
library.
2019-01-01 19:34:48 -08:00
rht
c190959b58
provision: Move CentOS & Fedora venv deps construction to setup_venv.py.
...
They will be reused in production setup.
2019-01-01 19:34:46 -08:00
rht
17ffbdabe2
provision: Use virtualenv instead of python-virtualenv on Fedora.
...
The package name changed at some point.
2019-01-01 19:34:24 -08:00
rht
75134ef614
provision: Use generic python3 on Fedora dependencies.
...
It might be cleaner to add new variables in setup_venv.py, but we can
do that later.
2019-01-01 19:34:11 -08:00
Tim Abbott
5a8ad84381
test-documentation: Exclude the 500ing Citizen Code of Conduct.
...
We might want to eventually remove this, but I'm holding out hope that
it'll be fixed.
2018-12-29 15:30:19 -08:00
Vishnu Ks
6f5b1903c4
docs: Update code-reviewing docs to reflect CI changes.
2018-12-29 15:28:26 -08:00
Steve Howell
3fc8597119
popovers: Avoid passing message to actions popover template.
...
We instead get the specific fields from message
that we use. This is particularly helpful
for subject -> topic migration; we no longer
have to account for "subject" fields in
client-side templates.
2018-12-29 14:19:18 -08:00
Sumanth V Rao
ccd0badeed
test-documentation: Simplify --skip-external-links code path.
...
The crawler used to be called directly for checking external links.
Now the scrapy command calls the crawl_with_status wrapper.
Crawl_with_status has been modified to pass the external parameter in
the previous commit, so we can now use this simpler approach.
2018-12-29 09:09:18 -08:00
Sumanth V Rao
776b981dde
test-help-documentation: Skips checking external links.
...
This option causes test-help-documentation to verify internal links only.
This prevents documentation from flaking in CI due to links from
external websites having failed in the documentation.
Based on conversation:
https://chat.zulip.org/#narrow/stream/43-automated-testing/subject/quora.20404/near/674997
2018-12-29 20:15:30 +05:30
Rishi Gupta
e7220fd71f
billing: Do subscription management in-house instead of with Stripe Billing.
...
This is a major rewrite of the billing system. It moves subscription
information off of stripe Subscriptions and into a local CustomerPlan
table.
To keep this manageable, it leaves several things unimplemented
(downgrading, etc), and a variety of other TODOs in the code. There are also
some known regressions, e.g. error-handling on /upgrade is broken.
2018-12-22 13:39:30 -08:00
Rishi Gupta
f8720fddd6
emails: Update text of notify_new_login.
2018-12-20 16:26:19 -08:00
Vishnu Ks
f9e4d5d28e
emails: Tag password_reset for translation.
2018-12-19 09:21:09 -08:00
Vishnu Ks
0960e654ab
emails: Tag notify_new_login email for translation.
2018-12-19 09:21:09 -08:00
rht
acbb174100
provision: Add RHEL 7 support.
2018-12-18 17:13:56 -08:00
rht
84c968ab36
provision: Include scripts/lib/setup-* and scripts/lib/build-* for sha1 sum check.
2018-12-18 16:56:27 -08:00
Tim Abbott
dd946fff1f
lint: Improve ui_report.error linter rule.
...
We now allow passing "" as the first argument.
2018-12-18 12:33:15 -08:00
rht
a093d45064
provision: Check for pg_hba.conf existence for doing postgres initdb.
...
Apparently, an empty pg_datadir is initialized after postgresql-10 is
installed.
2018-12-18 12:07:45 -08:00
rht
3060ee9397
provision: Fix typo when checking that vendor is Fedora.
2018-12-18 12:07:03 -08:00
Anders Kaseorg
392175d6e8
Use #!/usr/bin/env for bash shebangs.
...
/bin/sh and /usr/bin/env are the only two binaries that NixOS provides
at a fixed path (outside a buildFHSUserEnv sandbox).
This discussion was split from #11004 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-12-17 17:21:08 -08:00
rht
5e12eb8d34
provision: Fix typo in list of services on RedHat.
2018-12-17 16:30:48 -08:00
rht
42cbf2071b
provision: Skip RedHat postgresql initdb if already initialized.
...
We only need to initialize a postgres database once in the lifetime of
a system.
2018-12-17 16:29:50 -08:00
rht
295cbe7b9c
provision: Add build-pgroonga and use it for Fedora.
2018-12-17 16:23:57 -08:00
rht
80ba105be5
provision: Abstract out SYSTEM_DEPENDENCIES.
2018-12-17 16:23:46 -08:00
rht
b732fe819e
provision: Add Fedora support.
2018-12-17 16:23:44 -08:00
Tim Abbott
d469c14d11
docs: Advertise arbitrary org GitHub patterns for linkifiers.
...
Now that we support this, we should make it really obvious that we do.
Also, link to the Help Center article.
2018-12-17 12:58:52 -08:00
rht
2dc1dc8ec2
provision: Replace overwrite_symlink with `sudo ln -sf`.
...
overwrite_symlink doesn't work for a non-root user when accessing root
content.
2018-12-17 11:50:15 -08:00
Tim Abbott
2558f101af
docs: Add documentation for `if False` mypy pattern in scripts.
...
This should help make it clear what's going on with these scripts.
2018-12-17 11:12:53 -08:00
Tim Abbott
209df75ffa
lint: Enforce use of Python 2 style typing in zulint.
...
This is intended to be extracted as an external project that supports
Python 2+3.
2018-12-17 11:00:08 -08:00
Tim Abbott
35901cc955
lint: Fix a tooling test failure in last commit.
...
This is what I get for copy-pasting lint rule blocks.
2018-12-17 10:53:08 -08:00
Tim Abbott
bce90a3340
lint: Add lint rule for scripts importing typing improperly.
...
This is a common bug that users might be tempated to introduce.
And also fix two instances of this bug that were present in our
codebase, including an important one in our upgrade code path.
2018-12-17 10:46:37 -08:00
Tim Abbott
6b69cc0b39
lint: Run mypy as part of main linter.
...
To support this, we add a pass_targets option to the main linter
library, because with current mypy, it's generally counterproductive
to pass the list of files in (can produce spurious errors; isn't
faster).
2018-12-16 21:52:53 -08:00
Tim Abbott
3003517430
docs: Move mypy documentation from contributing to testing.
...
The testing section is more appropriate, since it's fundamentally part
of our CI system.
While we're at it, fix the fact that we were linking to GitHub, not
ReadTheDocs, in the run-mypy output.
2018-12-16 21:52:53 -08:00