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

Generate fallback ID from parent ID and field #41

Merged
merged 13 commits into from
Jul 17, 2019

Conversation

jonaskello
Copy link
Member

Fixes #27.

The goal of this PR is to have fallback IDs generated from the closest parent that has an ID or ROOT_QUERY if there is no parent with ID.

@codecov
Copy link

codecov bot commented Jul 17, 2019

Codecov Report

Merging #41 into master will decrease coverage by 0.57%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
- Coverage   87.81%   87.24%   -0.58%     
==========================================
  Files           6        6              
  Lines         197      196       -1     
  Branches       49       49              
==========================================
- Hits          173      171       -2     
  Misses         12       12              
- Partials       12       13       +1
Impacted Files Coverage Δ
src/normalize.ts 96.22% <100%> (-0.07%) ⬇️
src/norm-map.ts 85.71% <0%> (-14.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d47c85...01a1d82. Read the comment docs.

@jonaskello jonaskello merged commit 68e4d14 into master Jul 17, 2019
@jonaskello jonaskello deleted the fallback-id-from-parent branch July 17, 2019 12:22
@jonaskello jonaskello restored the fallback-id-from-parent branch July 17, 2019 12:22
@jonaskello jonaskello deleted the fallback-id-from-parent branch July 17, 2019 12:22
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

Successfully merging this pull request may close these issues.

Value object gets overwritten becuase it is normalized
1 participant