[PoC] List available widgets for a given list of WorkItems
Context
While updating WorkItems on a bulk edit we need to validate if the current user can update all the Widget values sent. This needs to take in consideration user permissions, feature flags and scope of the values (group/project).
Activity
Assess if this logic can be extracted to also be used on a GraphQL type, so the frontend only list/enables available widgets for the current user. Also, to take in consideration the performance of such query, as this might slowdown the bulk edit page.
Goal
Improve usability and workflow by only make available widgets that the user can edit based on the select work items.
This won't solve though the case where a widget is only available for a subset of the selected work items. In these cases, the value selected must be updated only where it's possible. For example, when the user select multiple Issue and some Key Result and tries to update the milestone, just the Issue type work items will update the milestone, since the Key Result work items don't have milestone.