-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
feat: revamped taxonomy sort script #9818
Conversation
to really sort everything
# TODO: add check_taxonomies when taxonomies ready | ||
|
||
lint: lint_perltidy | ||
# TODO: add lint_taxonomies when taxonomies ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it dependent on this: #9843 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, but the other one is now merged.
It's more when taxonomy will be sorted !
return $a_prefix cmp $b_prefix if ($a_prefix ne $b_prefix); | ||
} | ||
return 0 if ($a eq $b); | ||
# en takes precedence over all others |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One issue is that for some taxonomies, we have chosen to have the xx: or the zz: entry be the canonical name, so that the canonical id does not change if we need to change the main English name. It's the case for nutrients.txt and units.txt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, I now never change first entry (for now). I think it's a different decision to change the main language !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, tested on a few files like units and nutrients
erronously removed !
Quality Gate passedIssues Measures |
to really sort everything (within an entry)
to really sort everything (within an entry)