filter: Add streams:public to sorted_term_types.

This is for consistency with in:, has:, and similar values where
there's a fixed set of RHS entries.
This commit is contained in:
Tim Abbott
2020-01-16 11:05:07 -08:00
parent 1d72ea2fd5
commit e5320cc1f6
2 changed files with 2 additions and 2 deletions

View File

@@ -1120,7 +1120,7 @@ run_test('term_type', () => {
};
}
assert_term_type(term('streams', 'public'), 'streams');
assert_term_type(term('streams', 'public'), 'streams-public');
assert_term_type(term('stream', 'whatever'), 'stream');
assert_term_type(term('pm-with', 'whomever'), 'pm-with');
assert_term_type(term('pm-with', 'whomever', true), 'not-pm-with');

View File

@@ -587,7 +587,7 @@ Filter.term_type = function (term) {
result += operator;
if (_.contains(['is', 'has', 'in'], operator)) {
if (_.contains(['is', 'has', 'in', 'streams'], operator)) {
result += '-' + operand;
}