-
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
Provide method to render without sending .kibana/config #8207
Conversation
I think some light refactoring here could go a long way to making this easier to understand. I worry any time I see boolean arguments or compound conditions in ternary operators. Perhaps something like: https://gist.github.com/epixa/969ac59b277761feb9907bbfe0d13c34 Warning: that is completely untested |
@@ -1,4 +1,5 @@ | |||
# Kibana is served by a back end server. This setting specifies the port to use. | |||
xpack.reporting.encryptionKey: foo |
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.
Probably didn't want this, can you amend it away?
957b400
to
d4f2ee6
Compare
LGTM |
Wait, I take it back! |
|
||
async function renderApp(app) { | ||
const isElasticsearchPluginRed = server.plugins.elasticsearch.status.state === 'red'; | ||
let payload = await getPayload(app); |
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.
This should be const
since the reference itself is never changed.
d4f2ee6
to
b680ba2
Compare
LGTM |
1 similar comment
LGTM |
--------- **Commit 1:** Provide method to render without sending .kibana/config * Original sha: 8fdcb83 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T19:05:07Z **Commit 2:** Provide explicit render methods for including and excluding settings * Original sha: b680ba2 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T20:41:11Z
--------- **Commit 1:** Provide method to render without sending .kibana/config * Original sha: 8fdcb83 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T19:05:07Z **Commit 2:** Provide explicit render methods for including and excluding settings * Original sha: b680ba2 * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T20:41:11Z
--------- **Commit 1:** Provide method to render without sending .kibana/config * Original sha: 8d2d0a492fa8f2fdcabf51f29a3cdf71bafdc2a3 [formerly 8fdcb83] * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T19:05:07Z **Commit 2:** Provide explicit render methods for including and excluding settings * Original sha: a680d102e91905b634f6862b41652823730864e0 [formerly b680ba2] * Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-09T20:41:11Z Former-commit-id: 0c2dd87
[backport] PR elastic#8207 to 5.x Former-commit-id: 6a404e7
…isk Summary (#174574) Adding context in Risk Summary, part of [#8207](elastic/security-team#8207) Meta This PR handles both [#8357](elastic/security-team#8357) and [#8359](elastic/security-team#8359) <img width="609" alt="Screenshot 2024-01-10 at 12 06 00" src="https://github.com/elastic/kibana/assets/2423976/1f516eb9-1723-4c88-80b9-b61905a59f6a"> Closing #174443 since this PR includes those changes as well --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This adds a method to render views using the chrome base template without passing user defined settings from .kibana/config.