Skip to content

Remove all the private participants from a participatory space#8866

Merged
ahukkanen merged 38 commits intodecidim:developfrom
eliegaboriau:feature/delete_all_participants_when_adding
Apr 29, 2022
Merged

Remove all the private participants from a participatory space#8866
ahukkanen merged 38 commits intodecidim:developfrom
eliegaboriau:feature/delete_all_participants_when_adding

Conversation

@eliegaboriau
Copy link
Copy Markdown
Contributor

@eliegaboriau eliegaboriau commented Feb 21, 2022

🎩 What? Why?

PR to add the possibility of deleting all existing private participants of a participatory space when importing others via csv
Add a button to delete all current private participants
Add a confirm dialog box

📌 Related Issues

Link your PR to an issue

Testing

Describe the best way to test or validate your PR.

  • Go to the private user page of a participatory space
  • Click on import via csv
  • Notice that you don't have any user
    image
  • Fill the file field
  • Click on "Upload"
  • Click on import via csv
  • Notice that you can delete users
    image
  • Click on delete all
  • Notice that is asks for confirmation
    image
  • Confirm
  • Notice that all your current users have been deleted

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

♥️ Thank you!

@eliegaboriau eliegaboriau marked this pull request as ready for review February 21, 2022 14:35
Comment thread CHANGELOG.md Outdated
@eliegaboriau eliegaboriau marked this pull request as draft February 22, 2022 17:01
@eliegaboriau eliegaboriau marked this pull request as ready for review February 23, 2022 10:12
@andreslucena andreslucena linked an issue Mar 2, 2022 that may be closed by this pull request
2 tasks
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

There are minimal things to change. I think this is a great contribution, specially for private organizations!

Comment thread CHANGELOG.md Outdated
Comment thread decidim-admin/spec/system/participatory_space_private_user_import_via_csv_spec.rb Outdated
@andreslucena andreslucena changed the title Remove all the current participants from private participants Remove all the private participants from a participatory space Mar 3, 2022
eliegaboriau and others added 2 commits March 7, 2022 14:57
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
…ate_users_csv_imports/new.html.erb

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
eliegaboriau and others added 10 commits March 7, 2022 15:02
…ate_users_csv_imports/new.html.erb

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
…ort_via_csv_spec.rb

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
add test
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

A couple more changes, and we're good to go!

Comment thread decidim-admin/spec/system/participatory_space_private_user_import_via_csv_spec.rb Outdated
@eliegaboriau eliegaboriau marked this pull request as draft March 9, 2022 10:13
eliegaboriau and others added 5 commits March 9, 2022 11:19
…patory_space_private_users_csv_imports_controller_spec.rb

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
@eliegaboriau eliegaboriau marked this pull request as ready for review March 14, 2022 11:24
@andreslucena andreslucena self-requested a review March 14, 2022 12:30
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Sorry that I've missed the last changes. LGTM

@ahukkanen ahukkanen merged commit 94e72e4 into decidim:develop Apr 29, 2022
This was referenced May 2, 2022
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
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.

Remove all the current participants from Private Participants

5 participants