Skip to content

Match ec ps/monitor column order to argocd-monitor's overview table - #261

Merged
gilesknap merged 1 commit into
mainfrom
ps-column-order
Sep 22, 2026
Merged

gilesknap merged 1 commit into
mainfrom
ps-column-order

Conversation

@gilesknap

@gilesknap gilesknap commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Match ec ps / ec ps --wide / ec monitor column order to argocd-monitor's Applications overview table (src/components/app-table/columns.tsx on feat/description-column @4e0dc59): Name, Description, Health, Sync, Namespace, Target Revision, Last Sync, Properties.
  • ec has no namespace column, so the mapped order is: name, description, health, sync, version, last sync, properties (properties/labels stay opt-in via --wide, unchanged).
  • The change is a single edit to ServicesSchema in src/edge_containers_cli/cmds/commands.py. Both the K8s and Argo backends (and the demo backend) build their DataFrame from this schema, or select() into its column order, so ec ps and ec monitor (which reads iocs_df.columns directly) stay consistent from one source of truth.
  • For a 5.4.1 patch release (no breaking change - column order only, no columns added or removed).

Test plan

  • uv run pytest -q - 90 passed
  • uv run ruff check src tests - all checks passed
  • uv run pyright src - 0 errors
  • Updated tests/test_demo.py::test_ps, tests/test_k8s.py::test_ps / test_ps_ignores_stale_description_label, tests/test_argocd.py::test_ps / test_ps_wide, and tests/test_monitor.py::test_monitor_columns / test_monitor_columns_wide with real rendered output (rich table / textual DataTable) captured from the updated code against the existing mocked/demo backends, asserting the new column order for ps, ps --wide and monitor.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Reordered service and application table columns so Description appears directly after Name, providing a layout consistent across standard, wide, and Kubernetes views.
  • Tests
    • Updated expected command output and table validations to reflect the new column ordering.

argocd-monitor's Applications overview table (src/components/app-table/
columns.tsx) orders columns name, description, health, sync, namespace,
revision, last sync, properties. ec has no namespace column; move
description up from last to second place (right after name) in
ServicesSchema so `ec ps`, `ec ps --wide` and `ec monitor` follow the
same order: name, description, health, sync, version, last sync,
[properties, --wide only].

Both the K8s and Argo backends, and the demo backend, build their
DataFrame from this single schema (or select() into its column order),
so this one change keeps ps and monitor consistent.

Co-Authored-By: Claude Opus 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: edecb567-aff9-4232-835d-4ab90eed5ebb

📥 Commits

Reviewing files that changed from the base of the PR and between e3b4c5e and af097a9.

📒 Files selected for processing (5)
  • src/edge_containers_cli/cmds/commands.py
  • tests/test_argocd.py
  • tests/test_demo.py
  • tests/test_k8s.py
  • tests/test_monitor.py
 ______________________________________________
< Making your bugs an offer they can't refuse. >
 ----------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@gilesknap
gilesknap merged commit 33d7fa3 into main Sep 22, 2026
10 of 11 checks passed
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.

1 participant