Update work item hierarchy permissions
What does this MR do and why?
Adding and removing a work item child should require guest role (and be able to read the WI to cover confidential cases). Additionally, when the work item type is Epic
we should check that the licensed feature subepics
is available.
Issue: #451455
Video of local testing
How to set up and validate locally
- To test this locally, you need to enable WI at group level, so you will have to enable these feature flags
namespace_level_work_items
(If you are still unable to access work-item page for an epic then enable/disble FF from this list -&11777 ) - Visit master brach locally as root(admin)
- Visit Epics page and try to create a new EPIC(If all relevant FF's are enabled then you should see a modal when you click on
New Epic
) - Open the newly created epic and replace
epics
in the URL withwork_items
, SO the target URL would be something likehttp://127.0.0.1:3000/groups/flightjs/-/work_items/6
- Now Login as
Guest
and visit the above EPIC work item URL and you will not seeAdd
button in theChilds
section - Switch your branch to
akotte-update-work-item-hierarchy-permissions
branch and Visit the EPIC work item page, you should see theAdd
button. - You should be able to successfully add child items using the
Add
button.
Edited by Abhilash Kotte