-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Allow Tags
to be displayed in a specific order
#17841
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
Comments
So if you want a standardized tag order to represent a name....why not just make that the name of whatever object you are naming? You can make custom validators that make it so names conform to a regex based on available attributes. For instance, part of our naming is For specifically about your VM example...cluster information already exist. In fact you can't make a VM without a cluster and a cluster can be assigned a tenant and a site. |
Because not all objects have names, for instance I could want to do this to an IP address.
You can actually make a VM without a cluster, it is not a requirement. I don't want you to get attached to the naming possibilities here, this functionality can be used for many other use cases. |
Ultimately it's the netbox team decides which I am not. But as feedback this doesn't seem like a useful addition to tags and is fairly niche and can be accomplished with other means. It's also the only example you've given so hard to think of other use-cases. But for the index...would it be set on the tag model or within the model you are apply the tag to? For example if I have tag
|
The proposal is for it to be added to the tag model. |
So pretty much like the "display weight" of custom fields, just to get some sorting. |
Well when you put it like that... |
There's a |
Fixed in #18930 |
* Fixes #17443: Adds ExportTemplate.file_name field * Addresses PR feedback - Adds `file_name` to `ExportTemplateBulkEditForm.nullable_fields` - Shortens max length of `ExportTemplate.file_name` to 200 chars - Adds tests for `ExportTemplateFilterSet.file_extension` * Fixes migration conflict caused by fix for #17841
Uh oh!
There was an error while loading. Please reload this page.
NetBox version
v4.1.0
Feature type
New functionality
Triage priority
N/A
Proposed functionality
Add an integer
Index
field to theTag
object definition which can be used by the frontend to order tags first byIndex
, then alphabetically when displaying them.Index
ordering should be from lowest to highest value, where the lowest value has the highest priority and therefore it is displayed before any other tags-128
to128
, could be implemented for optimizationUse case
There are innumerous use cases for tags, one such case is the ability to give information about an object such as a virtual machine:
NETPY
CLT01
VM108
APCHE
It would be lovely to display the four tags in the aforementioned order, since that is the formal name of this object and everywhere in our internal processes and documents, we refer to this virtual machine as
NETPY-CLT01-VM108-APCHE
.Having the ability to sort tags when displaying objects in Netbox will allow for further customization and integration with other systems that rely on tags for looking up objects.
Database changes
A new
integer
column for theTag
table definition.External dependencies
None that I am aware of.
The text was updated successfully, but these errors were encountered: