-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Moved reverse() to after filter() so we can keep consistent order #3244
Conversation
Do you think it would be much work to add a test for this? Would probably be a good thing to check for regression. |
@trabus is correct, this detail must be tested. |
@trabus @stefanpenner I added a test that shows that it fails when we call this method twice. This is what happens when we get the lookupPaths for the main blueprint and then a second time for the test blueprint |
@nathanpalmer any luck on getting the tests passing though? |
@stefanpenner The test I added and the test I modified are passing just fine. The master build however wasn't passing when I forked. It seems only related to the iojs build starting with this commit and this build. |
It's actually been failing since this was merged. As far as the tests go, lgtm 👍 |
If you rebase after #3250 gets merged in, we can be sure. |
#3250 is merged, can you rebase? |
Sure, I'll rebase when I get home. |
5ba2a8a
to
171d1de
Compare
Moved reverse() to after filter() so we can keep consistent order
Thanks! |
I have a project that has multiple "overrides" for blueprints. However the paths for the main blueprint and the test blueprint were coming up in an inconsistent order. That means I would get the main blueprint for one project and the test blueprint for another.
To help illustrate the problem I have this
When I run this command
It chooses the adapter blueprint from
in-repo addon
and the adapter-test blueprint fromember-coffeescript
. Even-though both blueprints exist in thein-repo addon
. When I traced it down it seemed to work everytime as long as we reverse after the filter.