Better handling of connection string #7339
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR does 2 things:
Scenarios Tested
Running 'firebase setup:emulators:dataconnect' from outside a project directory, then inside a project directory
![Screenshot 2024-06-17 at 4 06 06 PM](https://private-user-images.githubusercontent.com/4635763/340483058-5b247695-1cce-4b76-b185-ad2af9ea22cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDIzNzEsIm5iZiI6MTcyMDU0MjA3MSwicGF0aCI6Ii80NjM1NzYzLzM0MDQ4MzA1OC01YjI0NzY5NS0xY2NlLTRiNzYtYjE4NS1hZDJhZjllYTIyY2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTYyMTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzYwNWFhNzMzY2MxMGU4YTc2MTJhNzdiYjJhMGI5YWFkNDg3NzAxMzhiNWQ2YzU3ZjdiNzA1NjE2MzkwZDdkMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Z_sEyKTUPnlO69OYO8-IlxOfsjC7jUXwtX4CFD0sWOY)
Try to start emulator with a connection string configured, error out, run the suggested command, and then successfully run the emulator
![Screenshot 2024-06-17 at 4 25 21 PM](https://private-user-images.githubusercontent.com/4635763/340483280-a18435f0-a0f3-44c7-b2eb-399786f16156.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDIzNzEsIm5iZiI6MTcyMDU0MjA3MSwicGF0aCI6Ii80NjM1NzYzLzM0MDQ4MzI4MC1hMTg0MzVmMC1hMGYzLTQ0YzctYjJlYi0zOTk3ODZmMTYxNTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTYyMTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzIzOTI5MjIwNjgyZjUwZThhYzU4MjhjZGNiZDExMWFlNDliM2Q4Y2Q5NzY4ZmEwZjZiYmU0NGQ1OWJjMDdhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Fwys2kym0N6fwkQr058qzkHAY34zzbDLci22me7xJSg)