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

[CLI] defog vet metadata #39

Merged
merged 1 commit into from
Mar 14, 2024
Merged

[CLI] defog vet metadata #39

merged 1 commit into from
Mar 14, 2024

Conversation

wongjingping
Copy link
Collaborator

Added a new command to our CLI: defog vet metadata <csv_path>
This will check each row and if the character length of the column description exceeds 100, it will send a request to our backend to propose a shortened version.
It will prompt the user with the shortened version to see if the user wants to accept it or not, and will only save it back to the csv if the user agrees (enters 'y').
The user can propose edits on the suggested description.

$ defog vet metadata defog_metadata.csv
Column description for username is > 100 characters.

Old description: Email of the user. Possible values are [email protected], [email protected], [email protected], [email protected], [email protected]

Suggested description: Email of the user. Format: [username]@[domain].com

Do you want to save this description? Enter (Y/n) or your proposed edit: y
Would you like to save the changes back to defog_metadata.csv? Enter 'y' to save or anything else to
 exit without saving:y
Changes saved to defog_metadata.csv

@wongjingping wongjingping requested a review from rishsriv March 14, 2024 06:58
Copy link
Member

@rishsriv rishsriv left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@rishsriv rishsriv merged commit 8ce0096 into main Mar 14, 2024
2 checks passed
@rishsriv rishsriv deleted the jp/vet branch March 14, 2024 07:59
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