Skip to content

Enhancement: in the output, follow the order of properties as defined in defaultProperties #2008

@arjunumenon

Description

@arjunumenon

Description - Display Order Mentioned on the method defaultProperties() not following the order mentioned

In the code base, we recently changed the approach in which default fields are shown in Command shell using the method

  public defaultProperties(): string[] | undefined {
    return ['WorkloadDisplayName', 'StatusDisplayName'];
  }

Current Behavior

Even if we have given the list of fields to be displayed in a specific order, it does not follow the given order. It will just show the results in the same order how the fields are available in the default output.
image

Expected Behavior

It would be good if the output follows the default order given in the defaultproperties method. If it does not follow, we may have to resort our approach to old approach where check the output and show the results in the needed order which is not an optimum solution since we have refined output mechanism defined now.

PS : Have created the issue without a template since it is not a bug in the result, but with the code base

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions