Draft: Backfill relative_position values for work_item_parent_links records
What does this MR do and why?
Sets relative_position
values for all existing work_item_parent_links
table records. Removes workarounds for cases where nil
values were possible in the relative_position
field. Updates documentation for relative positioning functionality in Work Items Hierarchy Widget.
Related to #370401 (closed)
🌟
Highlights - Whenever touching spec files, I was trying to get rid of the
tasks
connotation since Work Items already includeobjective
,key_result
, and other cool Work Item Types😎 -
relative_position { Time.now.to_i }
value is now available for theWorkItems::ParentLink
factory. This aligns with the current behavior introduced in Adds sort order by created_at to Work Item Hier... (!108317 - merged) - documentation update is required here to add more consistent explanations about how reordering is expected to be called.
No screenshots or screen recordings are possible for migration
How to set up and validate locally
Nothing should be changed. The expected behaviour is described in BE: Work Items - Ability to reorder work items ... (#370401 - closed) Ref: #370401 (comment 1326316507)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Petro Koriakin