Skip to content
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

Fix Code Scanning Alert #1292 #202125

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Fix Code Scanning Alert #1292 #202125

merged 1 commit into from
Nov 29, 2024

Conversation

afharo
Copy link
Member

@afharo afharo commented Nov 28, 2024

Summary

Resolves #1292

Checklist

@afharo afharo added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Nov 28, 2024
@afharo afharo self-assigned this Nov 28, 2024
@afharo afharo requested a review from a team as a code owner November 28, 2024 10:12
@@ -117,10 +117,12 @@ describe('assignToPaths', () => {
assignToPaths(paths, '/foo', {});
assignToPaths(paths, '/bar/{id?}', {});
Copy link
Member Author

Choose a reason for hiding this comment

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

I actually wonder if this type of path should translate into 2: /bar and /bar/{id}. But that's unrelated to this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

++ it should, thanks for adding that check

@afharo afharo requested a review from jloleysens November 28, 2024 10:13
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @afharo

@@ -117,10 +117,12 @@ describe('assignToPaths', () => {
assignToPaths(paths, '/foo', {});
assignToPaths(paths, '/bar/{id?}', {});
Copy link
Contributor

Choose a reason for hiding this comment

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

++ it should, thanks for adding that check

@afharo afharo merged commit 841d052 into elastic:main Nov 29, 2024
14 checks passed
@afharo afharo deleted the code-scanning-1292 branch November 29, 2024 12:35
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 29, 2024
## Summary

Resolves [elastic#1292](elastic/kibana-team#1292)

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 841d052)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Nov 29, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [Fix Code Scanning Alert #1292
(#202125)](#202125)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-29T12:35:49Z","message":"Fix
Code Scanning Alert #1292 (#202125)\n\n## Summary\n\nResolves
[#1292](https://github.com/elastic/kibana-team/issues/1292)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"841d052776e5e9e703ce69f0161bc21e49446792","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"Fix
Code Scanning Alert
#1292","number":202125,"url":"https://github.com/elastic/kibana/pull/202125","mergeCommit":{"message":"Fix
Code Scanning Alert #1292 (#202125)\n\n## Summary\n\nResolves
[#1292](https://github.com/elastic/kibana-team/issues/1292)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"841d052776e5e9e703ce69f0161bc21e49446792"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202125","number":202125,"mergeCommit":{"message":"Fix
Code Scanning Alert #1292 (#202125)\n\n## Summary\n\nResolves
[#1292](https://github.com/elastic/kibana-team/issues/1292)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"841d052776e5e9e703ce69f0161bc21e49446792"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
## Summary

Resolves [elastic#1292](elastic/kibana-team#1292)


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants