-
- Downloads
Add type, limit, offset, min_id, max_id, account_id to search API (#10091)
* Add type, limit, offset, min_id, max_id, account_id to search API Fix #8939 * Make the offset work on accounts and hashtags search as well * Assure brakeman we are not doing mass assignment here * Do not allow paginating unless a type is chosen * Fix search query and index id field on statuses instead of created_at
Showing
- app/chewy/statuses_index.rb 1 addition, 1 deletionapp/chewy/statuses_index.rb
- app/controllers/api/v1/accounts/search_controller.rb 3 additions, 2 deletionsapp/controllers/api/v1/accounts/search_controller.rb
- app/controllers/api/v1/search_controller.rb 9 additions, 17 deletionsapp/controllers/api/v1/search_controller.rb
- app/controllers/api/v2/search_controller.rb 1 addition, 1 deletionapp/controllers/api/v2/search_controller.rb
- app/models/account.rb 8 additions, 8 deletionsapp/models/account.rb
- app/models/tag.rb 6 additions, 2 deletionsapp/models/tag.rb
- app/services/account_search_service.rb 6 additions, 5 deletionsapp/services/account_search_service.rb
- app/services/search_service.rb 65 additions, 19 deletionsapp/services/search_service.rb
- config/brakeman.ignore 34 additions, 147 deletionsconfig/brakeman.ignore
- spec/services/account_search_service_spec.rb 18 additions, 18 deletionsspec/services/account_search_service_spec.rb
- spec/services/search_service_spec.rb 10 additions, 10 deletionsspec/services/search_service_spec.rb
Loading
Please register or sign in to comment