[Scout reporter] Set area and owner fields to unknown if no mapping is found#249837
Merged
csr merged 7 commits intoelastic:mainfrom Jan 21, 2026
Merged
Conversation
csr
commented
Jan 21, 2026
| return owners | ||
| .map((owner) => findAreaForCodeOwner(owner)) | ||
| .filter((area) => area !== undefined) as CodeOwnerArea[]; | ||
| .filter((area): area is CodeOwnerArea => area !== undefined); |
Contributor
Author
There was a problem hiding this comment.
I find using a type predicate instead of the type assertion here safer and more maintainable: TypeScript can verify the filtering logic, whereas type assertions bypass type checking entirely.
csr
commented
Jan 21, 2026
| path: filePath, | ||
| owner: fileOwners, | ||
| area: this.getOwnerAreas(fileOwners), | ||
| area: areas.length > 0 ? areas : 'unknown', |
Contributor
Author
There was a problem hiding this comment.
I have tested this locally by prefixing the run command with SCOUT_REPORTER_ENABLED=true (to collect test events) and ensuring the .scout/reports event files look as expected.
dolaru
approved these changes
Jan 21, 2026
test.file.area and test_run.config.file.area to unknown if no mapping is found
Contributor
💔 Build Failed
Failed CI StepsHistorycc @csr |
jbudz
approved these changes
Jan 21, 2026
Contributor
|
Starting backport for target branches: 8.19, 9.1, 9.2, 9.3 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping). (cherry picked from commit 8f52211)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping). (cherry picked from commit 8f52211)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping). (cherry picked from commit 8f52211)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping). (cherry picked from commit 8f52211)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Merged
10 tasks
kibanamachine
added a commit
that referenced
this pull request
Jan 21, 2026
…apping is found (#249837) (#249920) # Backport This will backport the following commits from `main` to `9.1`: - [[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)](#249837) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Cesare de Cal","email":"cesare.decal@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T16:46:44Z","message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.4.0"],"title":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found","number":249837,"url":"https://github.com/elastic/kibana/pull/249837","mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249837","number":249837,"mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}}]}] BACKPORT--> Co-authored-by: Cesare de Cal <cesare.decal@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 21, 2026
…apping is found (#249837) (#249922) # Backport This will backport the following commits from `main` to `9.3`: - [[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)](#249837) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Cesare de Cal","email":"cesare.decal@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T16:46:44Z","message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.4.0"],"title":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found","number":249837,"url":"https://github.com/elastic/kibana/pull/249837","mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249837","number":249837,"mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}}]}] BACKPORT--> Co-authored-by: Cesare de Cal <cesare.decal@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 21, 2026
…apping is found (#249837) (#249921) # Backport This will backport the following commits from `main` to `9.2`: - [[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)](#249837) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Cesare de Cal","email":"cesare.decal@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T16:46:44Z","message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.4.0"],"title":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found","number":249837,"url":"https://github.com/elastic/kibana/pull/249837","mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249837","number":249837,"mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}}]}] BACKPORT--> Co-authored-by: Cesare de Cal <cesare.decal@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 21, 2026
…mapping is found (#249837) (#249919) # Backport This will backport the following commits from `main` to `8.19`: - [[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)](#249837) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Cesare de Cal","email":"cesare.decal@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T16:46:44Z","message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","test:scout","v9.4.0"],"title":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found","number":249837,"url":"https://github.com/elastic/kibana/pull/249837","mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249837","number":249837,"mergeCommit":{"message":"[Scout reporter] Set area and owner fields to `unknown` if no mapping is found (#249837)\n\nThis PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to\nuse the default `unknown` value for area fields (e.g. `test.file.area`,\n`test_run.config.file.area`) if no area is available for a given team.\nThe same logic applies to the `test.file.owner` field.\n\n\n### Area mapping\nFind the mapping object in the `@kbn/code-owners` package:\n\n\nhttps://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92\n\nWe have some transforms in our AppEx QA cluster relying on this mapping.\nIf the area value is undefined, no field isn't populated at all and no\ndocument is created for a given team. The transforms relies on the field\nto exist, otherwise no document is created. Setting a default `unknown`\nfield value ensures a document is created in all cases (even before we\nupdate the official area <> codeowner mapping).","sha":"8f52211d49e79a4eac81592da5a74808fcd54785"}}]}] BACKPORT--> Co-authored-by: Cesare de Cal <cesare.decal@elastic.co>
qn895
pushed a commit
to qn895/kibana
that referenced
this pull request
Jan 22, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping).
dennis-tismenko
pushed a commit
to dennis-tismenko/kibana
that referenced
this pull request
Jan 22, 2026
… is found (elastic#249837) This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default `unknown` value for area fields (e.g. `test.file.area`, `test_run.config.file.area`) if no area is available for a given team. The same logic applies to the `test.file.owner` field. ### Area mapping Find the mapping object in the `@kbn/code-owners` package: https://github.com/elastic/kibana/blob/48d93fc2eb5702feab0c3f8696a377b8ec2455c2/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts#L25-L92 We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field isn't populated at all and no document is created for a given team. The transforms relies on the field to exist, otherwise no document is created. Setting a default `unknown` field value ensures a document is created in all cases (even before we update the official area <> codeowner mapping).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates our Scout reporters (FTR, Playwright, Jest, Cypress) to use the default
unknownvalue for area fields (e.g.test.file.area,test_run.config.file.area) if no area is available for a given team. The same logic applies to thetest.file.ownerfield.Area mapping
Find the mapping object in the
@kbn/code-ownerspackage:kibana/src/platform/packages/private/kbn-code-owners/src/code_owner_areas.ts
Lines 25 to 92 in 48d93fc
We have some transforms in our AppEx QA cluster relying on this mapping. If the area value is undefined, no field is populated and no pivot document is created for a given team. Setting a default
unknownfield value ensures a document is created in all cases (even before we update the official area <> codeowner mapping).