-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cases] Export getCasesMetrics
from the cases UI client
#131493
Conversation
getCasesMetrics
from the cases UI client
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
@@ -43,3 +49,11 @@ export const getCasesStatus = async ({ | |||
|
|||
return convertToCamelCase<CasesStatusResponse, CasesStatus>(decodeCasesStatusResponse(response)); | |||
}; | |||
|
|||
export const getCasesMetrics = async ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see in all of the other APIs we accept an abort signal, is there a particular reason to not require it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot it. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions:
- Are we missing an abort signal in the frontend API?
- Do we really need to make the backend more complex by accepting features as strings or array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes.
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
To update your PR or re-run it, just comment with: cc @cnasikas |
…1493) * Export cases metrics * Fixes * Add integration tests * Add comment * Add signal
Summary
This PR exposes the
getCasesMetrics
in the UI client.Depends on: #131407
Usage
Respose:
Checklist
Delete any items that are not applicable to this PR.
For maintainers