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

fix(transforms): transitive transforms now work without .value in refs #808

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

dbanksdesign
Copy link
Member

Issue #, if available:

#794

Description of changes:

Updated resolveObject function to do the ignorePaths check based on if the reference has a value or not. This allows transitive transforms to work on references without .value

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Collaborator

@chazzmoney chazzmoney left a comment

Choose a reason for hiding this comment

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

Looks good - just a couple minor thoughts.

Comment on lines 91 to 93
one: { value: 'foo' },
two: { value: '{one}' },
three: { value: '{two}' }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we add a couple tests that check different combinations of references with and without .value?

value: "{color.font.secondary.value}",
value: "{color.font.secondary}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we believe not having ".value" is the preferred method that we would like people to follow, this is great!

If not, it could be worthwhile to leave one of these with the .value appended so people know they can use it either way. Though, maybe that would be confusing and it is better to have a suggested method.

Copy link
Collaborator

@chazzmoney chazzmoney left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@chazzmoney chazzmoney merged commit 41bc893 into main Apr 7, 2022
@jorenbroekema jorenbroekema deleted the fix-transitive-transforms branch March 26, 2024 23:16
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

2 participants