Skip to content

docs(admin-cli): document rack state-history command#3676

Open
sydneyl-nvidia wants to merge 3 commits into
NVIDIA:mainfrom
sydneyl-nvidia:sydneyl/issue_3672
Open

docs(admin-cli): document rack state-history command#3676
sydneyl-nvidia wants to merge 3 commits into
NVIDIA:mainfrom
sydneyl-nvidia:sydneyl/issue_3672

Conversation

@sydneyl-nvidia

Copy link
Copy Markdown
Contributor

Description

Adds the missing operator reference page for the nico-admin-cli rack state-history <RACK_ID> command.

  • New page docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md, placed alongside the other rack subcommand pages (rack-show.md, rack-profile-show.md, etc.).
  • Structured to match the sibling pages: NAME, SYNOPSIS, DESCRIPTION, OPTIONS (including the global --extended and --sort-by flags inherited from cli_options.rs), Examples, and the See-also footer.
  • Adds a state-history row to the Subcommands table in rack.md so the new page is discoverable from the parent command doc.

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

Content verified against the command's clap definition (crates/admin-cli/src/rack/state_history/args.rs and rack/mod.rs): required RACK_ID positional, about = "Show rack state history", and the example mirrors the sibling docs' UUID style.

## Description

Adds the missing operator reference page for the `nico-admin-cli rack
state-history <RACK_ID>` command.

- New page `docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md`,
  placed alongside the other `rack` subcommand pages
  (`rack-show.md`, `rack-profile-show.md`, etc.).
- Structured to match the sibling pages: NAME, SYNOPSIS, DESCRIPTION,
  OPTIONS (including the global `--extended` and `--sort-by` flags
  inherited from `cli_options.rs`), Examples, and the See-also footer.
- Adds a `state-history` row to the Subcommands table in `rack.md` so the
  new page is discoverable from the parent command doc.

## Type of Change
- [ ] **Add** - New feature or capability
- [ ] **Change** - Changes in existing functionality
- [ ] **Fix** - Bug fixes
- [ ] **Remove** - Removed features or deprecated functionality
- [X] **Internal** - Internal changes (refactoring, tests, docs, etc.)

## Related Issues (Optional)

## Breaking Changes
- [ ] This PR contains breaking changes

## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
- [X] No testing required (docs, internal refactor, etc.)

## Additional Notes

Content verified against the command's clap definition
(`crates/admin-cli/src/rack/state_history/args.rs` and `rack/mod.rs`):
required `RACK_ID` positional, `about = "Show rack state history"`, and the
example mirrors the sibling docs' UUID style.
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: da4c599d-886c-4964-9d3f-5cd94f808400

📥 Commits

Reviewing files that changed from the base of the PR and between bbeadd8 and 7d198e3.

📒 Files selected for processing (1)
  • docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md

Summary by CodeRabbit

  • Documentation
    • Added a new documentation page for the rack state-history command, including synopsis, options (--extended, --sort-by, and help), a usage example, and related “See also” links.
    • Updated the rack command reference to include the new state-history subcommand.

Walkthrough

Adds a manual page for nico-admin-cli rack state-history and registers the command in the rack CLI subcommand reference.

Changes

Rack state history documentation

Layer / File(s) Summary
Document rack state-history command
docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md, docs/manuals/nico-admin-cli/commands/rack/rack.md
Adds command synopsis, option details, usage example, related links, and the rack subcommand index entry.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related issues

  • NVIDIA/infra-controller issue 3672 — Directly tracks adding the rack state-history documentation page and subcommand index entry.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately describes the new documentation for the rack state-history command.
Description check ✅ Passed The description aligns with the docs-only change and accurately summarizes the new page and subcommand table update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🔍 Container Scan Summary

No Grype artifacts were found to aggregate.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md`:
- Around line 23-25: Correct the grammar in the extended-output description by
changing “This used by measured boot” to “This is used by measured boot,” while
preserving the surrounding explanation.
- Around line 11-12: Update the `nico-admin-cli rack state-history` synopsis to
show the required argument for `--sort-by`, using `--sort-by <SORT_BY>` while
preserving the existing options and `RACK_ID` operand.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 524572c0-15d1-4ab1-a117-75e3f36f76ee

📥 Commits

Reviewing files that changed from the base of the PR and between ba4541f and d87b92a.

📒 Files selected for processing (2)
  • docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md
  • docs/manuals/nico-admin-cli/commands/rack/rack.md

Comment thread docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md
Comment thread docs/manuals/nico-admin-cli/commands/rack/rack-state-history.md Outdated
The global `--sort-by` option is inherited by every subcommand via clap's
`global = true`, but `rack state-history` never reads `config.sort_by` and
always emits records in chronological order. Document this in the command's
DESCRIPTION and next to the inherited `--sort-by` option so operators aren't
misled into thinking the flag reorders the output.
Signed-off-by: Syd Logan <sydneyl@nvidia.com>
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