summaryrefslogtreecommitdiff
path: root/app/helpers/sorting_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Minor review cleanup60798-follow-up-simplify-sort-direction-logicEzekiel Kigbo2019-07-121-1/+1
| | | | Minor refactor specs
* Added tests for sort icon currentEzekiel Kigbo2019-07-121-26/+20
| | | | Refactor sort direction icon
* Added test for admin/projectsEzekiel Kigbo2019-07-121-22/+18
| | | | | | | | Added tests with project_list_filter_bar set to off Added tests for projects_sort_option_titles Refactor project sort options hash
* Added tests for current behaviourEzekiel Kigbo2019-07-121-10/+5
|
* Allow issues to be sorted by relative_positionBrett Walker2019-05-281-23/+32
| | | | | - adding a "Manual" option to the dropdown - show 100 issues list when manually sorting
* Added blank lines to meet style guideEzekiel Kigbo2019-05-061-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Un-nest title variable output Update spec test names Rename sort_value_most_stars -> sort_value_stars_desc Rename sorted_by_stars -> sorted_by_stars_desc Renname sort_value_most_stars_asc -> sort_value_stars_asc Invert feature check, assign feature condition to a variable Inline conditional nav bar rendering Invert conditional label Added follow up task Fix filters returning 0 projects show the wrong view Move click action out of test expectation Use proper variable name for project in before block Rename projects_sort_admin_options_hash Renamed projects_sort_admin_options_has to old_projects_sort_options_hash as its not only used on the admin screen Fix extra whitespace errors Stub project_list_filter_bar in the projects_helper specs Added follow up task for `show_projects?` Removed url test expectations
* Minor review fixesEzekiel Kigbo2019-05-061-8/+11
| | | | | | | | | | Externalize strings Simplify locals passed through views Ensure we can still filter when logged out Cleanup conditional rendering for explore filters
* Ensure we dont apply changes to admin/projectsEzekiel Kigbo2019-05-061-7/+17
| | | | | | | | | | The changes introduced for the project filter bar should not apply to the admin projects screen. Remove "Owned by me", "Owned by anyone" options Update the dropdown option Last created -> Created date. Introduces fixes for spacing and minor styling across breakpoints.
* Updated layout for various breakpointsEzekiel Kigbo2019-05-061-4/+54
| | | | | | | | | | Updated translations Adds sort direction dropdown Allows the project list sorting direction to be changed, available options can be sorted ascending or descending. Implements the changes from the UX review.
* Resolve "Sort by due date and popularity in both directions"Nermin Vehabovic2019-05-041-2/+16
|
* Add last activity to user administrationBrandon Labuschagne2019-02-051-1/+19
| | | | | | | | | The columns 'Created on' and 'Last activity' have been added to the admin -> users view. Sorting options have also been added for last activity and the search bar has been moved to match the issues page.
* Renames Milestone sort into Milestone due dateJacopo2018-12-311-1/+1
|
* Backport of 8810-fix-weight-sortMario de la Ossa2018-12-181-9/+10
|
* Change `page_filter_path` default behaviorHeinrich Lee Yu2018-12-141-1/+1
| | | | | | `label_name` is now not excluded by default Also removed `label: true` from calls to the helper
* Fix issuables sort direction button parametersFelipe Artur2018-12-111-1/+1
| | | | | Fix labels parameter being deleted from filter when clicking sort direction button on issues/merge requests search bar.
* Sort issues and merge requests in ascending and descending orderFatih Acet2018-12-061-0/+47
|
* Fix losing search query when sort users on admin users pageDmitriy Zaporozhets2018-12-031-0/+12
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add new sort option "most_stars" to "Group > Children" pagesRene Hennig2018-10-111-4/+10
|
* Allows to sort projects by most stars🙈 jacopo beschi 🙉2018-09-211-1/+10
|
* Merge branch 'feature/runner-state-filter-for-admin-view' into 'master'Grzegorz Bizon2018-09-141-1/+10
|\ | | | | | | | | Feature: State filter for admin runners view See merge request gitlab-org/gitlab-ce!19625
| * add sort dropdown to admin runners pageAlexis Reigel2018-08-291-1/+10
| |
* | Add sort dropdown to project labels page and group labels pageDmitriy Zaporozhets2018-09-101-0/+11
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Enable frozen string for app/helpers/**/*.rbgfyoung2018-09-061-0/+2
|/ | | | Partially addresses #47424.
* Enable sorting by name in the Groups dropdownMark Fletcher2017-12-201-0/+2
|
* Employ Groups dropdown in admin viewMark Fletcher2017-12-201-2/+6
|
* Groups tree enhancements for Groups Dashboard and Group HomepageKushal Pandya2017-10-041-0/+11
|
* Improve list of sorting optionsVitaliy @blackst0ne Klachkov2017-09-231-131/+173
|
* Make branches page translatableWinnie Hellmann2017-09-221-27/+27
|
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fixed tags sort dropdown being emptyPhil Hughes2017-05-031-0/+8
| | | | Closes #31618
* Fixed branches sort toggle being emptybranches-sort-toggle-emptyPhil Hughes2017-04-181-0/+8
| | | | Closes #30950
* ProjectsFinder should handle more optionsJacopo2017-04-061-2/+18
| | | | | | | | | | | | | | | | | | | 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.
* Add dropdown sort to project milestonesGeorge Andrinopoulos2017-03-241-0/+28
|
* Allow sorting by due date and label prioritySean McGivern2017-03-151-1/+10
|
* Rename priority sorting option to label priorityDimitrie Hoekstra2017-03-071-1/+1
|
* Enable Performance/RedundantMergeDouwe Maan2017-02-231-1/+1
|
* Add more storage statisticsMarkus Koller2016-12-211-1/+10
| | | | | | | | | | | | | This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
* Add option to sort group/project members by access levelDouglas Barbosa Alexandre2016-12-161-0/+18
|
* Adds sort dropdown for group membersNur Rony2016-12-161-1/+40
|
* Restore `Largest repository` sort option on admin projects page20317-admin-cant-order-by-sizeAlfredo Sumaran2016-08-151-1/+7
|
* State specific default sort order for issuableszs2016-08-011-2/+2
| | | | | | | | | | | | | | | Provide more sensible default sort order for issues and merge requests based on the following table: | type | state | default sort order | |----------------|--------|--------------------| | issues | open | last created | | issues | closed | last updated | | issues | all | last created | | merge requests | open | last created | | merge requests | merged | last updated | | merge requests | closed | last updated | | merge requests | all | last created |
* Sort by label priorityThijs Wouters2016-06-061-1/+10
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix functionality of due this week. Add due this month and overdue, remove ↵Mehmet Beydogan2016-04-201-2/+2
| | | | | | | due tomorrow to issues. Fix typos on sorting dropdown related to due date Remove constant array and add Structs on Issue to keep due date data to fill options
* Add due_date:time field to Issue modelMehmet Beydogan2016-04-201-0/+18
| | | | | | | | | | | Add due_date text field to sidebar issue#show Add ability sorting issues by due date ASC and DESC Add ability to filtering issues by No Due Date, Any Due Date, Due to tomorrow, Due in this week options Add handling issue due_date field for MergeRequest Update CHANGELOG Fix ambigous match for issues#show sidebar Fix SCREAMING_SNAKE_CASE offenses for due date contants Add specs for due date sorting and filtering on issues
* Show active sorting method for projects listDmitriy Zaporozhets2016-03-041-0/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add ability to see and sort on vote count from Issues and MR listssee-and-sort-on-vote-count-mr-issuesDouglas Barbosa Alexandre2016-02-171-0/+18
|
* Merge branch 'group-issues-sorting' into 'master' Dmitriy Zaporozhets2016-01-111-2/+2
|\ | | | | | | | | | | | | | | | | | | | | Improve performance of getting issues on group level For testing I used the URL http://localhost:3000/groups/gitlab-org/issues?milestone_title=8.1. Prior to these changes said URL would take about 10-12 seconds to load. By applying these changes the loading time has been reduced to roughly 2-3 seconds. There's still some stuff going on in some views that I have to look at, resolving those changes might reduce the loading time a bit more. I also still have to check if I didn't break too many tests. Fixes: gitlab-org/gitlab-ce#3707 gitlab-org/gitlab-ce#4071 See merge request !2318
| * Sort by ID when sorting using "Recently created"Yorick Peterse2016-01-071-2/+2
| | | | | | | | | | | | | | | | | | Sorting by "id" has the same effect as sorting by created_at while performing far better and without the need of an extra index (in case one wanted to speed up sorting by "created_at"). Sorting by "Recently updated" still uses the physical "updated_at" column as there's no way to use the "id" column for this instead.
* | changes titlessorting-dropdown-orderJacob Schatz2016-01-071-2/+2
|/
* Refactor sorting in projectDmitriy Zaporozhets2015-02-051-0/+79
|