adobe / adobe/log-parser

Add a merge functionality to logData

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
28
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.