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

✨ match-variables: check validity of output_file #1423

Merged
merged 3 commits into from
Aug 4, 2023

Conversation

lucasrodes
Copy link
Member

@lucasrodes lucasrodes commented Aug 3, 2023

Command line tool etl-match-variables has a required input argument output-file, which points to the file where the variable mapping will be saved. If this file is not JSON, the export will fail.

This is currently not being checked, hence if the user of the tool was to insert an invalid value for output-file they will only realise at the very end (after investing time in building the variable mapping).

Hence, this PR sanity checks the value of output-file at first.

First raised in #1403

Copy link
Contributor

@spoonerf spoonerf left a comment

Choose a reason for hiding this comment

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

Works for me! Thanks @lucasrodes really appreciate you fixing this so quickly 💪🏼

@lucasrodes lucasrodes marked this pull request as ready for review August 4, 2023 09:01
@lucasrodes lucasrodes merged commit b03ab80 into master Aug 4, 2023
6 checks passed
@lucasrodes lucasrodes deleted the enhance/match-variables branch August 4, 2023 09:01
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.

None yet

2 participants