Skip to content

Improve attributes sorting in the resources tab #496

Open
@mbiggio

Description

@mbiggio

What problem are you trying to solve?

Currently, attributes in the resources tab are just sorted according to the first attribute key, and attributes with the same key are ordered arbitrarily. So, attributes like ["duration", "=", "1001", "ms"] and ["duration", "=", "7", "ms"] would be ordered arbitrarily in the attributes column.

Moreover, a resource might actually have multiple attributes - currently only the first attribute is considered for sorting.

How should the problem be solved?

It would be nice to sort the attributes taking into account their semantics. For example, the two attributes above should probably be sorted in ascending order as:

  1. ["duration", "=", "7", "ms"]
  2. ["duration", "=", "1001", "ms"]

that is, with the attribute values sorted numerically instead of lexicographically. Other attributes whose value is truly a string might require lexicographical sorting instead.

Any alternatives you've considered?

No

How would users interact with this feature?

No response

Would you like to work on this feature?

maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-featureSeverity: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions