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

getDestFilePath is called on Filter and not subclasses #51

Closed
wants to merge 1 commit into from

Conversation

ghedamat
Copy link

this avoids a bug where a subclass implementation has side-effect

e.g. broccoli assets rev

/cc @elucid

this avoids a bug where a subclass implementation has side-effect

e.g. broccoli assets rev
@ghedamat
Copy link
Author

Or.. If we think this is intended. We can try to patch broccoli-asset-rev and remove the side effects there if we think this should be how getDestFilePath works (by calling the subclass implementation)

@rwjblue
Copy link
Member

rwjblue commented Mar 31, 2016

In general, we should call the instances method (what this does currently on master).

Also, In chatting with @elucid I believe that he mentioned that getDestPath was being called for all files regardless of exclusion/inclusion, which seems wrong (we should investigate).

@ghedamat
Copy link
Author

@rwjblue agreed,

happy to close this and try a better path

@stefanpenner
Copy link
Collaborator

this seems fishy, so the idea is getDestFilePath cannot be refined by subclasses?

@ghedamat
Copy link
Author

Yeah. But the more we think about it the more it feels wrong.

I think we'll have to change the implementation in asset-rev instead.

I'm inclined to close this pr for now c/d?

@rwjblue
Copy link
Member

rwjblue commented Mar 31, 2016

Ya, confirm.

@rwjblue rwjblue closed this Mar 31, 2016
@ghedamat ghedamat deleted the fix-build-hook branch April 1, 2016 03:31
@elucid
Copy link
Contributor

elucid commented Apr 1, 2016

@rwjblue @stefanpenner PR to update broccoli-asset-rev is here: ember-cli/broccoli-asset-rev#93

/cc @ghedamat

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.

4 participants