Skip to content

Migrate cmdlets to centralized query-param handling #33

Description

Follow-up to #32: bring the 176 straggler Get-* cmdlets in line with the 30 already migrated by #32 (PR #49), and refactor existing per-cmdlet mapping onto the shared helper. Consistency sweep — a uniform surface across the module.

  • Refactor 156 cmdlets that already declare at least one of -Limit/-Sort/-Filter/-TotalOnly but hand-roll the $queryParams[...] mapping onto Add-PfbCommonQueryParams (includes Get-PfbHardwareTemperature, which declares -Limit but currently applies it client-side via Select-Object -First rather than as a query key)
  • Add missing param declarations to 20 cmdlets that declare none of the four today (some are legitimately param-less singleton/config endpoints — verify each needs list-style params before adding)
  • Cross-reference Reports/PfbApiDriftReport.md's Parameter Gaps table (39 relevant rows covering GET/Get-Pfb* limit/sort/filter/total_only gaps) for part of the missing-declaration work — it's a real but partial source, not exhaustive for the full 176
  • Prioritize -Limit/-TotalOnly (real capability); -Sort/-Filter for uniformity
  • Skip -TotalItemCount (net-new, 0 cmdlets today) unless a use case appears

Blocked on: #32 (centralized helper must exist first — see PR #49).
Owner: TBD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions