Mm 16623 fix all initialism errors in channels/app and channels/api4 and /store dir (#25787)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2415438d88
Коммит
ae33de57ff
@@ -17,7 +17,7 @@ var searchChannelStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by name",
|
||||
Fn: testAutocompleteChannelByName,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch, EngineBleve},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch, EngineBleve},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by name (Postgres)",
|
||||
@@ -32,7 +32,7 @@ var searchChannelStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by a part of its name when has parts splitted by - character",
|
||||
Fn: testAutocompleteChannelByNameSplittedWithDashChar,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch, EngineBleve},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch, EngineBleve},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by a part of its name when has parts splitted by - character (Postgres)",
|
||||
@@ -42,12 +42,12 @@ var searchChannelStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by a part of its name when has parts splitted by _ character",
|
||||
Fn: testAutocompleteChannelByNameSplittedWithUnderscoreChar,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch, EngineBleve},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch, EngineBleve},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to autocomplete a channel by a part of its display name when has parts splitted by whitespace character",
|
||||
Fn: testAutocompleteChannelByDisplayNameSplittedByWhitespaces,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch, EngineBleve},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch, EngineBleve},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to autocomplete retrieving all channels if the term is empty",
|
||||
@@ -57,7 +57,7 @@ var searchChannelStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to autocomplete channels in a case insensitive manner",
|
||||
Fn: testSearchChannelsInCaseInsensitiveManner,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch, EngineBleve},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch, EngineBleve},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to autocomplete channels in a case insensitive manner (Postgres)",
|
||||
|
||||
@@ -28,7 +28,7 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search for exact phrases in quotes",
|
||||
Fn: testFileInfoSearchExactPhraseInQuotes,
|
||||
Tags: []string{EnginePostgres, EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EnginePostgres, EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search for email addresses with or without quotes",
|
||||
@@ -93,12 +93,12 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to exclude messages that contain a search term",
|
||||
Fn: testFileInfoFilterFilesWithATerm,
|
||||
Tags: []string{EngineMySql, EnginePostgres},
|
||||
Tags: []string{EngineMySQL, EnginePostgres},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search using boolean operators",
|
||||
Fn: testFileInfoSearchUsingBooleanOperators,
|
||||
Tags: []string{EngineMySql, EnginePostgres, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EnginePostgres, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search with combined filters",
|
||||
@@ -108,7 +108,7 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to ignore stop words",
|
||||
Fn: testFileInfoSearchIgnoringStopWords,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should support search stemming",
|
||||
@@ -139,12 +139,12 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should support terms with underscore",
|
||||
Fn: testFileInfoSupportTermsWithUnderscore,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search in deleted/archived channels",
|
||||
Fn: testFileInfoSearchInDeletedOrArchivedChannels,
|
||||
Tags: []string{EngineMySql, EnginePostgres},
|
||||
Tags: []string{EngineMySQL, EnginePostgres},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search terms with dashes",
|
||||
@@ -161,7 +161,7 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search terms with underscores",
|
||||
Fn: testFileInfoSearchTermsWithUnderscores,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to combine stemming and wildcards",
|
||||
@@ -176,7 +176,7 @@ var searchFileInfoStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should not support slash as character separator",
|
||||
Fn: testFileInfoSlashShouldNotBeCharSeparator,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search emails without quoting them",
|
||||
|
||||
@@ -33,7 +33,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search for quoted patterns with AND OR combinations",
|
||||
Fn: testSearchANDORQuotesCombinations,
|
||||
Tags: []string{EnginePostgres, EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EnginePostgres, EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
// Postgres supports search with and without quotes
|
||||
@@ -45,7 +45,7 @@ var searchPostStoreTests = []searchTest{
|
||||
// MySql supports search with quotes only
|
||||
Name: "Should be able to search for email addresses with quotes",
|
||||
Fn: testSearchEmailAddressesWithQuotes,
|
||||
Tags: []string{EngineMySql},
|
||||
Tags: []string{EngineMySQL},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search when markdown underscores are applied",
|
||||
@@ -100,12 +100,12 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to exclude messages that contain a search term",
|
||||
Fn: testFilterMessagesWithATerm,
|
||||
Tags: []string{EngineMySql, EnginePostgres},
|
||||
Tags: []string{EngineMySQL, EnginePostgres},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search using boolean operators",
|
||||
Fn: testSearchUsingBooleanOperators,
|
||||
Tags: []string{EngineMySql, EnginePostgres, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EnginePostgres, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search with combined filters",
|
||||
@@ -115,7 +115,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to ignore stop words",
|
||||
Fn: testSearchIgnoringStopWords,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should support search stemming",
|
||||
@@ -146,7 +146,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should support terms with underscore",
|
||||
Fn: testSupportTermsWithUnderscore,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should search or exclude post using hashtags",
|
||||
@@ -211,7 +211,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search in deleted/archived channels",
|
||||
Fn: testSearchInDeletedOrArchivedChannels,
|
||||
Tags: []string{EngineMySql, EnginePostgres},
|
||||
Tags: []string{EngineMySQL, EnginePostgres},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search terms with dashes",
|
||||
@@ -228,7 +228,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search terms with underscores",
|
||||
Fn: testSearchTermsWithUnderscores,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search posts made by bot accounts",
|
||||
@@ -253,7 +253,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should not support slash as character separator",
|
||||
Fn: testSlashShouldNotBeCharSeparator,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search in comments",
|
||||
@@ -263,7 +263,7 @@ var searchPostStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search terms within links",
|
||||
Fn: testSupportSearchTermsWithinLinks,
|
||||
Tags: []string{EngineMySql, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should not return links that are embedded in markdown",
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
const (
|
||||
EngineAll = "all"
|
||||
EngineMySql = "mysql"
|
||||
EngineMySQL = "mysql"
|
||||
EnginePostgres = "postgres"
|
||||
EngineElasticSearch = "elasticsearch"
|
||||
EngineBleve = "bleve"
|
||||
|
||||
@@ -96,12 +96,12 @@ var searchUserStoreTests = []searchTest{
|
||||
{
|
||||
Name: "Should be able to search inactive users",
|
||||
Fn: testShouldBeAbleToSearchInactiveUsers,
|
||||
Tags: []string{EngineMySql, EnginePostgres, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EnginePostgres, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should be able to search filtering by role",
|
||||
Fn: testShouldBeAbleToSearchFilteringByRole,
|
||||
Tags: []string{EngineMySql, EnginePostgres, EngineElasticSearch},
|
||||
Tags: []string{EngineMySQL, EnginePostgres, EngineElasticSearch},
|
||||
},
|
||||
{
|
||||
Name: "Should ignore leading @ when searching users",
|
||||
|
||||
Ссылка в новой задаче
Block a user