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

fixes a javascript bug in ActiveStorage that broke direct uploads in IE11 #32479

Merged
merged 1 commit into from
Apr 6, 2018
Merged

fixes a javascript bug in ActiveStorage that broke direct uploads in IE11 #32479

merged 1 commit into from
Apr 6, 2018

Conversation

kylekeesling
Copy link
Contributor

@kylekeesling kylekeesling commented Apr 6, 2018

Summary

Direct upload was throwing an error after the assets were uploaded to a service, specifically when attempting to set the css style to none.

More background and info is outlined in #32378 and my first attempt at a PR #32454

Fixes #32378

@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @schneems (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

This repository is being automatically checked for code quality issues using Code Climate. You can see results for this analysis in the PR status below. Newly introduced issues should be fixed before a Pull Request is considered ready to review.

Please see the contribution instructions for more information.

@kylekeesling kylekeesling changed the title fixes a bug in IE11 that broke direct uploads fixes a bug in IE11 that broke ActiveStorage direct uploads Apr 6, 2018
@kylekeesling
Copy link
Contributor Author

FYI @javan

@javan
Copy link
Contributor

javan commented Apr 6, 2018

Can you update your rails fork with rails master, please? I believe your compiled activestorage.js is missing the most recent changes to the src files.

@javan javan assigned javan and unassigned schneems Apr 6, 2018
@kylekeesling
Copy link
Contributor Author

OK - I think I did what you needed. Thanks for bearing with me, I'm out of my element with some of this git stuff :)

@javan
Copy link
Contributor

javan commented Apr 6, 2018

All good! We're back in the same boat with your commits needing squashing again. Want to practice? http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html#iterate-as-necessary

@javan
Copy link
Contributor

javan commented Apr 6, 2018

The goal is to have a single commit with your fix both in src/ and the compiled activestorage.js.

@kylekeesling
Copy link
Contributor Author

kylekeesling commented Apr 6, 2018

Woo boy was that fun.... ;)

I think that I got it all figured out. It looks like the source line is updated and the compiled activestorage.js contains the updated command e.style.display="none" as opposed to the old e.style="display:none"

I know this is a small tweak but this has been pretty cool for as it's my first PR to Rails. Thanks for the help!

@javan javan merged commit be811c3 into rails:master Apr 6, 2018
@javan
Copy link
Contributor

javan commented Apr 6, 2018

Great job! Thank you for fixing this and congrats on landing your first Rails commit!

rafaelfranca pushed a commit that referenced this pull request Apr 6, 2018
…-upload-bug-fix

Fixes a bug in IE11 that broke ActiveStorage direct uploads
rafaelfranca pushed a commit that referenced this pull request Apr 6, 2018
…-upload-bug-fix

Fixes a bug in IE11 that broke ActiveStorage direct uploads
@kylekeesling kylekeesling changed the title fixes a bug in IE11 that broke ActiveStorage direct uploads fixes a javascript bug in ActiveStorage that broke direct uploads in IE11 Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants