User story:
As a dashboard user, while reviewing a change request, I can approve and publish (commit) the changes proposed in segments.
We need to replace the existing logic for publishing segment changes so that it will:
- Make a copy of the live segment for historical purposes with a new
Segment.clone method, and get rid of SegmentCloneService and existing Segment.*clone methods entirely. The new function must create a revision of the segment, as well as its nested rules and conditions.
- Overwrite attributes of segments, then replace all nested rules and conditions.
User story:
We need to replace the existing logic for publishing segment changes so that it will:
Segment.clonemethod, and get rid ofSegmentCloneServiceand existingSegment.*clonemethods entirely. The new function must create a revision of the segment, as well as its nested rules and conditions.