-
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
Add support for /api/status before Kibana completes startup #79012
Changes from 24 commits
06dd043
70ca428
a5addbe
069213f
567da20
2cba1e3
56e1f5f
c328b35
78cd007
9b1d174
5742dd9
e7f355b
11aa452
8791a24
8a6c767
efbbc7c
fcc1853
2e0ac39
ade858b
9e04194
bbfda7b
4bac4c8
d7ad6d0
11f0a0a
c0aebe1
ecd4cbf
4a4b772
e9ce811
efa4809
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [CustomHttpResponseOptions](./kibana-plugin-core-server.customhttpresponseoptions.md) > [bypassErrorFormat](./kibana-plugin-core-server.customhttpresponseoptions.bypasserrorformat.md) | ||
|
||
## CustomHttpResponseOptions.bypassErrorFormat property | ||
|
||
Bypass the default error formatting | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
bypassErrorFormat?: boolean; | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [HttpResponseOptions](./kibana-plugin-core-server.httpresponseoptions.md) > [bypassErrorFormat](./kibana-plugin-core-server.httpresponseoptions.bypasserrorformat.md) | ||
|
||
## HttpResponseOptions.bypassErrorFormat property | ||
|
||
Bypass the default error formatting | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
bypassErrorFormat?: boolean; | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,9 @@ export class KbnClientStatus { | |
const { data } = await this.requester.request<ApiResponseStatus>({ | ||
method: 'GET', | ||
path: 'api/status', | ||
retries: 30, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It gives There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect that Josh had this in here to debug test failures. I can remove this to see what happens |
||
// Status endpoint returns 503 if any services are in an unavailable state | ||
ignoreErrors: [503], | ||
}); | ||
return data; | ||
} | ||
|
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'm fine to add it as long as it doesn't leak outside of the
@kbn/test
package, but would it make sense to name itignore
for consistency with ES API?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 had that same exact thought, but I thought that
ignoreErrors
was slightly more descriptive. I was personally confused the first time I saw theignore
property on the ES API. Happy to adjust this though if you'd prefer the consistency