Skip to content

[Obs Presentation] Code Scanning Alert Fixes#250858

Merged
rmyz merged 9 commits intoelastic:mainfrom
rmyz:2493-obs-presentation-code-scanning-fixes
Jan 30, 2026
Merged

[Obs Presentation] Code Scanning Alert Fixes#250858
rmyz merged 9 commits intoelastic:mainfrom
rmyz:2493-obs-presentation-code-scanning-fixes

Conversation

@rmyz
Copy link
Copy Markdown
Contributor

@rmyz rmyz commented Jan 29, 2026

Summary

This PR fixes the code-scanning alerts by adding maxSize to our array params.

@rmyz rmyz self-assigned this Jan 29, 2026
@rmyz rmyz added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation v9.2.5 v9.3.1 labels Jan 29, 2026
@rmyz
Copy link
Copy Markdown
Contributor Author

rmyz commented Jan 29, 2026

/ci

serviceName: schema.maybe(schema.string()),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI max is 5 (2 preselected + 3 selectable), using 10 as buffer just in case

]),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI max is 4 (3 preselected + 1 selectable), using 10 as a buffer just in case

schema.literal(ML_ANOMALY_SEVERITY.WARNING),
]),
anomalyDetectorTypes: schema.maybe(schema.arrayOf(detectorsSchema, { minSize: 1 })),
anomalyDetectorTypes: schema.maybe(schema.arrayOf(detectorsSchema, { minSize: 1, maxSize: 3 })),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only 3 detector types exist in the schema

serviceName: schema.maybe(schema.string()),
environment: schema.string(),
groupBy: schema.maybe(schema.arrayOf(schema.string())),
groupBy: schema.maybe(schema.arrayOf(schema.string(), { maxSize: 10 })),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI max is 4 (3 preselected + 1 selectable), using 10 as a buffer just in case

@rmyz
Copy link
Copy Markdown
Contributor Author

rmyz commented Jan 29, 2026

/ci

@rmyz
Copy link
Copy Markdown
Contributor Author

rmyz commented Jan 29, 2026

/ci

timeTo: schema.number(),
functionName: schema.string(),
serviceNames: schema.arrayOf(schema.string()),
serviceNames: schema.arrayOf(schema.string(), { maxSize: 10 }),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The frontend is limited at 5 services per page, 10 as a buffer just in case

@rmyz rmyz marked this pull request as ready for review January 29, 2026 13:52
@rmyz rmyz requested a review from a team as a code owner January 29, 2026 13:52
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-presentation-team (Team:obs-presentation)

@rmyz
Copy link
Copy Markdown
Contributor Author

rmyz commented Jan 29, 2026

/ci

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner January 29, 2026 14:29
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jan 29, 2026

💔 Build Failed

Failed CI Steps

History

cc @rmyz

@rmyz rmyz requested review from crespocarlos and removed request for a team January 29, 2026 15:10
@rmyz rmyz merged commit 21943ce into elastic:main Jan 30, 2026
16 checks passed
@rmyz rmyz deleted the 2493-obs-presentation-code-scanning-fixes branch January 30, 2026 08:34
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.2, 9.3

https://github.com/elastic/kibana/actions/runs/21509562725

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jan 30, 2026
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 21943ce)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jan 30, 2026
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 21943ce)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.2
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 30, 2026
# Backport

This will backport the following commits from `main` to `9.3`:
- [[Obs Presentation] Code Scanning Alert Fixes
(#250858)](#250858)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Sergi
Romeu","email":"sergi.romeu@elastic.co"},"sourceCommit":{"committedDate":"2026-01-30T08:34:17Z","message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.4.0","Team:obs-presentation","v9.2.5","v9.3.1"],"title":"[Obs
Presentation] Code Scanning Alert
Fixes","number":250858,"url":"https://github.com/elastic/kibana/pull/250858","mergeCommit":{"message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.3"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250858","number":250858,"mergeCommit":{"message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265"}},{"branch":"9.2","label":"v9.2.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
kibanamachine added a commit that referenced this pull request Jan 30, 2026
# Backport

This will backport the following commits from `main` to `9.2`:
- [[Obs Presentation] Code Scanning Alert Fixes
(#250858)](#250858)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Sergi
Romeu","email":"sergi.romeu@elastic.co"},"sourceCommit":{"committedDate":"2026-01-30T08:34:17Z","message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.4.0","Team:obs-presentation","v9.2.5","v9.3.1"],"title":"[Obs
Presentation] Code Scanning Alert
Fixes","number":250858,"url":"https://github.com/elastic/kibana/pull/250858","mergeCommit":{"message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.3"],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/250858","number":250858,"mergeCommit":{"message":"[Obs
Presentation] Code Scanning Alert Fixes (#250858)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"21943ce862db47dcc7d600a7fec81d941d374265"}},{"branch":"9.2","label":"v9.2.5","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.3","label":"v9.3.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sergi Romeu <sergi.romeu@elastic.co>
mbondyra added a commit to mbondyra/kibana that referenced this pull request Jan 30, 2026
…iew_cps

* commit '5f7fec57cb01883038810bd735a0666683b49904': (116 commits)
  [Security Solution][Attacks/Alerts][Setup and miscellaneous] Advanced setting to control feature visibility (elastic#250157) (elastic#250830)
  Fix synthtrace `fetch` usage (elastic#250950)
  [APM] Add Nodes and Edges components and selection logic (elastic#250937)
  [Docs] Update alerting-settings.md and add serverless value for one parameter (elastic#250842)
  [Agent Builder] filestore: initial implementation (elastic#250043)
  [CPS] Support CPS in Vega ESQL (elastic#250693)
  Adjustments to cascade document esql helpers (elastic#250560)
  [Security Solutions] Trial Companion - adds ai chat and elastic agent detectors (elastic#250908)
  [Obs Presentation] Code Scanning Alert Fixes (elastic#250858)
  [performance] add return and refresh render scenarios to dashboard journeys (elastic#250939)
  skip failing test suite (elastic#245458)
  Add Cloud Forwarder onboarding tile to O11y Solution (elastic#250325)
  [Traces] Remove APM unified trace waterall embeddable registration (elastic#250808)
  [Discover] [Metrics] Fix: metrics grid titles do not update on order change (elastic#250963)
  [a11y] Fix Eui modal title annoucment (elastic#250459)
  [Cloud Security] [Fleet] Add cloud connector access scope for input or package level credential definitions (elastic#250280)
  [WorkplaceAI] SharePoint Online stack connector (elastic#248737)
  [Response Ops][Task Manager] Update functions do not handle API key invalidation (elastic#249109)
  [Osquery] Remove @kbn/timelines-plugin dependency from osquery plugin (elastic#250055)
  [One Discover][Logs UX] Update OpenTelemetry Semantic Conventions (elastic#250346)
  ...
hannahbrooks pushed a commit to hannahbrooks/kibana that referenced this pull request Jan 30, 2026
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation v9.2.5 v9.3.0 v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants