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 support for serializing parts of an element separately #153

Merged
merged 1 commit into from
Sep 10, 2019
Merged

add support for serializing parts of an element separately #153

merged 1 commit into from
Sep 10, 2019

Conversation

ori-moisis
Copy link
Contributor

This feature will be needed when we want to have iterative discover write only diffs to blueprints

@ori-moisis ori-moisis requested a review from a team September 9, 2019 13:22
@codecov
Copy link

codecov bot commented Sep 9, 2019

Codecov Report

Merging #153 into master will increase coverage by <.01%.
The diff coverage is 96.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   93.71%   93.71%   +<.01%     
==========================================
  Files          58       58              
  Lines        2401     2404       +3     
  Branches      407      408       +1     
==========================================
+ Hits         2250     2253       +3     
  Misses        151      151
Flag Coverage Δ
#e2e_test ?
#unit_test 93.71% <96.15%> (ø) ⬆️
Impacted Files Coverage Δ
packages/salto/src/parser/salto.ts 97.74% <96.15%> (+0.05%) ⬆️

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 ce4831a...213ceb9. Read the comment docs.

// If we got a single element, put it in an array because we need to wrap it with an empty block
const elemListOrValues = isElement(elementsOrValues) ? [elementsOrValues] : elementsOrValues

const body = _.isArray(elemListOrValues)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible that elemListOrValues is not an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if we get Values (they are an object, not a list)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ori-moisis ori-moisis merged commit e243046 into salto-io:master Sep 10, 2019
@ori-moisis ori-moisis deleted the feature/serialize_partial branch September 10, 2019 11:23
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.

None yet

3 participants