Delete currently logged-in Project should be restricted
Summary
=======
Popup a warning message when project owner intentionally or inadvertently delete currently logged-in project at /projects/ page(See screenshot of this page: http://
Motivation
========
Deleting currently logged-in project by project owner with admin role, is a potentially destructive operation that can render the environment inoperable. So showing a warning popup message and restricting the delete opration, can inform the project owner about this destruction action.
Description
=========
When project owner with administration role, select his currently logged-in project in the project list at project index page (/admin/projects), and click on the delete projects action, then two warnning and error messages should be shown with the following contents:
- Warning message: “You can't delete currently logged-in project: % project_name”
- Error message: “unable to delete % project_name project"
Finally the user(with administration role) restricted to doing delete operation. Also message should be logged at log file.
Warning message is shown to inform user that you can't do this operation.
Error message is shown to inform user that the delete operation is not done successfully and the selected project is not deleted.
UX
===
Screenshot: https:/
Testing
======
1- Go to /admin/projects/ page
2- Select the project that you currently logged-in with
3- Click on the 'delete project' button
4- Click on the yes button to do delete action
5- As you see, both wanning and error messages are shown.
6. Error message is logged. So you can check the log files.
Outside Dependencies
==================
N/A
Requirements Update Required
=======
N/A
Doc Impact
=========
N/A
_
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- Low
- Drafter:
- Removed by request
- Direction:
- Approved
- Assignee:
- hossein zabolzadeh
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- hossein zabolzadeh
- Completed by
- hossein zabolzadeh
Related branches
Related bugs
Bug #1166585: User is able to still use deleted project when set as current project | Confirmed |
Sprints
Whiteboard
[Amit Ugol] wrote: Under /admin/projects/ (http://
-------
[Zabolzadeh] wrote: I ran latest version of horizon, and this problem is resolved by dis-allowing admin user to disable "Admin" project(When mouse hover to the enable checkbox, cursor changed to 'stopped' and dis-allow admin to change the current project state from enable to disable with a fairly inteligible warning message).
But in the case of deleting admin project, Yes, it done without any protection which needs a warnning popup message as you said.
I am willing to implement it.
Gerrit topic: https:/
Addressed by: https:/
Implements: blueprint project-
[mrunge, Oct 09 2105]
this approach completely fails, when an admin removes a currently logged in user from his project.
https:/
https:/
I think, this is more a bug that a blueprint.
[Zabolzadeh Saturday October 10 2015]
The following patch better address the issue, and solves the problem:
https:/