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

Multiple attachments on an initiative #6880

Closed
virgile-dev opened this issue Nov 17, 2020 · 8 comments · Fixed by #7452
Closed

Multiple attachments on an initiative #6880

virgile-dev opened this issue Nov 17, 2020 · 8 comments · Fixed by #7452
Assignees
Labels
contract: PAM2020 Barcelona City Council contract type: bug Issues that describe a bug
Projects

Comments

@virgile-dev
Copy link
Contributor

virgile-dev commented Nov 17, 2020

Describe the bug
These were found while doing QA on #5736

In the edit form one is under the impression they can add other attachements (the plural form attachements is used both in the wizard and the edit form). But when doing so the attachement that was already on the initiative gets replaced by the one newly uploaded. The new attachement should be added and not replace the one that was already there.

Users should be to add several attachement while creating the initiative via the wizard.

I tested adding more attachements via the admin and they display correctly.
image

Also I notice that when hitting the cross to delete the attachement and clicking on the update button the attachment still displays on the initiative.

@virgile-dev virgile-dev changed the title Attachements on isnitiative Attachements on initiative Nov 17, 2020
@virgile-dev
Copy link
Contributor Author

About the upload, it's following the behaviour of the other modules, let me know if you want me to change it

@carolromero as edgar mentionned above in this comment we need to decide how we want to handle multiple attachements on initiative.

@carolromero
Copy link
Member

@virgile-dev yes, I would change the system so that adding new attachments doesn't delete the previous ones. Are you guys thinking of sending a PR of this?

@virgile-dev
Copy link
Contributor Author

@carolromero no PR in the pipe, we are running on low on dev ressources this end of year 😔

@andreslucena andreslucena added the type: bug Issues that describe a bug label Feb 10, 2021
@andreslucena andreslucena changed the title Attachements on initiative Multiple attachments on an initiative Feb 10, 2021
@andreslucena andreslucena added this to Product Backlog in PAM2020 Feb 10, 2021
@Jordi-Miro Jordi-Miro added the contract: PAM2020 Barcelona City Council contract label Feb 22, 2021
oriolgual added a commit that referenced this issue Feb 23, 2021
@eva-sl eva-sl moved this from Product Backlog to Ready in PAM2020 Feb 23, 2021
@oriolgual
Copy link
Contributor

Fix can be tested here https://decidim-staging-pr-309.herokuapp.com

@oriolgual oriolgual self-assigned this Feb 23, 2021
@mrcasals
Copy link
Contributor

In #7452 (comment) @ahukkanen raises this concern:

This same bug exists in all places where attachments can be added similarly (e.g. proposals), so I'd suggest fixing it once and for all.

@decidim/product could you confirm how to handle this?

@mrcasals mrcasals added this to Pending review from Product in Maintainers Feb 26, 2021
@carolromero carolromero moved this from Ready to QA Testing in PAM2020 Mar 1, 2021
@carolromero
Copy link
Member

@oriolgual I'm getting a server error when creating an initiative type.

@andreslucena
Copy link
Member

Hi all! Seems like this issue and PR has stagnated :/

This same bug exists in all places where attachments can be added similarly (e.g. proposals), so I'd suggest fixing it once and for all.

@decidim/product could you confirm how to handle this?

Let's fix this bug

@andreslucena
Copy link
Member

Fix can be tested here decidim-staging-pr-309.herokuapp.com

Seems like (obviously) the review PR isn't working anymore

@oriolgual I'm getting a server error when creating an initiative type.

I tried this locally but still have the same bug regarding the attachments deletion:

bug-initiatives-attachment.mp4

@andreslucena andreslucena removed this from Pending review from Product in Maintainers Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract: PAM2020 Barcelona City Council contract type: bug Issues that describe a bug
Projects
No open projects
PAM2020
QA Testing
Development

Successfully merging a pull request may close this issue.

6 participants