Copy confidential attribute from parent when creating task
What does this MR do and why?
Related thread in #368035 (comment 1028287354)
The tasks
feature is still behind the work_items
feature flag. The feature allows you to convert a task list item on an issue's description into a separate work_item/issue using the text in the description as the new title. Currently the created task will never be confidential, even if the parent containing the description is actually confidential.
This is just a first step in an still not finalized conversation, but we know we need this first step for sure.
How to set up and validate locally
- Enable the
work_items
feature flag locallyFeature.enable(:work_items)
- Create a confidential issue on a project. The description of the project should contain a task list like the following:
-
Task 1 -
Task 2 -
Task 3
-
- Click the button next to any of the tasks in the list to convert the item into a task.
- Before this change, the created task will not be confidential, with this change it should also be confidential.
- You can check the confidential status of the created task using the Rails console
WorkItem.last.confidential?
Screen_Recording_2022-07-19_at_12.59.20
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #368035 (closed)
Edited by Mario Celi