Skip to content

Fixed a bug in get_latency_configuration when there are no volume level latency configurations#282

Open
kcantrel wants to merge 5 commits into
mainfrom
add_more_WF_scripts
Open

Fixed a bug in get_latency_configuration when there are no volume level latency configurations#282
kcantrel wants to merge 5 commits into
mainfrom
add_more_WF_scripts

Conversation

@kcantrel

@kcantrel kcantrel commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Also, renamed it 'list_eda_latency_config'.
Also, renamed 'list_latency_events' to 'list_eda_latency_events' to be more consistent with the other scripts.

…el latency configurations. Also, renamed it 'list_eda_latency_config'. Also, renamed 'list_latency_events' to 'list_eda_latency_events'.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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.

Pull request overview

This PR updates the Workload Factory API sample scripts to (1) avoid failures when an account has no volume-level latency configuration, and (2) standardize naming by moving latency-related scripts under an eda-prefixed naming scheme.

Changes:

  • Add a guard in list_eda_latency_config to handle accounts with no volume-level latency configurations.
  • Introduce list_eda_latency_events to list latency events for a BlueXP account and update README links accordingly.
  • Extend list_credentials with a -j option and improve robustness of its jq parsing for nullable fields.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
Management-Utilities/Workload-Factory-API-Samples/README.md Updates the script catalog for renamed/added latency scripts.
Management-Utilities/Workload-Factory-API-Samples/list_eda_latency_events New script to list EDA latency events for a BlueXP account.
Management-Utilities/Workload-Factory-API-Samples/list_eda_latency_config Adds an early-exit guard when no per-volume configs exist.
Management-Utilities/Workload-Factory-API-Samples/list_credentials Adds -j output option and adjusts jq formatting/field handling.
Comments suppressed due to low confidence (1)

Management-Utilities/Workload-Factory-API-Samples/list_eda_latency_config:131

  • The new empty-filesystems guard is fragile because the jq output is unquoted and compared as a string. If jq ever returns an empty value, the test can error (e.g., "[: ==: unary operator expected"). Quote the substitution and use a numeric compare.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Management-Utilities/Workload-Factory-API-Samples/README.md Outdated
Comment thread Management-Utilities/Workload-Factory-API-Samples/list_credentials
@kcantrel
kcantrel requested a review from nichollri July 22, 2026 15:42
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.

2 participants