Skip to content

Allow guest users to subscribe work items

Rajan Mistry requested to merge 412831-allow-guest-user-subscribe-work-item into master

What does this MR do and why?

Earlier guest user were not able to subscribe the work item due to workItemUpdate mutation checks in the backend. Change mutation to issueSetSubscription to support subscribing of notification in work items by guest users.

Screenshots or screen recordings

No visual change.

How to set up and validate locally

Prerequisites:

  1. Make sure GDK is running on Enterprise mode
  2. Enable the OKR feature flag using gdk rails console:
    • Feature.enable(:okrs_mvc)

Steps:

  1. Go to any Project > Issues > List
  2. Create an new Objective
  3. Go to Objective detail page
  4. Click on the right top kebab menu to see the Notification toggle
  5. Use the toggle to turn on or turn off the notifications

On similar lines, a key result can be added to the objective in the Child objectives and key results section. And a task comes under an issue Tasks section.

In both, there is an option to add task/key result.

Steps to check with modal:

  1. Go to any Project > Issues > List
  2. Create an Objective or Issue
  3. Go to Objective/Issue detail page > Child objectives and key results/Tasks section
  4. Add a Key result/Task
  5. Click on the newly added item
  6. Click on the right top kebab menu to see the Notification toggle
  7. Use the toggle to turn on or turn off the notifications

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #412831 (closed)

Edited by Rajan Mistry

Merge request reports