question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tags on Catalog Entities

See original GitHub issue

Feature Suggestion

Add the ability to put user defined tags on catalog entities.

These are single-valued strings in essence, to for example classify entities in various ways. This is different to the labels in metadata.labels that are key-value pairs.

Possible Implementation

We have been discussing back and forth whether tags should be complex and supporting metadata of their own - perhaps colors, description etc. This would probably entail inventing a Tag entity kind or similar, that other entities can reference. We have decided against that at least in the initial implementation, in the name of simplicity, until we know more about how the feature will be used in the wild.

Therefore, we propose that tags are simply added as a lightweight optional list of strings to the base shared metadata structure.

Example:

metadata:
  name: my-component
  tags:
    - java
    - edge

As discussed in #1947, this is compatible with a future extension to the model where these strings could be interpreted as refs (with an implicit kind and namespace) to a more metadata-rich tag kind. But for now they are just read as-is, as plain strings.

Mockup of how this could look when shown in the Backstage Service Catalog:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanalundcommented, Aug 18, 2020

In addition, I wonder how to handle the casing of the tags. In the example entity the tags are all lower case, in the mockup the start with a capital letter. For the start I would go with no extra handling, but we could extend that later.

@Fox32 personally I think forcing lower case makes sense.

Do you have a suggestion how it should look on the entity details page?

@katz95 could you help with this question? Pretty sure we don’t have a mockup of this. Feels natural to include it in the “Information” card though. @Fox32 to unblock you, I would suggest to start with just adding it to the Service Catalog table, as outlined in the above mockup.

0reactions
Fox32commented, Aug 18, 2020

@Fox32 personally I think forcing lower case makes sense.

I will go with the existing isValidDnsLabel validation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tags on Catalog Entities · Issue #1997 · backstage ... - GitHub
We have been discussing back and forth whether tags should be complex and supporting metadata of their own - perhaps colors, description etc....
Read more >
Descriptor Format of Catalog Entities - Backstage.io
Each tag must be sequences of [a-z0-9] separated by - , at most 63 characters in total. links [optional]. A list of external...
Read more >
Using Tags - Oracle Help Center
Use a word or a phrase as tags to classify objects in the data catalog. Tags are free-form ... On the Home tab...
Read more >
Adding tags to service catalog item - ServiceNow Community
Is it possible to add tags to service catalog items so when they search for tags in the filter navigation box, that it...
Read more >
Tagging IAM resources - AWS Identity and Access Management
Tags help you identify and organize your AWS resources. ... To edit a tag that is attached to an IAM entity (user or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found