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 permitted params allowing new images to be uploaded #3278

Merged
merged 5 commits into from
Mar 4, 2018

Conversation

veger
Copy link
Contributor

@veger veger commented Jan 29, 2017

This PR fixes uploading a new image for existing images. I would have expected that with the original/wrong permitted params uploading the initial image would have failed (but it obviously does not).

I have been fiddling over 2 hours to get a test case for this PR, but my knowledge of rspec/features, capybara, and the combination of both is seriously lacking... So no test-case this time... :(

Manual test show that adding a new image still works, and uploading a new one does as well (I get an error when I upload an image with an different name, see #3279)

@veger
Copy link
Contributor Author

veger commented Jan 29, 2017

The failing tests do not have anything to do with my PR. I had the same issue when trying to build a test-case. It is because the quiet_assets gem is trying to include Rails 5. It probably needs some version constraints (I 'solved' it by removing the gem :P )

@parndt
Copy link
Member

parndt commented Jan 31, 2017

Does it still work to upload multiple images?

@veger
Copy link
Contributor Author

veger commented Jan 31, 2017

I did not know that it is possible to upload multiple images..! I'll check it out and report back

@veger
Copy link
Contributor Author

veger commented Jan 31, 2017

It still works when adding new images (they are all added as separate images), when modifying an image I do not seem to be able to select multiple (but I assume that is logical?)

@parndt
Copy link
Member

parndt commented Feb 22, 2017

That's right, you can only upload multiple when you're adding new images

@bricesanchez bricesanchez self-assigned this Mar 4, 2018
@bricesanchez bricesanchez merged commit fd5bec4 into refinery:master Mar 4, 2018
@bricesanchez
Copy link
Member

Thanks @veger! It takes time but it's finally merged :D

@veger veger deleted the fix_upload_new_image branch March 4, 2018 07:51
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.

3 participants