Skip to content

Commit

Permalink
Fix paths manually
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila authored and shahzad31 committed Dec 10, 2024
1 parent 25de879 commit 8dbfd41
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/kbn-babel-preset/styled_components_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
USES_STYLED_COMPONENTS: [
/packages[\/\\]kbn-ui-shared-deps-(npm|src)[\/\\]/,
/src[\/\\]plugins[\/\\](kibana_react)[\/\\]/,
/x-pack[\/\\]solutions[\/\\]observability[\/\\]plugins[\/\\]/,
/x-pack[\/\\]plugins[\/\\](observability_solution\/apm|beats_management|fleet|observability_solution\/infra|lists|observability_solution\/observability|observability_solution\/observability_shared|observability_solution\/exploratory_view|security_solution|timelines|observability_solution\/synthetics|observability_solution\/ux|observability_solution\/uptime)[\/\\]/,
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ const NODE_TLS_REJECT_UNAUTHORIZED = '1';
export const esArchiverLoad = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../scripts/es_archiver load "${path}" --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver load "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverUnload = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../scripts/es_archiver unload "${path}" --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver unload "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverResetKibana = () => {
execSync(
`node ../../../../../scripts/es_archiver empty-kibana-index --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver empty-kibana-index --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ if (core.uiSettings.get(myFeatureEnabled)) {
}
```

In order for telemetry to be collected, the keys and types need to be added in [src/plugins/kibana_usage_collection/server/collectors/management/schema.ts](../../../../../src/plugins/kibana_usage_collection/server/collectors/management/schema.ts) and [src/plugins/kibana_usage_collection/server/collectors/management/types.ts](../../../../src/plugins/kibana_usage_collection/server/collectors/management/types.ts).
In order for telemetry to be collected, the keys and types need to be added in [src/plugins/kibana_usage_collection/server/collectors/management/schema.ts](../../../../../../src/plugins/kibana_usage_collection/server/collectors/management/schema.ts) and [src/plugins/kibana_usage_collection/server/collectors/management/types.ts](../../../../../../src/plugins/kibana_usage_collection/server/collectors/management/types.ts).

Settings can be managed in Kibana under Stack Management > Advanced Settings > Observability.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ const NODE_TLS_REJECT_UNAUTHORIZED = '1';
export const esArchiverLoad = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../scripts/es_archiver load "${path}" --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver load "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverUnload = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../scripts/es_archiver unload "${path}" --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver unload "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverResetKibana = () => {
execSync(
`node ../../../../../scripts/es_archiver empty-kibana-index --config ../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver empty-kibana-index --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ const NODE_TLS_REJECT_UNAUTHORIZED = '1';
export const esArchiverLoad = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../../scripts/es_archiver load "${path}" --config ../../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver load "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverUnload = (folder: string) => {
const path = Path.join(ES_ARCHIVE_DIR, folder);
execSync(
`node ../../../../../../scripts/es_archiver unload "${path}" --config ../../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver unload "${path}" --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

export const esArchiverResetKibana = () => {
execSync(
`node ../../../../../../scripts/es_archiver empty-kibana-index --config ../../../../test/functional/config.base.js`,
`node ../../../../../../../scripts/es_archiver empty-kibana-index --config ../../../../../../test/functional/config.base.js`,
{ env: { ...process.env, NODE_TLS_REJECT_UNAUTHORIZED }, stdio: 'inherit' }
);
};

0 comments on commit 8dbfd41

Please sign in to comment.