Commit Graph

47 Commits

Author SHA1 Message Date
Ezekiel Kigbo 6accad69e2
Added blank lines to meet style guide
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
2019-05-06 16:42:44 +01:00
Ezekiel Kigbo b736a9f000
Minor review fixes
Externalize strings

Simplify locals passed through views

Ensure we can still filter when logged out

Cleanup conditional rendering for explore filters
2019-05-06 16:42:43 +01:00
Ezekiel Kigbo aebf22f639
Ensure we dont apply changes to admin/projects
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.
2019-05-06 16:41:47 +01:00
Ezekiel Kigbo 6daec21a16
Updated layout for various breakpoints
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.
2019-05-06 16:41:46 +01:00
Nermin Vehabovic 0a89c08c05 Resolve "Sort by due date and popularity in both directions" 2019-05-04 16:16:47 +00:00
Brandon Labuschagne d279cc9408 Add last activity to user administration
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.
2019-02-05 17:56:51 +02:00
Jacopo 1c91d042b5 Renames Milestone sort into Milestone due date 2018-12-31 14:28:40 +01:00
Mario de la Ossa 77cd95ae9d
Backport of 8810-fix-weight-sort 2018-12-18 14:35:40 -06:00
Heinrich Lee Yu 7d1a7261f0 Change `page_filter_path` default behavior
`label_name` is now not excluded by default

Also removed `label: true` from calls to the helper
2018-12-14 12:58:40 +08:00
Felipe Artur 61ad1da134 Fix issuables sort direction button parameters
Fix labels parameter being deleted from filter
when clicking sort direction button on issues/merge requests search bar.
2018-12-11 15:11:11 -02:00
Fatih Acet fbb4f15d1b Sort issues and merge requests in ascending and descending order 2018-12-06 16:57:19 +00:00
Dmitriy Zaporozhets 40c86cfede
Fix losing search query when sort users on admin users page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-12-03 11:54:21 +02:00
Rene Hennig caf0e44375 Add new sort option "most_stars" to "Group > Children" pages 2018-10-11 14:14:44 +00:00
🙈 jacopo beschi 🙉 c49c596d17 Allows to sort projects by most stars 2018-09-21 17:06:55 +00:00
Grzegorz Bizon 55c23a0935 Merge branch 'feature/runner-state-filter-for-admin-view' into 'master'
Feature: State filter for admin runners view

See merge request gitlab-org/gitlab-ce!19625
2018-09-14 09:03:44 +00:00
Dmitriy Zaporozhets 8d19f4b4a6
Add sort dropdown to project labels page and group labels page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-10 15:34:36 +03:00
gfyoung 1993a4449a Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
2018-09-06 17:33:46 -07:00
Alexis Reigel 34bdb74740
add sort dropdown to admin runners page 2018-08-29 15:02:54 +02:00
Mark Fletcher e7deeddc1b Enable sorting by name in the Groups dropdown 2017-12-20 19:34:50 +00:00
Mark Fletcher 225980db35 Employ Groups dropdown in admin view 2017-12-20 12:16:15 +00:00
Kushal Pandya de55396134 Groups tree enhancements for Groups Dashboard and Group Homepage 2017-10-04 22:49:42 +02:00
Vitaliy @blackst0ne Klachkov 0d236638b6 Improve list of sorting options 2017-09-23 11:46:53 +11:00
Winnie Hellmann 920c0de564 Make branches page translatable 2017-09-22 16:01:20 +00:00
Rémy Coutable d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Phil Hughes 9ee274c031 Fixed tags sort dropdown being empty
Closes #31618
2017-05-03 09:06:28 +01:00
Phil Hughes 476fc19743 Fixed branches sort toggle being empty
Closes #30950
2017-04-18 13:48:52 +01:00
Jacopo b996a82ff4 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.
2017-04-06 07:11:37 +02:00
George Andrinopoulos e118d48df9 Add dropdown sort to project milestones 2017-03-24 00:39:12 +00:00
Sean McGivern 101fddfa92 Allow sorting by due date and label priority 2017-03-15 17:02:37 +00:00
Dimitrie Hoekstra bfd33645f5 Rename priority sorting option to label priority 2017-03-07 17:12:53 +00:00
Douwe Maan 030baf70d2 Enable Performance/RedundantMerge 2017-02-23 09:31:57 -06:00
Markus Koller 3ef4f74b1a
Add more storage statistics
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.
2016-12-21 16:39:49 +01:00
Douglas Barbosa Alexandre 7783267d6c Add option to sort group/project members by access level 2016-12-16 20:28:38 -02:00
Nur Rony 09388b2021 Adds sort dropdown for group members 2016-12-16 20:28:33 -02:00
Alfredo Sumaran 7638ebe423 Restore `Largest repository` sort option on admin projects page 2016-08-15 16:01:23 -05:00
zs 84a3225b0c State specific default sort order for issuables
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       |
2016-08-01 11:28:56 +02:00
Thijs Wouters d8263b2851 Sort by label priority
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-06 11:59:49 -05:00
Mehmet Beydogan 61a306aa58 Fix functionality of due this week. Add due this month and overdue, remove 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
2016-04-20 15:42:09 -04:00
Mehmet Beydogan 3afd08170d Add due_date:time field to Issue model
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
2016-04-20 15:42:09 -04:00
Dmitriy Zaporozhets 38984a59ac Show active sorting method for projects list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-03-04 19:27:02 +01:00
Douglas Barbosa Alexandre 9823d00e0b Add ability to see and sort on vote count from Issues and MR lists 2016-02-17 11:32:02 -02:00
Dmitriy Zaporozhets 5500f9159f Merge branch 'group-issues-sorting' into 'master'
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
2016-01-11 15:28:41 +00:00
Jacob Schatz df18441e09 changes titles 2016-01-07 12:59:45 -05:00
Yorick Peterse 9dacc3bc56 Sort by ID when sorting using "Recently created"
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.
2016-01-07 14:53:02 +01:00
Dmitriy Zaporozhets bbca6a0abd Refactor sorting in project 2015-02-05 19:15:05 -08:00
Dmitriy Zaporozhets 6670c99487
Set proper filter words
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-04 12:12:51 +02:00
Dmitriy Zaporozhets d80a59c7b1
Create helper for sort drowdown option names
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-04 12:10:38 +02:00