You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec
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.
8 years ago
..
controllers Admin reports controller improvements (#1714) 8 years ago
fabricators Refresh webfinger (#1323) 8 years ago
features Introduce capybara and first feature spec (#1801) 8 years ago
fixtures Imports controller errors (#1553) 8 years ago
helpers Rename admin/accounts_helper to admin/filter_helper (#1816) 8 years ago
javascript Add unit tests for https://github.com/tootsuite/mastodon/pull/1574 (#1584) 8 years ago
lib Fix tests issue introduced in #1607 (#1639) 8 years ago
mailers Add digest e-mails 8 years ago
models Admin reports controller improvements (#1714) 8 years ago
presenters Clean up about page (#1282) 8 years ago
requests Improve i18n chooser (#1804) 8 years ago
routing Clean up well-known routes/controllers (#1649) 8 years ago
services Account search service refactor (#1791) 8 years ago
support/matchers/model add more tests to models 8 years ago
views add basic microformats tests (#1803) 8 years ago
i18n_spec.rb Improve docs 8 years ago
rails_helper.rb Introduce capybara and first feature spec (#1801) 8 years ago
spec_helper.rb Organize coverage dirs (#1695) 8 years ago