-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Reporting] standardize internal config passing to use a simple object #157118
Conversation
Looking at the test failure - it seems that the API_BASE_URL in I'm not sure why that wasn't failing before these changes. 🤔 |
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 like that we're able to remove the level of abstraction of the kbnConfig and ReportingConfigType. Thank you for going through these changes 🙇🏻
I think the test failure can just be changed? I tested it and didn't see it affecting other tests by adding the leading slash but also was hesitant to push my changes onto this branch - I might try some roundabout PR request onto this for my own learning :face_palm:
Yes, I also think that's the best way to move forward. 👍🏻
I think there was something wrong about the HTTP mocks used in reporting tests in the previous code. Somehow I fixed it, and now the tests a mistake that was in the previous code. Unfortunately, I didn't catch this before filing this PR - which I usually try to do. |
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
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.
LGTM 👍
#157118) ## Summary Remove a complex type of object that was used to pass around config settings, that was in place to follow code patterns from the old Kibana platform. Addresses https://github.com/elastic/kibana/pull/155081/files#r1188025616 ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Ensure hostname `0.0.0.0` is re-written to `localhost` and warning logs are working correctly ### Risk Matrix Delete this section if it is not applicable to this PR. Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release. | Risk | Probability | Severity | Mitigation/Notes | |---------------------------|-------------|----------|-------------------------| | Regression in `xpack.reporting.kibanaServer` yml settings | Low | Med | Reporting sometimes needs a URL to the Kibana server. The necessary protocol/hostname/port needed build the URL is sourced from kibana.yml settings under `server.*`, but can be overridden using settings in `xpack.reporting.kibanaServer`. This feature exists because the headless Chromium browser sometimes must connect to a proxy that Kibana otherwise doesn't know about. | ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Pinging @elastic/appex-sharedux (Team:SharedUX) |
Summary
Remove a complex type of object that was used to pass around config settings, that was in place to follow code patterns from the old Kibana platform.
Addresses https://github.com/elastic/kibana/pull/155081/files#r1188025616
Checklist
0.0.0.0
is re-written tolocalhost
and warning logs are working correctlyRisk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
xpack.reporting.kibanaServer
yml settingsserver.*
, but can be overridden using settings inxpack.reporting.kibanaServer
. This feature exists because the headless Chromium browser sometimes must connect to a proxy that Kibana otherwise doesn't know about.For maintainers