Glitch-Shrike/spec/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
..
account_search_service_spec.rb Account search service refactor (#1791) 2017-04-15 03:17:07 +02:00
authorize_follow_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
block_domain_service_spec.rb Add basic logging of who resolved report 2017-04-03 19:35:00 +02:00
block_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
fan_out_on_write_service_spec.rb Quick attempt to get pull requests passing 2017-04-04 12:14:44 -07:00
favourite_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
fetch_atom_service_spec.rb
fetch_remote_account_service_spec.rb
fetch_remote_status_service_spec.rb
follow_remote_account_service_spec.rb
follow_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
mute_service_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
post_status_service_spec.rb Use I18n for media attachment validation errors 2017-04-07 14:23:18 -04:00
precompute_feed_service_spec.rb
process_feed_service_spec.rb Split SalmonWorker into smaller parts, move profile updating into another job 2017-04-05 21:43:10 +02:00
process_interaction_service_spec.rb
process_mentions_service_spec.rb
reblog_service_spec.rb
reject_follow_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
send_interaction_service_spec.rb
unblock_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
unfollow_service_spec.rb Adding more unit tests. Fixing Salmon slaps XML 2017-02-12 17:30:15 +01:00
unmute_service_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
update_remote_profile_service_spec.rb Fix #1141, fix #1126 - Avatar/profile info fetching (#1215) 2017-04-08 13:26:03 +02:00