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

Fix HBS transforms for Ember 1.11/1.12 #155

Merged
merged 5 commits into from
Nov 9, 2017

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Nov 9, 2017

This PR also reenables the actual attribute stripping transform which was apparently disabled by mistake in #150.

/cc @pzuraq @marcoow @geekygrappler

@Turbo87 Turbo87 added the bug label Nov 9, 2017
@pzuraq
Copy link
Contributor

pzuraq commented Nov 9, 2017

The attribute stripping transform wasn’t a mistake, it also breaks in certain templates in 1.11

@Turbo87
Copy link
Collaborator Author

Turbo87 commented Nov 9, 2017

@pzuraq if you disable the attribute stripping too then why use the addon at all?!

@pzuraq
Copy link
Contributor

pzuraq commented Nov 9, 2017

It still does reopen the component class to add data-test attributes, which is pretty useful

@Turbo87
Copy link
Collaborator Author

Turbo87 commented Nov 9, 2017

it also breaks in certain templates in 1.11

what kind of templates? I need a test case, otherwise I can't fix it.

@pzuraq
Copy link
Contributor

pzuraq commented Nov 9, 2017

In our app I believe the failure was caused by the link-to helper. My worry is that there will be more edge cases over time, however, which is why I opted to turn off the transforms altogether. We still get component’s being reopened, which allows us to move forward to 1.13 and get the full benefits of the transforms. Basically, regressed performance if you use old enough Ember.

@Turbo87
Copy link
Collaborator Author

Turbo87 commented Nov 9, 2017

In our app I believe the failure was caused by the link-to helper. My worry is that there will be more edge cases over time, however, which is why I opted to turn off the transforms altogether.

I'm happy to fix those issues if possible, but without any reproduction I can't.

Since the test cases that we currently have seems to work fine I'd prefer to merge it like this. If you don't want to use the positional to hash params function then you can just ignore it and always use hash params. And if the stripping transform fails it will be the same as if the transform would be disabled completely.

@pzuraq
Copy link
Contributor

pzuraq commented Nov 9, 2017

The stripping transform errors, which causes builds to break IIRC. If you’d like I can submit the test case demoing this, the specific addon we used this with and had it break on was https://github.com/Addepar/ice-pop

@Turbo87
Copy link
Collaborator Author

Turbo87 commented Nov 9, 2017

The stripping transform errors, which causes builds to break IIRC. If you’d like I can submit the test case demoing this

yes, please

Copy link
Member

@marcoow marcoow left a comment

Choose a reason for hiding this comment

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

👍

@marcoow marcoow merged commit 1f8dea4 into mainmatter:master Nov 9, 2017
@Turbo87 Turbo87 deleted the html-hbs-transforms branch November 9, 2017 15:53
@pzuraq
Copy link
Contributor

pzuraq commented Nov 9, 2017

Looks like this fix worked for that particular bug (that’s what I get for commenting on PRs before I’ve had my coffee 😜), will let you know if any other issues come up

@Turbo87 Turbo87 changed the title Fix positional to hash params transform for Ember 1.11/1.12 Fix HBS transforms for Ember 1.11/1.12 Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants