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

Bump/0.29 #45

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

Bump/0.29 #45

wants to merge 15 commits into from

Conversation

Stef-Rousset
Copy link

@Stef-Rousset Stef-Rousset commented Jan 3, 2025

🎩 Description

This PR bumps the decidim-module-cleaner to 0.29 version of Decidim.

Testing inactive users
  1. as a user, create a new account, and after confirming your account, log out.
  2. as an admin, go to settings in BO, click on "Data cleaner", check the checkbox "Enable inactive users deletion", set "Send email to inactive users before deletion" to 1 and "Delete inactive users x days after the mail" to 1
  3. in the terminal, in development_app folder, go to rails console with bundle exec rails c
  4. modify the current_sign_in_at for the user you created with these commands
user= Decidim::User.last
user.update!(current_sign_in_at: user.current_sign_in_at - 4.days)
  1. exit the rails console with command exit, and execute in development_app bundle exec rake decidim_cleaner:clean_inactive_users
  2. check in letter_opener that you have received an email for inactivity
  3. log in again in the application as the user you created, and then log out
  4. in terminal execute bundle exec rake decidim_cleaner:clean_inactive_users
  5. check that the user hasn't been deleted by log in again in the app, and then log out.
  6. execute again the steps 3, 4, 5 and 6 and then go to step 11
  7. go to the rails console again and modify the warning_date for the user with these commands
user= Decidim::User.last
user.update!(warning_date: user.warning_date - 2.days)
  1. exit the rails console, and execute again bundle exec rake decidim_cleaner:clean_inactive_users
  2. check in letter_opener that you have received an email informing you of the deletion of your account
  3. check in application that you can't log in anymore with the user you created
Testing deletion of admin logs
  1. as an admin, go to settings in BO, click on "Data cleaner", check the checkbox "Enable admin logs deletion", and set "Delete admin logs after" to 1
  2. in the terminal, in development_app folder, execute the command bundle exec rake decidim_cleaner:clean_admin_logs
  3. in the BO, go to Admin activity log and see that you don't have logs older than one day

@Stef-Rousset Stef-Rousset changed the base branch from main to develop January 3, 2025 15:46
@Stef-Rousset Stef-Rousset marked this pull request as ready for review January 6, 2025 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant