log-parser icon indicating copy to clipboard operation
log-parser copied to clipboard

Add a merge functionality to logData

Open baubakg opened this issue 4 years ago • 0 comments

We should be able to merge two LogData objects.

Rules:

  • Both Log Data need o have the same keys (ParseDefinition keys)

Actions. For a LogData "A" with ParseDefinition "a", and a LogData "B" with ParseDefinition "b" (B into A):

  1. Enrich ParseDefinition "a" with that of "b"
  2. For each added ParseDefinitionEntry: 2.1. Set it to optional

Merge rules:

  • If key matches : increment existing, ignore optional values - send warning
  • If if key is new : add values

baubakg avatar Feb 08 '21 10:02 baubakg