プロジェクト

全般

プロフィール

Vote #81171

完了

Require explicit confirmation when deleting a user or a project

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
UI_10
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
10
version_id:
152
issue_org_id:
34417
author_id:
40856
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

It happens quite often at "Planio":https://plan.io/redmine-hosting that we have to support users who accidentally deleted something. Often, a Javascript alert box is simply dismissed by the user without actually grasping it's message, leading to unintended consequences. Especially in the case of deleted user accounts, a lot of information is lost and hard to restore from a backup.

The first patch in this issue introduces an explicit confirmation page (similar to when deleting a project) which requires to enter the login of the user to be deleted in order to confirm the deletion. It also suggests locking the user as a safer option instead and offers a button to do so.

The second patch changes the project deletion page to require the user to enter the identifier of the project to be deleted, instead of just ticking a checkbox, just to make it a bit harder to delete the wrong project by accident.


journals

--------------------------------------------------------------------------------
Very nice addition and it works well from my tests.

I've added the patches to CI, if all the tests pass, I think we can deliver this in version:"4.2.0" and use this implementation to improve other object deletion (like #33071).
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Tests pass https://gitlab.com/redmine-org/redmine/-/pipelines/227153244 (except system tests, but there are other issues there).
--------------------------------------------------------------------------------
It is a great improvement. I think there is no reason not to deliver this new feature in Redmine 4.2.0.
--------------------------------------------------------------------------------
Committed the patches. Thank you for your contribution.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Reopened,33071,Prevent accidental deletion of contents with sudo mode
relates,New,35373,Improve project deletion warning text

Admin Redmine さんが約4年前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0