Skip to content

Commit

Permalink
Merge branch 'master' into upgrade-lodash-4-final
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Jul 2, 2020
2 parents 80a5f21 + 0e008e3 commit 15bbfee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions docs/settings/reporting-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,25 @@ When `xpack.reporting.capture.browser.type` is set to `chromium` (default) you c
large exports from causing performance and storage issues.
Defaults to `10485760` (10mB).

| `xpack.reporting.csv.scroll.size`
| Number of documents retrieved from {es} for each scroll iteration during a CSV
export.
Defaults to `500`.

| `xpack.reporting.csv.scroll.duration`
| Amount of time allowed before {kib} cleans the scroll context during a CSV export.
Defaults to `30s`.

| `xpack.reporting.csv.checkForFormulas`
| Enables a check that warns you when there's a potential formula involved in the output (=, -, +, and @ chars).
See OWASP: https://www.owasp.org/index.php/CSV_Injection
Defaults to `true`.

| `xpack.reporting.csv.enablePanelActionDownload`
| Enables CSV export from a saved search on a dashboard. This action is available in the dashboard
panel menu for the saved search.
Defaults to `true`.

|===

[float]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export interface Eval {

export interface RegressionEvaluateResponse {
regression: {
mean_squared_error: {
mse: {
value: number;
};
r_squared: {
Expand Down Expand Up @@ -311,7 +311,7 @@ export const isRegressionEvaluateResponse = (arg: any): arg is RegressionEvaluat
return (
keys.length === 1 &&
keys[0] === ANALYSIS_CONFIG_TYPE.REGRESSION &&
arg?.regression?.mean_squared_error !== undefined &&
arg?.regression?.mse !== undefined &&
arg?.regression?.r_squared !== undefined
);
};
Expand Down Expand Up @@ -410,7 +410,7 @@ export const useRefreshAnalyticsList = (
const DEFAULT_SIG_FIGS = 3;

export function getValuesFromResponse(response: RegressionEvaluateResponse) {
let meanSquaredError = response?.regression?.mean_squared_error?.value;
let meanSquaredError = response?.regression?.mse?.value;

if (meanSquaredError) {
meanSquaredError = Number(meanSquaredError.toPrecision(DEFAULT_SIG_FIGS));
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/fleet/agent_flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function (providerContext: FtrProviderContext) {
const supertestWithoutAuth = getSupertestWithoutAuth(providerContext);
const esClient = getService('es');

describe('fleet_agent_flow', () => {
describe.skip('fleet_agent_flow', () => {
before(async () => {
await esArchiver.load('empty_kibana');
});
Expand Down

0 comments on commit 15bbfee

Please sign in to comment.