discourse/spec
cpradio 1e7c69044c FIX: Improve removing advanced filters
Prior:
Entering `test after:5` and then removing the 5 via the search text field would result in the UI not updating

After:
UI updates after half a second

Removing it from the UI, removes it from the search field immediately.

Change the regex to detect filter words. This now matches what happens in search.rb, which gives a lot more flexibility (such as iterating over multiple `in:` terms)

Return [] when searchTerm is empty

Move .trim() to this.set('searchTerm', searchTerm) so it doesn't run twice (which was very obvious when watching the search term field)

More refactoring to make this a bit less complex

Update code based on review comments

FEATURE: Add common `in:` options
2016-10-14 19:04:10 -04:00
..
components FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
controllers FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
fabricators FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
fixtures don't send more than 1 reply per day to auto-generated emails 2016-06-28 16:42:05 +02:00
helpers modernize user agent "is mobile" test strings 2016-03-27 10:28:18 -07:00
integration FIX: Remove tag plugin code from tag hashtag check. 2016-08-02 10:59:12 +08:00
integrity Add locale step 2016-09-22 09:52:19 -04:00
jobs Upload Logos Step 2016-09-22 09:52:19 -04:00
mailers FIX: 'List-Unsubscribe' header wasn't added to emails sent when mailing_list_mode was enabled 2016-08-01 20:19:00 +02:00
models FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
phantom_js fix smoke test 2016-08-17 23:59:18 +02:00
serializers Add notification level user preference when replying to a topic 2016-09-30 14:58:07 -04:00
services FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
support FIX: Random Redis connection timeout failure in Travis. 2016-05-18 10:42:40 +08:00
views/omniauth_callbacks FIX: Weird spec 2016-06-10 11:32:32 -04:00
discourse_tagging_spec.rb FIX: prevent creation of tags with invalid characters 2016-10-12 15:44:36 -04:00
rails_helper.rb Allow other directories to be specified when accessing fixtures. 2016-08-18 16:34:43 +08:00