Skip to content

Add ability to edit work items weight widget

Coung Ngo requested to merge 362550-edit-weight-widget into master

What does this MR do and why?

This MR adds the ability to inline edit the weight widget on the work items view, which was previously read-only.

The weight widget saves all weight updates in the frontend cache (the local types and mutations are temporary) and is not yet connected to the backend.

  • The first MR was !89028 (merged)
  • This is the second MR to resolve #362550 (closed)
  • The next MR will hook up the weight widget to the backend to persist the weight updates in the database

Screenshots or screen recordings

Screen_Recording_2022-06-16_at_1.00.47_pm

How to set up and validate locally

  1. In rails console enable the feature flags
    Feature.enable(:work_items)
    Feature.enable(:work_items_mvc_2)
  2. Visit an issue with a work item task, open the modal, and test the weight widget (e.g. http://127.0.0.1:3000/h5bp/html5-boilerplate/-/issues/1)
  3. Visit a work item and test the weight widget (e.g. http://127.0.0.1:3000/h5bp/html5-boilerplate/-/work_items/1)

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 #362550 (closed)

Edited by Coung Ngo

Merge request reports

Loading