Skip to content

BC-10977 - public endpoint for admin to create user deletion request#6083

Open
virgilchiriac wants to merge 17 commits intomainfrom
BC-10977-user-delete-via-knl
Open

BC-10977 - public endpoint for admin to create user deletion request#6083
virgilchiriac wants to merge 17 commits intomainfrom
BC-10977-user-delete-via-knl

Conversation

@virgilchiriac
Copy link
Contributor

@virgilchiriac virgilchiriac commented Jan 30, 2026

Description

Links to Tickets or other pull requests

BC-10977

hpi-schul-cloud/nuxt-client#4070
hpi-schul-cloud/schulcloud-client#3753
hpi-schul-cloud/e2e-system-tests#482

Changes

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

@virgilchiriac virgilchiriac changed the title BC-10977 - admin-api add public endpoint for admin to create user deletion request BC-10977 - public endpoint for admin to create user deletion request Feb 4, 2026
@virgilchiriac virgilchiriac marked this pull request as ready for review February 4, 2026 20:25
})
public async createDeletionRequestPublic(
@CurrentUser() currentUser: ICurrentUser,
@Query() params: DeletionRequestParams
Copy link
Contributor

Choose a reason for hiding this comment

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

Why implement passing of ids over query string? Wouldn't it be better to use a JSON request body? And is DELETE the right HTTP method? Effectively we're creating a couple of deletion requests (that eventually lead to user deletion). I would prefer POST + JSON body here. The function name createDeletionRequestPublic would also suggest POST.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

initially I had it like this. But then I changed it, to match the existing implementation from FE.
the FE does not want to create deletion requests, but wants to simply delete users. It does not know nor care about how it's done.
next feature should be to prevent users to show up in the table, so essentially like before

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants