Skip to content

Possibly change "_src" and "_dst" keys in Diff.dict()? #34

@glennmatthews

Description

@glennmatthews

Environment

  • DiffSync version: 1.0.0

Proposed Functionality

In the dict constructed by Diff.dict(), change the _dst and _src keys to something more intuitive, aesthetically pleasing, and/or "diff-like" -- perhaps - and +, or < and >?

Use Case

The current "_src" and "_dst" keys were selected to avoid any likely conflict with the child DiffElement names, e.g.:

'DC1': {'_dst': {'parent_location_name': 'New York', 'status': 'in-transit'},
        '_src': {'parent_location_name': 'Tennessee', 'status': 'active'},
        'device': {...},
        'prefix': {...},

but they're kinda ugly as keys.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions