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

UHF-9832: Added user sanitation service, drush command and form. #305

Merged
merged 8 commits into from
May 7, 2024

Conversation

khalima
Copy link
Contributor

@khalima khalima commented May 6, 2024

UHF-9832

What was done

  • Added user sanitation service, drush command and form.
  • Cherry-picked @hyrsky 's fixes for Infofinland CI tests.

How to install

  • Make sure your instance is up and running on correct branch.
    • git checkout UHF-9832
    • make fresh
  • Run make drush-cr

How to test

User sanitation

  • Go to /admin/people and edit a user of your choice. On user edit page, set the user status as Blocked. Save the user and reload the page.
    • There should be a new button Sanitize account. The same button/link should be also in /admin/people lists' user operation links
    • Click on the button and test that the sanitation works
  • Check that code follows our standards

User sanitation via drush

  • Check also that the drush command works drush user:sanitize --help
    • Run drush user:create testuser --mail='[email protected]' to create a testuser
    • Run drush user:block testuser to cancel the account
    • Run drush user:sanitize 123 to sanitize the user name and email. The 123 is the uid of the testuser.
    • Run drush user:information --uid=123 to check that the user name and email was sanitized

Other PRs

@khalima khalima marked this pull request as ready for review May 7, 2024 05:17
Copy link

sonarqubecloud bot commented May 7, 2024

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@khalima khalima merged commit 8b86078 into dev May 7, 2024
3 checks passed
@khalima khalima deleted the UHF-9832 branch May 7, 2024 08:01
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.

3 participants