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 item and Bulk edit buttons
  • 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 return false because 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:

  1. There are any (public) projects within the group the user can create work items on
  2. 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

  1. Enable the work_item_planning_view feature flag
  2. Navigate to a group's work items list on a free tier plan
  3. Observe that New item and Bulk edit buttons are missing
  4. Navigate to a project within the same group
  5. Observe that the buttons are present at the project level

Related

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 item or Bulk edit buttons 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?

    no_item

Edited by 🤖 GitLab Bot 🤖