Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Abdulkadir Poyraz
f12ca27bac [MM-24522] remove duplication in OR and IncludeDeletedChannels params for search (#14573) 2020-08-31 13:40:58 +02:00
Tomas
5dcd37d7e3 Convert tests in model/search_params_test.go into table testing (#14058)
* Convert tests in model/search_params_test.go into table testing

* remove the not needed definitions

* gofmt

* update msg strings

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
2020-05-05 09:39:02 +02:00
Jesús Espino
4cbea3d5b5 Use require.Len instead of require.Equal for length checks in model/search_params_test.go (#13410)
* Use require.Len instead of require.Equal for length checks in model/search_params_test.go

* Using require.Empty instead of require.Len(t, X, 0)
2019-12-17 12:12:38 +01:00
Jesús Espino
a63684fcb5 Consistent license message for all the go files (#13235)
* Consistent license message for all the go files

* Fixing the last set of unconsistencies with the license headers

* Addressing PR review comments

* Fixing busy.go and busy_test.go license header
2019-11-29 12:59:40 +01:00
Marc Argent
97496d4e29 Migrate tests from model/search_params_test.go to use testify (#12650) 2019-10-11 19:54:04 +02:00
Siyuan Liu
e4bb8cd887 MM-11359: support excluding results from search (#11196) 2019-08-12 14:03:42 +02:00
Saturnino Abril
69e10651c9 [MM-12484] Fix return search posts on date filters (#9568)
* fix return search posts on date filters

* add name to test cases
2018-10-05 22:25:34 +08:00
Dmitry Samuylov
42806ae965 Feature/search after before on (#9219)
* initial implementation of after, before, on search flags allowing to restrict the search to a specific day or a date range

* missed setting beforeDate in SearchParams in one place

* fixed condition when only flags are used for search without any plain terms

* changed date format used for after/before/on flags to be in ISO8601 format as suggested in PR comments, added a helper function to pad month and day with zeroes allowing the user user either format, with or without leading zeroes

* corrected expected compare to date setting for the TestParseDateFilterToTimeISO8601 test

* fixed a bug for the scenario when you only have the date flags without any terms, added a couple of tests for that scenario

* updated the date filter logic to use parameters to construct the query instead of simply appending strings together, as suggested in the pull request comments

* added search unit test using date flags

* added a helper function to create a test post with a createat date manually set, updated the test for search using date flags to create test posts with different createat dates to be able to better test the functionality

* MM-11817 Add support for after/before/on search flags with Elasticsearch

* add support to search posts to perform the search in context of the client's timezone when filtering by createat date using on: after: before: flags

* updated tests to match the new signature
2018-08-28 13:09:32 -04:00
Chris
c5e8cb25ca simplify things (#7735) 2017-10-30 11:57:24 -05:00
Harrison Healey
fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Harrison Healey
cd4172bfd8 Stopped removing *s from the end of search phrases 2016-03-04 10:05:11 -05:00
hmhealey
97ede2a428 Updated serverside hashtag regex to ignore more punctuation around words 2016-01-26 10:20:36 -05:00
Christopher Speller
cd31131188 Fixing searching for quotations 2015-11-06 10:09:51 -05:00
hmhealey
2383d5dd37 Changed post searching to allow searching by multiple users/channels 2015-10-23 17:28:02 -04:00
hmhealey
06fd374c19 Added from:, in:, and channel: search modifiers 2015-10-19 13:25:19 -04:00