Skip to content

Handling array sort and shift #318

@whitewaterdesign

Description

@whitewaterdesign

There doesn't seem to be a good approach for handling both an array sort and a array shift. When embeddedObjKeys is not set and I do a array shift for an array with many items the diff is made up of multiple updates and a remove. When ordering of items is changed it is shown as a set of updates. With embeddedObjKeys set array shift (and practically any changes) are shown brilliantly, BUT, when the array order is changed no diff is shown.

It would be great if when an embeddedObjKey is set there was an option to register reorder changes as well. This could be handled with a MOVE action as well as REMOVE, ADD & UPDATE. Obviously this could be turned on and off with a config setting.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions