New item and Bulk edit buttons missing from group work items list on free tier plans
Summary
The New item and Bulk edit buttons are not visible on the group level work items list for users on free tier plans, even when the work_item_planning_view feature flag is enabled. These buttons are correctly displayed at the project level.
Current Behavior
- Group work items list: Missing
New itemandBulk editbuttons - Project work items list: Buttons are visible and functional
Expected Behavior
The New item and Bulk edit buttons should be consistently available at both group and project levels when the user has appropriate permissions.
Root Cause
The showNewWorkItem permission check returns false for free tier plans, causing the buttons to be hidden from the group work items interface.
The possible root cause from the slack thread may be
So it seems like a caching bug that it returns
true, but it should returnfalsebecause the user can't create an epic at the group level.Anyway, besides this problem, the problem is more that the policy check is correct. The user is not allowed to create work items on the group, only on projects.this is a larger problem with determining permissions on the group level. We'd need to check on free groups if:
- There are any (public) projects within the group the user can create work items on
- or when private: the user has a membership to any of the projects within all the sub-groups
This might warrant a separate permission check just for this. We don't run into this problem today, because we know if a user is on the Epics or Issues page.
Steps to Reproduce
- Enable the
work_item_planning_viewfeature flag - Navigate to a group's work items list on a free tier plan
- Observe that
New itemandBulk editbuttons are missing - Navigate to a project within the same group
- Observe that the buttons are present at the project level
Related
- Merge Request: !209837 (merged)
- Original issue: #578002 (closed)
The following discussion from !209837 (merged) should be addressed:
-
@anastasia.khom started a discussion: (+1 comment) Hi @ramistry! While trying to verify the MR, I have faced a weird issue - I don't have
New itemorBulk editbuttons available in the group list🤔 I definitely see those button on a project level. This might be just an issue on my end, but is there potentially any FF I missed other than
work_item_planning_view?
