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
fix: 🍰 Checkboxes Not Missing Anymore On Delete User Account Page #3506
fix: 🍰 Checkboxes Not Missing Anymore On Delete User Account Page #3506
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Am I correct in assuming that the problem was that the lengths were missing, so that these
If this is broken and still made it to master, test coverage on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how, but somehow it seems we didn't add cypress tests for the DeleteUser
feature, oder?
would you mind adding them so that we can have a higher confidence we don't accidentally break this functionality in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great that you have found the error. As far as I remember, this change was made to reduce requests to the database. Each count is a separate request. I would keep that as it was and create a new query that is used only on the delete user account page.
…onally, admin cannot delete himself via his user settings
sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still would not feel comfortable merging this with no e2e(cypress) tests that make sure we don't break this important feature in the future. Please add tests, and re-request a review.
@@ -1,5 +1,5 @@ | |||
<template> | |||
<base-card class="delete-data"> | |||
<base-card v-if="currentUser.role !== 'admin'" class="delete-data"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we have agreed on this, therefore I would open an issue and we can discuss it, not just make this decision alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i changed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed the linting … |
- Removed double declarations. - Put assignments in 'beforeEach'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ogerly ,
great that you cared for this bug! 🚀🚀💫
I approve and merge. 🍀
🍰 Pullrequest
the checkboxes for saved contributions and comments of a user are displayed again at userDelete
Issues