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

Improve application diffs #23

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Improve application diffs #23

merged 3 commits into from
Sep 5, 2024

Conversation

hnnsgstfssn
Copy link

No description provided.

@hnnsgstfssn hnnsgstfssn force-pushed the SD-407-diff-improvement branch 4 times, most recently from d1bf18d to 8e1b400 Compare September 4, 2024 08:42
@hnnsgstfssn hnnsgstfssn changed the title WIP diff changes Improve application diffs Sep 4, 2024
@hnnsgstfssn hnnsgstfssn marked this pull request as ready for review September 4, 2024 08:42
@hnnsgstfssn
Copy link
Author

@hnnsgstfssn hnnsgstfssn force-pushed the SD-407-diff-improvement branch 2 times, most recently from 7f07243 to 1673d32 Compare September 4, 2024 09:06
yzdann
yzdann previously approved these changes Sep 5, 2024
Copy link

@yzdann yzdann left a comment

Choose a reason for hiding this comment

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

LGTM! 👏

I didn't try to understand diff functionality (as it's coming from golang) instead invested my time on understanding the test.

internal/pkg/argocd/diff/diff.go Show resolved Hide resolved
internal/pkg/argocd/argocd.go Outdated Show resolved Hide resolved
internal/pkg/argocd/argocd_test.go Show resolved Hide resolved
sunchill06
sunchill06 previously approved these changes Sep 5, 2024
ashvarts
ashvarts previously approved these changes Sep 5, 2024
yzdann
yzdann previously approved these changes Sep 5, 2024
This changes the application diff to render a YAML diff with a number of
context lines instead of relying on the cmp library previously used
which would render a diff of Go objects.
After discussion it has been deemed unnecessary to enforce non-bare URLs
in markdown.
The earlier version fails to run on Darwin with Go 1.23.
@hnnsgstfssn hnnsgstfssn merged commit 4a14b34 into main Sep 5, 2024
5 checks passed
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.

4 participants