NUWCDIVNPT / stigman-watcher

A utility that watches a path for test result files on behalf of a STIG Manager Collection
Other
6 stars 4 forks source link

Feature Request: Allow Watcher to Add Labels to New Assets #51

Open sagansapien opened 1 year ago

sagansapien commented 1 year ago

We have several instances of watcher used by different groups posting results to a shared collection. It would be handy to be able to apply a label to all assets posted by a specific watcher; This would help sorting a large collection by using labels to identify the originating department/division/etc.

csmig commented 1 year ago

Initial proposal:

Add an option --asset-label label1[,label2...]. The envvar could be WATCHER_ASSET_LABEL=label1[,label2...].

Watcher could:

Does that seem reasonable? One possible issue: Labels have a name, color, and description. However this proposal doesn't support setting the color or description from Watcher, so perhaps we could refine this further.

sagansapien commented 1 year ago

That sounds great. I'm not worried about the colors and descriptions if I can manage those after they are created on the collection by watcher, so long as watcher doesn't continue to reset them.