Open
Conversation
hdxscott
approved these changes
Oct 8, 2025
Collaborator
hdxscott
left a comment
There was a problem hiding this comment.
This is good.
For dictionaries, you should be aware of this work I did recently: https://hydrolix.atlassian.net/browse/HDX-8857
I don’t know what release this is in.
You can use these hashes to determine if the local file the user is uploading is the same as the file that is already uploaded. If the files are the same, you can let the user know and save time.
You could also maybe add a feature just to let users compare the hash of their local file to the remote one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR introduces two primary enhancements to the dictionary files command set:
updatecommand, which streamlines the workflow for replacing an existing dictionary file by combining delete and upload operations into a single command.--body-from-file-typeoption in the existing upload command. The option is now hidden from the--helpoutput. It remains operational to ensure backward compatibility for existing scripts and will display a warning message if used.Here the
--helpof the newupdatecommand for more information:hdxcli dictionary files update --help Usage: hdxcli dictionary files update [OPTIONS] LOCAL_FILE_PATH REMOTE_FILE_NAME Updates an existing dictionary data file by replacing it. This command provides a convenient way to replace a remote dictionary file with a local version in a single step. It first deletes the existing remote file and then uploads the new one. The command can be run in two modes: - INTERACTIVE: If `REMOTE_FILE_NAME` is not provided, you will be prompted to select from a list of existing files. - DIRECT: If `REMOTE_FILE_NAME` is provided, the command will target that file directly. For safety, a confirmation prompt is still shown unless the `--yes` flag is used. Examples: # Interactively update a dictionary file in the 'my_project' project hdxcli dictionary --project my_project files update ./new_countries.csv # Directly update 'countries' file after asking for confirmation hdxcli dictionary --project my_project files update ./new_countries.csv countries # Directly update 'cities' file without any prompts hdxcli dictionary --project my_project files update ./new_cities.json cities --yes Options: -y, --yes Skip the confirmation prompt and proceed with the update. --help Show this message and exit.