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

Display more info for changes #120

Merged
merged 5 commits into from
Nov 16, 2023
Merged

Display more info for changes #120

merged 5 commits into from
Nov 16, 2023

Conversation

DavidS-ovm
Copy link
Contributor

This displays mapped and unmapped items as well as attribute diffs from tf plan.

Templates from #111
Fixes #110

Rendering this results in the equivalent output of the design.
Copy link
Member

@dylanratcliffe dylanratcliffe left a comment

Choose a reason for hiding this comment

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

Nice

Example:


<details>
<summary><img width="14" alt="updated" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/changed.png"> Deployment › api-server</summary>

```diff
--- current
+++ planned
@@ -46,7 +46,6 @@
                       value: TRYMJyCxFCWU4FycHj1oztPyGyvtiv9f
                       value_from: []
                     - name: API_KEY_CLIENT_SECRET
-                      value: REDACTED
                       value_from: []
                     - name: AUTH0_AUDIENCE
                       value: https://api.overmind.tech
```
@DavidS-ovm
Copy link
Contributor Author

@dylanratcliffe please run this now through its paces. Note that there are some things that are displayed differently by the github parser and I found it easiest to paste the output into a comment box here and check the preview.

@dylanratcliffe
Copy link
Member

Looks very good. The diff view in particular is excellent. Only thing would be that the empty state looks a but like a bug since there's an expand with nothing in there:

Screenshot 2023-11-16 at 11 30 15 am

I reckon either have an error in there, or render it as a dotpoint rather than a dropdown. If you go the error route maybe something like:

No diff available

@DavidS-ovm DavidS-ovm enabled auto-merge November 16, 2023 13:49
@DavidS-ovm DavidS-ovm merged commit 40e0f7f into main Nov 16, 2023
@DavidS-ovm DavidS-ovm deleted the more-change-info branch November 16, 2023 13:50
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.

Improve get-change markdown output to show planned changes' attribute differences
2 participants