Skip to content

Fixes #10713 - Duplicate entries in CommitOrderCalculator output#10714

Closed
sylfabre wants to merge 3 commits intodoctrine:2.15.xfrom
sylfabre:bug_10713
Closed

Fixes #10713 - Duplicate entries in CommitOrderCalculator output#10714
sylfabre wants to merge 3 commits intodoctrine:2.15.xfrom
sylfabre:bug_10713

Conversation

@sylfabre
Copy link
Copy Markdown
Contributor

@sylfabre sylfabre commented May 19, 2023

CommitOrderCalculator may return duplicate entries when visiting complex trees as dependencies nodes can be visited and added to the sorted list while visiting other nodes as reported by #10713 (this PR solves it)

The issue comes from line 142 where adjacent dependencies are visited: a given $adjacentVertex state can change to VISITED and this is not checked before adding it to the sorted node list.

@mpdude
Copy link
Copy Markdown
Contributor

mpdude commented May 31, 2023

Hey there 👋🏼,

I am actively working on major changes to the commit order computation. Could you please have a look at #10547 and/or try if the branch entity-level-commit-order (you can Composer-install it as dev-entity-level-commit-order!) solves the issues for you? If so, please leave a note in #10547.

@sylfabre
Copy link
Copy Markdown
Contributor Author

This PR is replaced by https://github.com/doctrine/orm/pull/10547/files

Thanks @mpdude

@sylfabre sylfabre closed this Jul 30, 2023
@sylfabre sylfabre deleted the bug_10713 branch July 30, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants