-
- Downloads
ProjectsFinder should handle more options
Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
Showing
- app/controllers/admin/projects_controller.rb 1 addition, 0 deletionsapp/controllers/admin/projects_controller.rb
- app/controllers/concerns/filter_projects.rb 0 additions, 17 deletionsapp/controllers/concerns/filter_projects.rb
- app/controllers/concerns/params_backward_compatibility.rb 7 additions, 0 deletionsapp/controllers/concerns/params_backward_compatibility.rb
- app/controllers/dashboard/projects_controller.rb 15 additions, 12 deletionsapp/controllers/dashboard/projects_controller.rb
- app/controllers/explore/projects_controller.rb 14 additions, 20 deletionsapp/controllers/explore/projects_controller.rb
- app/controllers/groups/application_controller.rb 1 addition, 1 deletionapp/controllers/groups/application_controller.rb
- app/controllers/groups_controller.rb 6 additions, 5 deletionsapp/controllers/groups_controller.rb
- app/controllers/projects/forks_controller.rb 1 addition, 1 deletionapp/controllers/projects/forks_controller.rb
- app/controllers/users_controller.rb 1 addition, 1 deletionapp/controllers/users_controller.rb
- app/finders/group_projects_finder.rb 40 additions, 19 deletionsapp/finders/group_projects_finder.rb
- app/finders/issuable_finder.rb 2 additions, 6 deletionsapp/finders/issuable_finder.rb
- app/finders/labels_finder.rb 1 addition, 1 deletionapp/finders/labels_finder.rb
- app/finders/projects_finder.rb 81 additions, 7 deletionsapp/finders/projects_finder.rb
- app/finders/todos_finder.rb 1 addition, 1 deletionapp/finders/todos_finder.rb
- app/helpers/sorting_helper.rb 18 additions, 2 deletionsapp/helpers/sorting_helper.rb
- app/models/project.rb 6 additions, 1 deletionapp/models/project.rb
- app/policies/group_policy.rb 2 additions, 2 deletionsapp/policies/group_policy.rb
- app/services/search/global_service.rb 1 addition, 1 deletionapp/services/search/global_service.rb
- app/views/dashboard/projects/_zero_authorized_projects.html.haml 1 addition, 1 deletion...ws/dashboard/projects/_zero_authorized_projects.html.haml
- app/views/shared/projects/_dropdown.html.haml 1 addition, 1 deletionapp/views/shared/projects/_dropdown.html.haml
Please register or sign in to comment