discourse/lib
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
..
active_record/connection_adapters FIX: Connections were incorrectly going to master when failing over. 2016-05-30 11:50:02 +08:00
auth FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
autospec FEATURE: in dev use #focus to focus on failing test 2016-07-08 12:58:30 +10:00
backup_restore Fix typo. 2016-09-21 16:04:41 +08:00
common_passwords fix build & add migration to clear common passwords cache 2016-03-03 19:39:22 +01:00
demon FEATURE: prioritize sidekiq jobs 2016-04-07 12:56:43 +10:00
email FEATURE: sparkpost webhook 2016-09-26 22:13:34 -07:00
emoji add missing flags emoji 2016-09-19 19:39:46 +02:00
es6_module_transpiler REFACTOR: Migrate markdown functionality in ES6 2016-07-11 12:57:05 -04:00
file_store REFACTOR: Get bucket name from S3Helper. 2016-08-19 14:08:37 +08:00
freedom_patches Split out common functions into `discourse-common` module 2016-09-22 09:52:19 -04:00
guardian FEATURE: add min_trust_level_to_edit_post 2016-10-01 02:12:27 +10:00
highlight_js Updated highlight.js 2016-03-09 08:58:44 +01:00
i18n/backend FIX: Use fallback locales when searching for translations 2016-02-22 22:48:55 +01:00
import
import_export FEATURE: Category/topic importer skips objects that it has already imported. 2016-02-23 12:19:08 -05:00
javascripts fix deprecation comment in momentjs 2016-05-21 12:49:29 +02:00
middleware FIX: Use a cookie to bypass the anon cache 2015-10-28 17:16:56 -04:00
onebox Rename `SiteSetting#use_https` to `force_https`. 2016-06-29 15:02:43 +08:00
plugin FIX: Plugin Custom emoji weren't working correctly on the server side 2016-07-22 12:59:43 -04:00
pretty_text FEATURE: Admins should be able to create polls even when plugin is disabled. 2016-07-13 18:05:19 +08:00
rate_limiter FIX: do not raise exception if user not found while rate limiting 2016-04-13 20:08:03 +05:30
sass Add some styling to print redux version 2016-10-12 14:00:05 -03:00
scheduler clean up formatting reports 2016-05-31 07:57:28 +10:00
search FIX: include pinned status in search results 2016-03-18 16:26:20 +11:00
sidekiq FIX: disable scheduled jobs when in readonly mode 2016-01-11 18:31:28 +01:00
site_settings fix the build 2015-09-09 15:34:53 +02:00
tasks FEATURE: support multisite configuration for search:reindex task 2016-10-01 08:54:15 +02:00
validators Revert "FIX: wasn't able to update category's settings" 2016-09-22 11:29:44 +08:00
wizard FIX: Incorrect color scheme name in admin after using wizard 2016-09-22 11:16:01 -04:00
admin_constraint.rb FEATURE: only allow sidekiq in master site when hosted on multisite 2016-03-17 00:26:07 +11:00
admin_user_index_query.rb FIX: trim leading & trailing whitespaces in admin user search 2016-10-10 16:18:57 +02:00
age_words.rb reused value of Time.now in a method 2015-12-01 21:06:37 +00:00
archetype.rb
auth.rb Added Instagram login method 2016-02-25 12:13:59 +10:00
avatar_lookup.rb FIX: don't overwrite custom uploaded avatar when selecting gravatar 2015-09-11 15:10:56 +02:00
badge_queries.rb FIX: Liked posts based badges were looking at all likes 2016-04-11 12:36:43 -04:00
cache.rb FIX: emoji cache could get corrupt 2015-02-19 16:58:22 +11:00
canonical_url.rb
category_badge.rb FIX: duplicate subfolder prefix in links in digest (#4179) 2016-04-26 11:18:34 -04:00
comment_migration.rb FEATURE: Add CommentMigration for db column comments 2015-07-28 13:14:07 -07:00
composer_messages_finder.rb FEATURE: Prompt users when they are entering duplicate links 2016-06-07 14:47:22 -04:00
configurable_urls.rb Don't blow up if Redis switches to READONLY 2015-04-24 14:37:16 -04:00
content_buffer.rb
cooked_post_processor.rb FIX: `nofollow` was being added during post processing when it shouldn't 2016-08-12 15:35:13 -04:00
crawler_detection.rb Add `YandexBot` to our list of crawlers 2016-07-26 13:21:37 -04:00
current_user.rb FEATURE: refresh session cookie at most once an hour 2016-07-25 12:07:31 +10:00
custom_renderer.rb
db_helper.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
directory_helper.rb
discourse.rb FIX: User enabled readonly mode was not working. 2016-08-25 23:31:59 +08:00
discourse_diff.rb FIX: Don't diplay character reference in HTML diffs (#4204) 2016-05-09 08:44:21 +02:00
discourse_event.rb Remove `DiscourseEvent.clear`. 2016-09-05 15:17:49 +08:00
discourse_hub.rb Hub must be called with https 2016-03-02 17:51:13 -05:00
discourse_iife.rb Update sprockets. (#4167) 2016-04-18 10:47:52 +08:00
discourse_plugin.rb
discourse_plugin_registry.rb REFACTOR: Migrate markdown functionality in ES6 2016-07-11 12:57:05 -04:00
discourse_redis.rb Failover messages really aren't warnings 2016-08-08 16:02:23 +10:00
discourse_tagging.rb FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00
discourse_updates.rb FEATURE: Installed Version link shows GitHub Compare to branch being followed 2016-08-02 06:18:44 -04:00
disk_space.rb FIX: Allow for large free disk space 2016-01-25 13:22:36 +11:00
distributed_cache.rb FIX: DistributedCache would fail serialization in some cases 2016-01-30 09:01:15 +11:00
distributed_memoizer.rb FIX: select appropriate period when redirecting to top 2015-09-21 20:28:20 +02:00
distributed_mutex.rb
edit_rate_limiter.rb Add better error messages for rate limits. 2015-09-24 13:52:46 -04:00
email.rb FEATURE: upgrade to Rails 4.2.4 2015-09-23 15:24:30 +10:00
email_cook.rb Email Cooker can onebox posts too 2016-07-18 15:00:12 -04:00
email_updater.rb FEATURE: move more urgent emails notifications to critical queue 2016-04-07 14:39:01 +10:00
enum.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
enum_site_setting.rb
excerpt_parser.rb FEATURE: remap emojis back for push notifications and desktop alerts 2016-10-11 13:03:48 +11:00
file_helper.rb FIX: increase read_timeout when downloading avatar 2016-03-24 17:40:03 +05:30
filter_best_posts.rb
flag_query.rb FEATURE: allow moderators to see flagged private messages 2015-02-16 13:03:04 +01:00
gaps.rb
global_path.rb FIX: when CDN assets are not in root path source maps fail 2016-02-05 13:05:47 +11:00
guardian.rb FEATURE: allow "developer" account flagging via developers table 2016-07-28 10:14:06 +10:00
has_errors.rb Add `PostCreator#create!`. 2016-07-15 11:36:06 +08:00
headless-ember.js
homepage_constraint.rb
html_prettify.rb FEATURE: remove dependency of Redcarpet 2015-09-24 13:37:53 +10:00
image_sizer.rb FIX: cropping GIF wasn't working 2016-07-27 18:48:02 +02:00
introduction_updater.rb Add new welcome message step 2016-09-22 09:52:19 -04:00
ip_addr.rb Replace certain uses of 'gsub' with 'tr' or 'chomp' for a speed 2016-06-10 22:08:37 -05:00
js_locale_helper.rb FIX: Ensure that the right locale exists before merging. 2016-09-30 15:01:42 +08:00
json_error.rb FIX: editing a post wasn't showing error messages from the server 2015-03-19 12:25:15 +01:00
letter_avatar.rb FIX: show letter avatars even if NGINX is not running in Dev mode 2015-11-25 14:42:46 +11:00
locale_file_walker.rb add missing dependency 2015-11-02 20:40:50 +01:00
markdown_linker.rb
mem_info.rb
memory_diagnostics.rb compact! only returns array if changes were made 2015-10-27 12:27:37 -04:00
message_bus_diags.rb MessageBus handles readonly redis now, no need to wrap it 2015-05-04 12:21:00 +10:00
mobile_detection.rb radically simplify our mobile user agent detection 2016-03-26 02:02:23 -07:00
new_post_manager.rb added tests and enabled queue when new setting is > 0 2016-09-22 14:51:36 -04:00
new_post_result.rb Support for custom reasons for things being queued for approval 2015-04-28 15:06:47 -04:00
notification_levels.rb Server side code for Watching First Post Only 2016-07-07 11:21:50 -04:00
oneboxer.rb FEATURE: New "First Onebox" badge 2016-04-12 15:31:14 -04:00
onpdiff.rb
pbkdf2.rb
permalink_constraint.rb FIX: permalink normalization not applied at constraint 2015-07-22 13:40:45 +10:00
pinned_check.rb
post_action_creator.rb Add specs for post action guardian 2015-12-30 20:52:36 +01:00
post_creator.rb Add notification level user preference when replying to a topic 2016-09-30 14:58:07 -04:00
post_destroyer.rb FIX: Post without a topic can be destroyed. 2016-09-05 19:00:49 +08:00
post_enqueuer.rb FIX: When approving/rejecting a post it should delete the user action 2015-04-24 15:25:47 -04:00
post_jobs_enqueuer.rb new hidden 'allow_staged_accounts' setting 2015-11-26 18:31:23 +01:00
post_merger.rb FIX: Revised post not updated correctly when merging posts. 2016-08-11 09:01:54 +08:00
post_revisor.rb FEATURE: allow changing post owners without creating post revision 2016-08-19 23:34:21 +05:30
pretty_text.rb FIX: Consider lazyYT divs as links when extracting 2016-09-22 16:50:24 -04:00
promotion.rb Promotion fails if the user account isn't old enough yet. 2015-04-14 12:14:59 -04:00
rate_limiter.rb FEATURE: Warn a user when they have few likes remaining 2016-03-18 11:30:29 -04:00
s3_helper.rb REFACTOR: Get bucket name from S3Helper. 2016-08-19 14:08:37 +08:00
score_calculator.rb PERF: make score calculator cheaper when site has long topics 2016-07-22 09:48:44 +10:00
screening_model.rb
search.rb FIX: don't stem the search term 2016-10-07 12:40:57 +11:00
single_sign_on.rb FEATURE: allow shipping bio markdown via SSO 2016-08-01 15:29:28 +10:00
site_setting_extension.rb Add specs to hidding settings when shadowed by a global. 2016-08-11 16:04:45 +08:00
site_setting_validations.rb FIX: ensure we have a bucket before enabling backups to S3 2015-09-16 15:55:26 +02:00
slug.rb FIX: prevent creation of tags with invalid characters 2016-10-12 15:44:36 -04:00
source_url.rb fix sourceURL so it works on ie11 and latest chrome 2015-05-28 14:43:12 +10:00
spam_handler.rb FIX: do not block registration for whitelisted IP address 2015-06-02 15:06:45 +05:30
sql_builder.rb PERF: Active Record #pluck is twice faster 2015-05-13 16:46:17 +10:00
staff_constraint.rb
suggested_topics_builder.rb PERF: cache category topic ids 2016-07-19 12:34:54 +10:00
system_message.rb Skip validations when creating a post by system user. 2016-07-15 11:36:29 +08:00
text_cleaner.rb Test for existing title 2016-03-21 23:06:39 -03:00
text_sentinel.rb FIX: allow long words if they contain periods 2016-09-13 09:15:05 +05:30
timeline_lookup.rb FIX: Deleted posts were showing the wrong dates in the timeline 2016-05-31 10:51:55 -04:00
topic_creator.rb FEATURE: Add toggle topic visibility button in popup menu. 2016-07-28 16:57:04 +08:00
topic_list_responder.rb Minor refactoring to help with Tags RSS 2015-02-12 11:53:21 -05:00
topic_query.rb Don't join on tags unnecessarily when matching all tags 2016-08-19 10:37:32 -05:00
topic_query_sql.rb FEATURE: digests choose topics you're watching or tracking first 2016-08-18 17:16:52 -04:00
topic_retriever.rb FEATURE: Support for a whitelist for embeddable host paths 2016-08-23 14:56:12 -04:00
topic_subtype.rb
topic_view.rb Second review fixes 2016-09-26 20:46:55 -03:00
topics_bulk_action.rb Use db schema for tags instead of plugin store and custom fields 2016-05-26 14:29:48 -04:00
trust_level.rb FIX: admin trust level user list URL should be consistent with new naming 2015-11-23 14:28:56 +05:30
twitter_api.rb FEATURE: Embed images in tweets with dimensions, if present 2016-05-11 16:11:26 -04:00
unread.rb FIX: "Dismiss Posts" corrupting read state 2014-10-31 09:40:35 +11:00
url_helper.rb FIX: absolute URL for CDN should always be rooted with a protocol 2016-09-05 15:57:46 +10:00
user_name_suggester.rb FIX: Don't suggest invalid username 2016-02-21 23:28:57 +01:00
version.rb Version bump to v1.7.0.beta5 2016-09-22 12:44:10 -04:00
wizard.rb FIX: Improve removing advanced filters 2016-10-14 19:04:10 -04:00