Description of problem: In the category pane, you can't get past the confirm-delete step when deleting a root category. Version-Release number of selected component (if applicable): qgen branch (though it's not clear this has to do with qgen) How reproducible: Always Steps to Reproduce: 1. Navigate to category tab 2. Select a use context 3. Try to delete its root category Actual results: Nothing happens Expected results: Use context and its root category are deleted
Kinda related xref: bug 115363.
vadim: is this easily fix-able?
There's a check in the code which only deletes if the category is not root, so could be as simple as removing this check -- that is, if we want the user to be able to easily remove the root category. We _may_ want to only allow users to delete root categories which are in non-default (i.e. non-null) use contexts. And in the case where we don't allow deletion (i.e. root category for default use context) the "delete" link should be hidden.
I'll take a closer look at this tomorrow. Scott is most likely correct. It's probably just a matter of removing the conditional. The real question is, do we want to allow root categories to be deleted with the same ease as leaf categories? Nobuko, what do you think? (I'm asking because of bug 115363.)
Fixed on the trunk in change 40976.
Vadim, Sorry my earlier comment didn't go through. The problem with 115363 is that the permission management pane doesn't appear for root categories. It is fine that root categories are deletable as long as there is control over specifically who can do this. Hopefully my comment isn't too late. Nobuko
Nobuko, I finally understand the problem you describe. I'd like to keep it as a separate bug. I took a very quick look at it. See bug 115363, #comment 2.
Testing: bug 115363, comment #2
Verified on oracle
And on postgres