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

don't blow up for invalid config #302

Merged
merged 2 commits into from
Oct 11, 2023
Merged

don't blow up for invalid config #302

merged 2 commits into from
Oct 11, 2023

Conversation

fauna-chase
Copy link
Contributor

ENG-5603

This will make it such that commands emit warnings when invalid endpoints are detected in the fauna shell config. Users will still be able to use the shell if this is the case, all invalid endpoints will be ignored. As it currently stands, any attempt to update the fauna shell config file will fail if there are invalid endpoints as we would remove them in that scenario.

This will make it such that commands emit warnings when invalid endpoints are detected in the fauna shell config.  Users will still be able to use the shell if this is the case, all invalid endpoints will be ignored.
As it currently stands, any attempt to update the fauna shell config file will fail if there are invalid endpoints as we would remove them in that scenario.
@fauna-chase fauna-chase requested a review from macmv October 11, 2023 01:56
Copy link
Contributor

@macmv macmv left a comment

Choose a reason for hiding this comment

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

looks good, can you add a test in config.test.ts to ensure that saveRootConfig throws an error when given an invalid config?

Copy link
Contributor

@macmv macmv left a comment

Choose a reason for hiding this comment

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

oh i thought we could actually validate the creation of invalidEndpoints. i guess it isn't super important, lgtm

@fauna-chase fauna-chase merged commit deece5b into main Oct 11, 2023
@fauna-chase fauna-chase deleted the fail-open branch October 11, 2023 16:13
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.

2 participants