Glitch-Shrike/app/services
Matt Jankowski 40fd1de488 Account search service refactor (#1791)
* Begin coverage for account search service

* Coverage for hashtag query

* Coverage for calling local vs remote find based on domain presence

* Spec to check that exact matches are not duped

* Coverage of resolve option

* Coverage for account being provided

* Start to refactor account search service

* Isolate query username and domain methods

* Isolate exact_match method

* Extract methods for local and remote results

* Simplify local vs remote and account isoliation

* Extract methods for local and remote results

* Simplify de-dupe of exact match

* Simplify logic to check for non exact remotes

* Cache some methods

* Remove nil from exact_match from results array

* Return exact matches first

* Use find_remote even with no domain

Account.find_local is just an alias for Account.find_remote(user, nil) - so we
can not bother with the conditional here, and call find_remote directly.
2017-04-15 03:17:07 +02:00
..
concerns Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
pubsubhubbub
account_search_service.rb Account search service refactor (#1791) 2017-04-15 03:17:07 +02:00
after_block_service.rb
authorize_follow_service.rb
base_service.rb
block_domain_service.rb
block_service.rb
fan_out_on_write_service.rb
favourite_service.rb
fetch_atom_service.rb
fetch_link_card_service.rb
fetch_remote_account_service.rb
fetch_remote_resource_service.rb
fetch_remote_status_service.rb
follow_remote_account_service.rb
follow_service.rb
mute_service.rb
notify_service.rb
post_status_service.rb
precompute_feed_service.rb
process_feed_service.rb
process_hashtags_service.rb
process_interaction_service.rb
process_mentions_service.rb
reblog_service.rb
reject_follow_service.rb
remove_status_service.rb
search_service.rb
send_interaction_service.rb
subscribe_service.rb
suspend_account_service.rb
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
unsubscribe_service.rb
update_remote_profile_service.rb
warm_cache_service.rb