Repository navigation
Match ec ps/monitor column order to argocd-monitor's overview table - #261
Merged
Merged
Conversation
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]>
Contributor
|
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 configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ec ps/ec ps --wide/ec monitorcolumn order to argocd-monitor's Applications overview table (src/components/app-table/columns.tsxonfeat/description-column@4e0dc59): Name, Description, Health, Sync, Namespace, Target Revision, Last Sync, Properties.name,description,health,sync,version,last sync,properties(properties/labels stay opt-in via--wide, unchanged).ServicesSchemainsrc/edge_containers_cli/cmds/commands.py. Both the K8s and Argo backends (and the demo backend) build theirDataFramefrom this schema, orselect()into its column order, soec psandec monitor(which readsiocs_df.columnsdirectly) stay consistent from one source of truth.Test plan
uv run pytest -q- 90 passeduv run ruff check src tests- all checks passeduv run pyright src- 0 errorstests/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, andtests/test_monitor.py::test_monitor_columns/test_monitor_columns_widewith real rendered output (rich table / textual DataTable) captured from the updated code against the existing mocked/demo backends, asserting the new column order forps,ps --wideandmonitor.🤖 Generated with Claude Code
Summary by CodeRabbit