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`.
This commit is contained in:
Steve Howell
2018-11-10 16:10:45 +00:00
committed by Tim Abbott
parent 710095920f
commit d86dd165da
7 changed files with 19 additions and 11 deletions

View File

@@ -32,6 +32,10 @@ MATCH_TOPIC = "match_subject"
# unless we do a pretty tricky migration.
LEGACY_PREV_TOPIC = "prev_subject"
# This constant is pretty closely coupled to the
# database, but it's the JSON field.
EXPORT_TOPIC_NAME = "subject"
# This is used in low-level message functions in
# zerver/lib/message.py, and it's not user facing.
DB_TOPIC_NAME = "subject"