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

Remove --active --no-input flags from fauna local #539

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

ecooper
Copy link
Contributor

@ecooper ecooper commented Dec 17, 2024

Problem

fauna local allows you to push a schema while bootstrapping. You need to manually confirm it, and that feels a little weird given the context of the command.

Solution

Remove --input and --active from the command, but set input to false and active to true when calling pushSchema.

Result

Schema is pushed to the current active schema without a prompt.

Testing

The existing tests where updated to match the new behavior.

@ecooper ecooper changed the base branch from main to v3 December 17, 2024 17:49
@ecooper ecooper requested a review from a team as a code owner December 17, 2024 17:49
@cleve-fauna cleve-fauna requested a review from a team December 17, 2024 17:49
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

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

LGTM.

@ecooper ecooper changed the title V3 always active Remove --active --no-input flags from fauna local Dec 17, 2024
@ecooper ecooper merged commit 8e75abb into v3 Dec 18, 2024
4 checks passed
@ecooper ecooper deleted the v3-always-active branch December 18, 2024 18:14
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