Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force deterministic order for 'outdated' command #681

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

joshspicer
Copy link
Member

@joshspicer joshspicer commented Nov 14, 2023

Currently the position of each Feature in the outdated command is non-deterministic due to the Promise.all. This isn't too big a deal for a user, but it's more intuitive to have the output be consistent between runs.

It's also a generally helpful assumption that the positions will are consistent (ie: writing units tests, which is how I noticed this).

This change mirrors the position of each Feature in the config (the input) before outputting.

@joshspicer joshspicer requested a review from a team as a code owner November 14, 2023 01:50
Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@joshspicer joshspicer merged commit 53ee019 into main Nov 14, 2023
37 checks passed
@joshspicer joshspicer deleted the joshspicer/deterministic-order-outdated branch November 14, 2023 13: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