saf icon indicating copy to clipboard operation
saf copied to clipboard

add "saf supplement tag" command

Open ejaronne opened this issue 2 years ago • 3 comments
trafficstars

Develop "saf supplement tag -i <current-hdf-file.json> -m <existing-to-new_tag_mapping_file> -e <existing tag key name> -n <new tag key name> -o <output-hdf-file.json>" command to the SAF CLI to add tags based on existing tags within an HDF results file. The mapping file is a two-column csv or json. Header dictates the existing tag name and new tag name as keys for matching/adding.

(will follow-up with sample csv)

ejaronne avatar Apr 05 '23 15:04 ejaronne

old_name (optional), new_name (optional), value for tag (optional) nist, cool_nist,, ,cci, 123123123, existingtag,,new_value

tag extender concept column-header-existing-tag,column-header-new-tag,maybe-other-column possible-existing-tag-value,value-for-new-tag

outta the gate csv before json

ok to overwrite values

handle arrays for the input (so if input array is cci and there is cci-1 and cci-2, then we get the results for both in output tag array)

duplicate values in output array is fine

default is for all controls, but maybe option to specify which controls in particular

Amndeep7 avatar Apr 06 '23 16:04 Amndeep7

This would also make sense for the profile itself as well - I think we outlined this came feature request before. I will see if I can find it

aaronlippold avatar Apr 06 '23 17:04 aaronlippold

Updating the results data only would lead very quickly to fixing the issue at the source

aaronlippold avatar Apr 06 '23 17:04 aaronlippold