Skip to content

Fix import of images on spaces#9779

Merged
ahukkanen merged 5 commits intodecidim:developfrom
CodiTramuntana:fix/images_import_process
Sep 13, 2022
Merged

Fix import of images on spaces#9779
ahukkanen merged 5 commits intodecidim:developfrom
CodiTramuntana:fix/images_import_process

Conversation

@tramuntanal
Copy link
Copy Markdown
Contributor

🎩 What? Why?

After the migration from Carrierwave to ActiveStorage, when importing a Participatory Process or an Assembly from a json file, the import succeeds but the attachments are not downloaded.

📌 Related Issues

Link your PR to an issue
No related issue found.

Testing

  1. Export a process that contains a proposals component with hero and banner images.
  2. Import that file into a new process
  3. The import must succeed

The same for assemblies.

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

Great fix, thanks a lot!

I have added one suggestion below to keep the code base consistent + if you could also check my question regarding the changed test data, it would be appreciated.

@ahukkanen
Copy link
Copy Markdown
Contributor

If you are doing any pushes in the following days, don't worry if the generators or performance tests are failing. This is being fixed at #9785.

@laurajaime laurajaime force-pushed the fix/images_import_process branch from 69c0f03 to 567bbca Compare September 12, 2022 10:28
@laurajaime
Copy link
Copy Markdown
Contributor

laurajaime commented Sep 12, 2022

Hi @ahukkanen, can you review it again? thanks

Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

Looking good!

I've just added couple more suggestions for final cleanup. After these are addressed, I think it's ready to be merged!

@laurajaime laurajaime force-pushed the fix/images_import_process branch from 567bbca to 1a63308 Compare September 13, 2022 06:10
Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

👍

@ahukkanen ahukkanen merged commit 89c554f into decidim:develop Sep 13, 2022
@tramuntanal tramuntanal deleted the fix/images_import_process branch September 13, 2022 10:03
entantoencuanto added a commit that referenced this pull request Sep 13, 2022
* develop:
  Add missing character on code block (#9798)
  Fix hidden error messages on the registration form (#9625)
  Add documentation about configuring ActiveStorage / dynamic file uploads (#9777)
  Add documentation section about customizing cells (#9622)
  Fix hashtags not recognized at the beginning of the string (#9616)
  Fix version pages showing a HTTP 500 error when the version does not exist (#9615)
  Fix multitenant organizations stats cache (#9605)
  Prevent the account edit route through Devise (#9611)
  Fix iframe disabling producing invalid HTML (#9685)
  Fix import of images on spaces (#9779)
  Fix order of last activities (#9756)
  Fix leaking emails on admin user search controller (#9791)
  Ignore participatory spaces without models in meetings visible_for scope (#9790)
@tramuntanal
Copy link
Copy Markdown
Contributor Author

@ahukkanen do you want us to backport this fix to v0.27-stable?

@ahukkanen
Copy link
Copy Markdown
Contributor

@tramuntanal We are just preparing for RC2 release, so I went ahead and created the backports already.

@tramuntanal
Copy link
Copy Markdown
Contributor Author

Thank you @ahukkanen !!

eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
* Fix import hero and banner images in participatory process

Fix assemblies and process images importation

* Remove uneeded yarn.lock

* TEST: Make tests succeed

* Refactor bugfix

* Rename helper test function

Co-authored-by: Laura Jaime <laura.jv@coditramuntana.com>
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