- Aug 28, 2020
-
-
Akihiko Odaki authored
* Replace incorrect use of distinct with group Some uses of ActiveRecord::QueryMethods#distinct pass field names but they are incorrect for the current version of Rails. ActiveRecord::QueryMethods#group provides the expected behavior and benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8. * Introduce ApplicationController#cache_collection_paginated_by_id ApplicationController#cache_collection_paginated_by_id fuses ApplicationController#cache_collection and Paginable.paginate_by_id. An advantage of this method is that it prevents from modifying scope which Paginable.paginate_by_id may provide. ApplicationController#cache_collection always return an array and there is no possibility of the scope modification. It is also clear for a programmer, considering the implication of "cache". This method can also emit more efficient queries by using Cacheable.cache_ids before calling Paginable.paginate_by_id.
-
Akihiko Odaki authored
Some uses of ActiveRecord::QueryMethods#distinct pass field names but they are incorrect for the current version of Rails. ActiveRecord::QueryMethods#group provides the expected behavior and benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.
-
- May 10, 2020
-
-
Takeshi Umeda authored
* Add remote only to public timeline * Fix code style
-
- Mar 06, 2020
-
-
Eugen Rochko authored
-
- Sep 13, 2019
-
-
ThibG authored
Fixes #11289
-
- Sep 28, 2018
-
-
Eugen Rochko authored
* Allow min_id pagination in Feed#get * Add min_id pagination to home and list timeline APIs * Add min_id pagination to account statuses, public and tag APIs * Remove unused stub in reports API * Use min_id pagination in notifications, favourites, and fix order * Fix HomeFeed#from_database not using paginate_by_id
-
- Apr 02, 2018
-
-
Eugen Rochko authored
-
- Mar 01, 2018
-
-
Eugen Rochko authored
-
Eugen Rochko authored
Use Rails smart boolean cast to account for values such as "f", "0", "false", etc. Previously, if a param was present in the request, it would count as true.
-
- Jul 07, 2017
-
-
Eugen Rochko authored
-
- Jun 07, 2017
-
-
Matt Jankowski authored
* Move ApiController to Api/BaseController * API controllers inherit from Api::BaseController * Add coverage for various error cases in api/base controller
-
- May 31, 2017
-
-
Matt Jankowski authored
-
- May 23, 2017
-
-
Matt Jankowski authored
- Increase coverage to exercise all parts of each action - Move into namespace to share common code - Misc refactor of each action for smaller methods, simpler code
-