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
Description
ChalkObj.resourceTypeis currently a set whereas_OP_ARTIFACT_TYPEis a single string value. In some places like a docker containerresourceTypecan 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 theresourceTypeif we use something likeOrderedSetso 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