-
Notifications
You must be signed in to change notification settings - Fork 685
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
Use confirmation modal when Admin deletes a user #5696
Use confirmation modal when Admin deletes a user #5696
Conversation
@eloquence @kushaldas @rmol For passing the specific |
@eloquence I actually needed a small review on this. |
@prateekj117 My apologies, the team is currently very busy with the Ubuntu 20.04 migration, but we'll aim to have a look soon. |
@prateekj117 I think the way you're passing the user ID is fine. Production traffic is always encrypted. We're already including the user ID in the URL of the next step, the deletion route, e.g. We could consider using the journalist UUID instead, both here and for the deletion route, but I think the utility of that change would be minimal and it's definitely outside the scope of this PR. We could alter the list of users to work like the source list on the JI index page, with a checkbox on each row and I'm curious if @emkll or @zenmonkeykstop have any thoughts, having worked on the recent source deletion changes. This PR does need a rebase onto latest |
@rmol I will rebase it with the latest |
4c5e646
to
78e7c3e
Compare
@rmol Corrected the tests and rebased the PR. |
a1d2f85
to
98ea9a7
Compare
98ea9a7
to
c252f0d
Compare
@prateekj117 Could you rebase once more to pick up the recent Xenial removal? This should get app tests passing again. |
c252f0d
to
d872566
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5696 +/- ##
========================================
Coverage 85.11% 85.11%
========================================
Files 55 55
Lines 3863 3863
Branches 479 479
========================================
Hits 3288 3288
Misses 463 463
Partials 112 112 Continue to review full report at Codecov.
|
d872566
to
0532666
Compare
@eloquence Ready to Review. |
0532666
to
52bcde1
Compare
52bcde1
to
0d43652
Compare
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.
Test plan passes, changes look good. Thank you for sticking with this one during some long delays!
Status
Work in progress
Description of Changes
Fixes #4649
Changes proposed in this pull request:
This PR removes the logic of only JS supported confirmation modal when Admin deletes a User and replaces it with the confirmation modal which works without JS.
Testing
How should the reviewer test this PR?
Login as Admin and try deleting a user. Try out the confirmation modal. Should also work with Safest Setting for Tor Browser (i.e, without JS).
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made non-trivial code changes:
Choose one of the following: