Skip to content
Snippets Groups Projects

Remember project ordering when inside groups

Merged Lee Tickett requested to merge 18871_remember_project_ordering into master
All threads resolved!

What does this MR do?

Persists project sort order across both the project dashboard and the group projects list.

At the same time, added a missing option to sort projects by name (desc) on the dashboard.

Addresses request with 100 upvotes #18871 (closed)

Screenshots (strongly suggested)

sort_persist

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Lee Tickett

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 ---
2 title: Remember last used project ordering option across groups
3 merge_request:
  • Lee Tickett added 1 commit

    added 1 commit

    • 434c5581 - Add merge request # and author to changelog

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    Compare with previous version

  • Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits 6b976e32 and 0af193c6

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 3.15 MB 3.15 MB - 0.0 %
    mainChunk 1.95 MB 1.95 MB - 0.0 %

    Note: We do not have exact data for 6b976e32. So we have used data from: ed3c386e.
    The target commit was too new, so we used the latest commit from master we have info on.
    It might help to rerun the bundle-size-review job
    This might mean that you have a few false positives in this report. If something unrelated to your code changes is reported, you can check this comparison in order to see if they caused this change.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

    Edited by 🤖 GitLab Bot 🤖
  • Lee Tickett added 2 commits

    added 2 commits

    • b0844318 - Added set_sort_order overrides
    • 285a63df - Removing use of instance variable

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    • 254dec10 - Adding default values for tests

    Compare with previous version

  • Lee Tickett changed milestone to %13.7

    changed milestone to %13.7

  • mentioned in issue #18871 (closed)

  • Lee Tickett added 1 commit

    added 1 commit

    Compare with previous version

  • Lee Tickett changed the description

    changed the description

  • Lee Tickett marked the checklist item Changelog entry as completed

    marked the checklist item Changelog entry as completed

  • Lee Tickett added 1 commit

    added 1 commit

    • bf9b1123 - Added project sort order persistence specs

    Compare with previous version

  • Lee Tickett added 544 commits

    added 544 commits

    • bf9b1123...f1c82d9e - 542 commits from branch master
    • feb6dc4a - Merge remote-tracking branch 'upstream/master' into 18871_remember_project_ordering
    • e735e7c2 - Fix failing epics test by adding controller_name condition

    Compare with previous version

  • Lee Tickett changed the description

    changed the description

  • Lee Tickett marked this merge request as ready

    marked this merge request as ready

    • Author Contributor
      Resolved by Lee Tickett

      @robotmay_gitlab @tristan.read @sliaquat would you guys mind taking a first look at this please?

      My thoughts are that it's rather messy and I would love to hear any ideas on an alternative approach. HOWEVER, I feel like maybe there is some "tech debt" here and the whole sorting helper maybe needs reworking a little bit.

      To expand a little further on what led me to this conclusion... the sorting helper relies on overridden controller methods; sorting_field and default_sort_order for example. But often we want to use different multiple controllers/classes are being extended/included and the same controller is being used to display different "sortable lists".

      Perhaps it would be better to always "pass" the arguments (like my new technique) and do away with the overridden methods? Unless there's something i'm missing which makes these favourable?

      But anyway- that's not for this MR. I'm really keen to get this delivered "quickly" without huge refactoring as it's in such demand and such an old issue (100 votes/4 years old).

      Thanks!

  • Robert May
  • Lee Tickett added 1 commit

    added 1 commit

    • f99e75ca - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    • 1950248f - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    • cc33ed59 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Lee Tickett added 120 commits

    added 120 commits

    • cc33ed59...f6e3ac22 - 118 commits from branch master
    • 535f1fd7 - Merge remote-tracking branch 'upstream/master' into 18871_remember_project_ordering
    • d50b5478 - Applying suggestions

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    • 5a20858f - Refactoring based on suggestions

    Compare with previous version

  • Lee Tickett resolved all threads

    resolved all threads

  • Lee Tickett marked the checklist item Style guides as completed

    marked the checklist item Style guides as completed

  • Lee Tickett marked the checklist item Merge request performance guidelines as completed

    marked the checklist item Merge request performance guidelines as completed

  • Tristan Read approved this merge request

    approved this merge request

  • @leetickett The frontend looks good to me. I'll approve and pass to a maintainer :rocket:

    @psimyn would you mind giving this a maintainer review? Thanks :slight_smile:

  • Tristan Read assigned to @psimyn and unassigned @tristan.read

    assigned to @psimyn and unassigned @tristan.read

  • Lee Tickett added 331 commits

    added 331 commits

    Compare with previous version

  • Robert May approved this merge request

    approved this merge request

  • assigned to @smcgivern and unassigned @robotmay_gitlab

  • Simon Knox approved this merge request

    approved this merge request

  • unassigned @psimyn

  • Lee Tickett added 174 commits

    added 174 commits

    Compare with previous version

  • Lee Tickett added 1 commit

    added 1 commit

    Compare with previous version

  • Lee Tickett resolved all threads

    resolved all threads

  • assigned to @smcgivern

  • Sean McGivern approved this merge request

    approved this merge request

  • Sean McGivern enabled an automatic merge when the pipeline for b952aacc succeeds

    enabled an automatic merge when the pipeline for b952aacc succeeds

  • Danger is failing due to more than 20 commits: #227814

    I'll merge manually once the other jobs pass.

  • Sean McGivern canceled the automatic merge

    canceled the automatic merge

  • merged

  • Sean McGivern mentioned in commit 95d2846d

    mentioned in commit 95d2846d

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • Lee Tickett mentioned in issue #23888

    mentioned in issue #23888

  • Please register or sign in to reply
    Loading