Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sagansapien opened this issue Mar 14, 2023 · 2 comments
Open

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

sagansapien opened this issue Mar 14, 2023 · 2 comments

Comments

@sagansapien
Copy link

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
Copy link
Member

csmig commented Mar 15, 2023

Initial proposal:

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

Watcher could:

  • add the provided label(s) to the Collection it is managing if they are not already present.
  • tag any new Asset it creates with the provided label(s)
  • tag any existing Asset for which it is posting results with the provided label(s)

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants