-
Notifications
You must be signed in to change notification settings - Fork 138
Sort modules by the specified criteria on #306 #315
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
Conversation
The introduced changes creates a predictable outcome of modules by using the criteria specified in #306 to order the modules first by focus area, then by experimental and lastly by module name, in this particular case the slug was used as the name due the slug is normalized into a lowercase strings. Fixes #306
felixarntz
left a comment
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.
@mitogh Looks great, thanks! Just a few minor things worth improving.
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
Add warngins back to the terminal in the scenario where a module is lacking a set of the required properties. Additionally fixed the fact that the `undefined` check was done against the object and would result in false values.
felixarntz
left a comment
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.
Great work @mitogh!
|
@eugene-manuilov Can you please review this so that we can merge it soon? |
eugene-manuilov
left a comment
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.
Almost looks good to me. Left a comment and a nit-pick suggestion. Cris, please, take a look.
|
Thanks @eugene-manuilov would address your PR feedback over the weekend. |
Co-authored-by: Eugene Manuilov <[email protected]>
…:WordPress/performance into fix/306-order-modules-by-custom-criteria
Based on the feedback a single warning is displayed when multiple problems exists in the module order.
eugene-manuilov
left a comment
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 to me. Thanks, @mitogh. Added one more suggestion that is just a nitpick and shouldn't block this PR. Approved.
Co-authored-by: Eugene Manuilov <[email protected]>
|
@eugene-manuilov @mitogh Can one of you please address the JS lint error here? Update: Fixed it below. |
Summary
The introduced changes creates a predictable outcome of modules by using the criteria specified in #306 to order the modules first by focus area, then by experimental and lastly by module name, in this particular case the slug was used as the name due the slug is normalized into a lowercase strings.
Fixes #306
Relevant technical choices
Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.