Skip to content

Keep order of the operation when merging values - #260

Merged
psss merged 2 commits into
mainfrom
operations-order
Dec 2, 2024
Merged

psss merged 2 commits into
mainfrom
operations-order

Conversation

@psss

@psss psss commented Dec 2, 2024

Copy link
Copy Markdown
Member

When inheriting, do not sort the keys but apply the merging operation in the original order provided by the user.

Fix #232.

@psss psss added the base label Dec 2, 2024
@psss psss added this to the 1.5 milestone Dec 2, 2024
@psss

psss commented Dec 2, 2024

Copy link
Copy Markdown
Member Author

/packit build

@psss

psss commented Dec 2, 2024

Copy link
Copy Markdown
Member Author

Integration test /tests/core/order revealed that we've changed order of the nodes when climb() or prune() is called. Should be fixed by d1511f1.

Comment thread fmf/base.py Resolved
@psss
psss requested a review from kkaarreell December 2, 2024 18:04

@martinhoyer martinhoyer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with the relevant code, but make sense to me. My only question would be the same as Karel's

psss added 2 commits December 2, 2024 20:05
When inheriting, do not sort the keys but apply the merging
operation in the original order provided by the user.

Fix #232.
So far we were always providing fmf nodes in alphabetical order
when `climb()` or `prune()` was called. Let's keep that behavior.
@psss
psss force-pushed the operations-order branch from d1511f1 to 10a2911 Compare December 2, 2024 19:05
@psss psss self-assigned this Dec 2, 2024
@psss
psss merged commit eb744f0 into main Dec 2, 2024
@psss
psss deleted the operations-order branch December 2, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent order of operations

4 participants