chalk icon indicating copy to clipboard operation
chalk copied to clipboard

derive _OP_ARTIFACT_TYPE from ChalkObj.resourceType

Open miki725 opened this issue 1 year ago • 0 comments

Description

ChalkObj.resourceType is currently a set whereas _OP_ARTIFACT_TYPE is a single string value. In some places like a docker container resourceType can contain both image and container resources whereas artifact type is only reported as a container. Instead of manually setting the reporting field, we can derive it from the resourceType if we use something like OrderedSet so that first item in the set is the main artifact type and any subsequent types are supplementary and maybe we can report on them separately.

Result

Will simplify internal code a bit

miki725 avatar Apr 10 '24 13:04 miki725