Skip to content
Snippets Groups Projects

Fix ordering of commits in the network graph.

Merged username-removed-407765 requested to merge 30973-fix-network-graph-ordering into master
All threads resolved!

What does this MR do?

  • We upgraded rugged to 0.25.1.1 in !10286 (merged) for %9.1

  • Prior to this upgrade, the default sort order for commits returned by Gitlab::Git::Repository#find_commits was Rugged::SORT_DATE, which the graph relied on.

  • While upgrading rugged, the MR also changed this default to Rugged::SORT_NONE, which broke commit ordering in the graph.

  • This MR adds an option to Gitlab::Git::Repository#find_commits to sort by date, and changes the graph builder Network::Graph so it explictly requests the :date sort order

What are the relevant issue numbers?

Closes #30973 (closed)

Tasks

  • Investigation
  • Implementation
  • Tests
    • Added
      • Add more tests for Network::Graph
      • Compare results of this fix v/s 9.0 and confirm that there are no changes
    • Passing
  • Meta
    • CHANGELOG entry created
    • API support added
    • Branch has no merge conflicts with master
    • Squashed related commits together
    • Added screenshots
    • Check for clean merge with EE
    • Documentation added/updated
  • Review
    • Reviewer
    • Maintainer
  • Wait for merge

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
  • James Lopez
  • @timothyandrew LGTM! left a couple of minor comments. Thanks!

  • username-removed-407765 resolved all discussions

    resolved all discussions

  • mentioned in commit 3f1c7d85

  • Thanks for the review, @jameslopez!

    @DouweM: Could you take care of the final review for this MR?

  • added 2 commits

    Compare with previous version

  • Douwe Maan approved this merge request

    approved this merge request

  • Douwe Maan enabled an automatic merge when the pipeline for 3f1c7d85 succeeds

    enabled an automatic merge when the pipeline for 3f1c7d85 succeeds

  • merged

  • Douwe Maan mentioned in commit 4d4aefc5

    mentioned in commit 4d4aefc5

  • Picked into 9-1-stable, will go into 9.1.2

  • Douwe Maan mentioned in commit c6b13536

    mentioned in commit c6b13536

  • mentioned in merge request !11057 (merged)

  • mentioned in issue #31939 (moved)

  • mentioned in issue gitlab#9696

  • Please register or sign in to reply
    Loading