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

Switch to a more streamlined view for property diffs. #1212

Merged
merged 2 commits into from
Apr 17, 2018
Merged

Conversation

CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi
Copy link
Contributor Author

Looks like:
image

@CyrusNajmabadi
Copy link
Contributor Author

Note: we could consider an intra-string diff as well.

writeVerbatim(b, deploy.OpUpdate, " => ")
printPrimitivePropertyValue(b, diff.New, planning, deploy.OpCreate)
writeVerbatim(b, deploy.OpUpdate, "\n")
return
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: we could consider an instra-string diff as well for if we have "string => string". in the example i provided, it would streamline things even more. However, it would only look good if you were in a terminal and could see colors. otherwise, we'd want to fall back to this display where it was clear what the before/after were.

@CyrusNajmabadi CyrusNajmabadi force-pushed the propDiff branch 2 times, most recently from bb5fff5 to 72735fa Compare April 16, 2018 23:08
@CyrusNajmabadi
Copy link
Contributor Author

Preemptively merging in this fairly simple change.

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