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

Gussy Up fauna status #521

Open
wants to merge 12 commits into
base: v3
Choose a base branch
from
Open

Gussy Up fauna status #521

wants to merge 12 commits into from

Conversation

henryfauna
Copy link
Contributor

@henryfauna henryfauna commented Dec 12, 2024

Description

This PR cleans up the output from fauna schema status. Up for debate whether these changes actually make the output better.

Examples

Local Changes
Screenshot 2024-12-12 at 3 09 04 PM

Pending Staged Changes
Screenshot 2024-12-12 at 3 09 22 PM

Ready Staged Changes
Screenshot 2024-12-12 at 3 09 35 PM

@henryfauna henryfauna marked this pull request as ready for review December 13, 2024 00:11
@henryfauna henryfauna requested a review from a team as a code owner December 13, 2024 00:11
Comment on lines +75 to +80
if (statusResponse.status === "ready" && statusResponse.diff) {
logLineWithTab("(use `fauna schema commit` to commit staged changes)");
logBlockWithTab(statusResponse.diff);
} else if (statusResponse.pending_summary) {
logBlockWithTab(statusResponse.pending_summary, 1);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I like how the diff is displayed for local changes and ready staged changes. Do you think there is a clear way to include the diff when reporting pending changes?

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.

3 participants