Steve Howell
75ead3379d
node: Fix typo in tests (diffrent -> different).
2018-11-14 13:21:34 -08:00
Tim Abbott
a2371a96b7
docs: Clarify push registration for running manage.py correctly.
...
We've had several users get errors running this because they ran it as
a bash script; fix this my making the command super explicit.
2018-11-14 13:07:04 -08:00
Tim Abbott
8ab26df9f0
docs: Link to setup-certbot multiple hostname support.
2018-11-13 12:55:24 -08:00
Rohitt Vashishtha
95ba947f13
setup-cerbot: Allow issuing certificates for multiple domains.
...
This commit allows specifying Subject Alternative Names to issue certs
for multiple domains using certbot. The first name passed to certbot-auto
becomes the common name for the certificate; common name and the other
names are then added to the SAN field. All of these arguments are now
positional. Also read the following for the certbot syntax reference:
https://community.letsencrypt.org/t/how-to-specify-subject-name-on-san/
Fixes #10674 .
2018-11-13 12:47:31 -08:00
Tim Abbott
11ffd6b370
requirements: Revert updates to thumbor virtualenv.
...
Apparently, this set of upgrades fails on the Travis production test
suite. Not yet clear why, but reverting for now in any case.
2018-11-13 12:41:09 -08:00
Tim Abbott
6aee656f6b
requirements: Update recursive dependencies.
...
This was generated by:
* `rm -f requirements/*.txt`
* `./tools/update-locked-requirements`
and passes tests. The effect is to unpin ourselves from old versions
of a bunch of recursive dependencies of our third-party dependencies.
2018-11-13 12:31:35 -08:00
Hemanth V. Alluri
f8882db8a0
docs: Replace "MagickMock" with "MagicMock".
2018-11-13 12:20:08 -08:00
Vishnu Ks
d3138d486e
requirements: Upgrade setuptools to 40.6.1.
2018-11-13 12:15:07 -08:00
Vishnu Ks
5f69452d48
requirements: Upgrade coverage to 4.5.2.
2018-11-13 12:15:07 -08:00
Vishnu Ks
7fafcd438e
requirements: Upgrade SQLAlchemy to 1.2.14.
2018-11-13 12:15:07 -08:00
Vishnu Ks
2d140bae3e
billing: Cast return value of _mock_stripe to CallableT.
...
Without the cast mypy raises the following error:
Incompatible return value type (got "Callable[..., Any]",
expected "CallableT")
This is a known issue: https://github.com/python/mypy/issues/1927
2018-11-12 23:42:59 -08:00
Vishnu Ks
20c41f3d3e
billing: Replace IDs and other values before writing fixtures.
...
This makes a few other changes to the fixtures as well. Most are from API
updates, though I'm not sure why "Zulip Cloud Standard" got changed to
"Zulip Cloud Premium".
[Substantial edits by Rishi Gupta]
2018-11-12 23:24:33 -08:00
Tim Abbott
33c6390c14
billing: Fix missing target=blank for new navbar menu items.
2018-11-12 17:14:14 -08:00
Yashashvi Dave
766bdbfe89
stream settings: Rephrase info to state guest user can't join public stream.
...
Change wording of public stream description to
"Any member of the organization" from "Anybody"
to indicate that guest users can't subscribe even
public stream of organization.
2018-11-12 17:00:38 -08:00
Eeshan Garg
41c0e9ba47
webhooks: Add ReviewBoard integration.
2018-11-12 16:11:32 -08:00
Steve Howell
a942732d83
lint: Get rid of unused skip_rules.
...
We also go to the modern annotation style for mypy.
2018-11-12 16:00:52 -08:00
Steve Howell
3eb2b2be5f
lint: Change lastLine logic slightly.
2018-11-12 15:47:11 -08:00
Steve Howell
a86e7fbd9f
subject -> topic: Fix message tests.
2018-11-12 15:47:11 -08:00
Steve Howell
c90085b28e
lint: Extend "subject" prohibition to zerver/tests.
...
There are several exemptions here, so I triaged
them into various buckets.
2018-11-12 15:47:11 -08:00
Steve Howell
394cd4c6b6
subject -> topic: Fix user group tests.
2018-11-12 15:47:11 -08:00
Steve Howell
ee9d321d9f
subject -> topic: Fix tornado tests.
2018-11-12 15:47:11 -08:00
Steve Howell
2fe78ffe21
subject -> topic: Fix widget tests.
2018-11-12 15:47:11 -08:00
Steve Howell
d86dd165da
gitter/slack/hipchat: Remove "subject" from conversions.
...
We (lexically) remove "subject" from the conversion code. The
`build_message` helper calls `set_topic_name` under the hood,
so things still have "subject" in the JSON.
There was good code coverage on `build_message`.
2018-11-12 15:47:11 -08:00
Steve Howell
710095920f
subject -> topic: Fix push notification tests.
...
We also make the topic name more clear.
2018-11-12 15:47:11 -08:00
Steve Howell
8e639543fb
subject -> topic: Fix webhook system tests.
2018-11-12 15:47:11 -08:00
Steve Howell
8f8ceab062
subject -> topic: Fix external tests.
2018-11-12 15:47:11 -08:00
Steve Howell
cd76d4c308
subject -> topic: Fix events tests.
2018-11-12 15:47:11 -08:00
Steve Howell
4b38260a27
tests: Fix message.subject references.
2018-11-12 15:47:11 -08:00
Steve Howell
630dd8ac1b
subject -> topic: Fix bugdown tests.
2018-11-12 15:47:11 -08:00
Steve Howell
1854ddbcd0
taiga tests: Use self.TOPIC instead of "subject".
2018-11-12 15:47:11 -08:00
Steve Howell
31e328c544
webhook tests: Replace SUBJECT with TOPIC.
2018-11-12 15:47:11 -08:00
Steve Howell
1fff890b71
webhooks: Change *_SUBJECT_TEMPLATE to *_TOPIC_TEMPLATE.
2018-11-12 15:47:11 -08:00
Steve Howell
ea98a44db3
webhooks: Replace SUBJECT_WITH_* with TOPIC_WITH_*.
2018-11-12 15:47:11 -08:00
Steve Howell
ced4d81856
Sweep tests for expected_subject -> expected_topic.
...
This is all in the webhooks tests, including some
docs for how to write those tests.
2018-11-12 15:47:11 -08:00
Steve Howell
3133998af9
test_messages: Fix a lot of subject -> topic_name.
2018-11-12 15:47:11 -08:00
Steve Howell
e55fc144b9
Add alias support to REQ helpers for subject/topic.
...
The alias support is generic here, and we use it for
migrating subject -> topic in REQ_topic().
2018-11-12 15:47:11 -08:00
Steve Howell
97062c4017
lint: Prevent use of "subject" in zerver/views.
2018-11-12 15:47:11 -08:00
Steve Howell
de6c08a842
Extract messages_for_topic().
2018-11-12 15:47:11 -08:00
Steve Howell
b667dff4bc
minor: Change wording in comment to avoid "subject".
...
We're trying to sweep "subject" out of the codebase,
even when it has nothing to do our legacy "subject"
field. The rewording here will prevent some linter
noise.
2018-11-12 15:47:11 -08:00
Steve Howell
c7515a853c
Use REQ_topic in update_message_backend().
...
Note that we now strip the topic in the converter.
We also strip it in the view handler, which is now
redundant, but I left it in as defensive code.
2018-11-12 15:47:11 -08:00
Steve Howell
3de1289d3e
Rename subject -> topic_name in update_message_backend().
2018-11-12 15:47:11 -08:00
Steve Howell
754795c0b7
Extract REQ_topic() helper.
...
For now we use it only in the send path, not the update
path.
2018-11-12 15:47:11 -08:00
Steve Howell
0a171bf9bf
Fix "prev_subject" with LEGACY_PREV_TOPIC.
...
I added `LEGACY_` prefix to the var, because
otherwise you'd have really confusing code
where you change the key from `PREV_TOPIC`
to "prev_topic".
2018-11-12 15:47:11 -08:00
Steve Howell
a49ba8c577
Extract user_message_exists_for_topic().
2018-11-12 15:47:11 -08:00
Steve Howell
39e5c61d4a
Extact MATCH_TOPIC constant.
2018-11-12 15:47:11 -08:00
Steve Howell
500fcbb5e3
messages: Update subject -> topic_name.
...
This fixes several local vars named "subject".
2018-11-12 15:47:11 -08:00
Steve Howell
f7f071b52f
minor: Fix subject -> topic in a comment.
2018-11-12 15:47:11 -08:00
Steve Howell
8981b65bbc
Extract topic_column_sa().
2018-11-12 15:47:11 -08:00
Steve Howell
b46fb5eaad
Rename subject_matches -> topic_matches.
...
This is always either a var or a SQL label,
so it's safe to change.
2018-11-12 15:47:11 -08:00
Tim Abbott
fe8d400e3a
node: Fix test failure due to 'narrowed' removal.
...
This was broken in 67fa755158
.
2018-11-12 15:39:35 -08:00