OCHA-DAP / hdx-cli-toolkit

A commandline tool for interacting with HDX with a view to doing bulk updates
MIT License
1 stars 0 forks source link

GH31/HDX-9932 Productionise remove_extras_keys #33

Closed IanHopkinson closed 5 months ago

IanHopkinson commented 5 months ago

Purpose

Version for this PR: 2024.6.2

This PR productionises the remove_extras_key command so that it aligns with the form of the list and update in terms of methods for providing the datasets to be addressed and also outputs results to an output_path.

This is rather tricky to test since the extras key is "illegal" meaning you can't create a dataset with it.

31

Major file changes

Updates in cli.py and hdx_utilities.py

Minor file changes

The DEMO.MD and README.MD files get updated. As does the version in pyproject.toml. We add a new utility for comparing dictionaries to utilities.py.

Versioning

hdx-cli-toolkit uses the CalVer versioning scheme with format YYYY.MM.Micro i.e. 2022.12.1 which is updated manually in pyproject.toml. The "Micro" component is simply an integer increased by 1 at each version, starting from 0.