Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a merge functionality to logData #1

Open
baubakg opened this issue Feb 8, 2021 · 0 comments
Open

Add a merge functionality to logData #1

baubakg opened this issue Feb 8, 2021 · 0 comments

Comments

@baubakg
Copy link
Member

baubakg commented Feb 8, 2021

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 pushed a commit that referenced this issue Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant