Skip to content

inspect: order multi attributes - #467

Open
brainexe wants to merge 1 commit into
mainfrom
md_inspect_sort
Open

brainexe wants to merge 1 commit into
mainfrom
md_inspect_sort

Conversation

@brainexe

Copy link
Copy Markdown
Member

having views with many unsorted multi-attributes are a bit hard to search
bad example:
image

@brainexe
brainexe requested review from kofrezo and a lite review from Copilot September 18, 2026 05:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Improves inspect-view readability by sorting multi-valued attributes deterministically.

Changes:

  • Adds a sort_values template filter with mixed-type fallback handling.
  • Applies sorting to multi-attribute values in the inspect template.
File summaries
File Description
packages/serveradmin/serveradmin/servershell/templatetags/servershell.py Adds multi-value sorting logic.
packages/serveradmin/serveradmin/servershell/templates/servershell/inspect.html Sorts values before displaying them.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kofrezo kofrezo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should suffice to sort them in the views.py so we don't have to add another template tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants