diffsync icon indicating copy to clipboard operation
diffsync copied to clipboard

General versus Per-Model flags

Open chadell opened this issue 2 years ago • 0 comments

Environment

  • DiffSync version: 2.0.0

Proposed Functionality

The way flags are managed in https://github.com/networktocode/diffsync/blob/315b5e9396148209a71a9526c090b2899deab77a/diffsync/helpers.py#L185-L208, means that the GLOBAL flags always take precedence over the MODEL ones.

I would propose changing the order (more specific first) and adding some flags that could negate the global behavior. For example:

  • global: SKIP_UNMATCHED_DST
  • model: NO_SKIP_UNMATCHED_DST (new one)

This should allow not skipping for only a specific model.

Use Case

chadell avatar Mar 12 '24 13:03 chadell