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 index templates date validation 143412 #145318

Merged

Conversation

cuff-links
Copy link
Contributor

@cuff-links cuff-links commented Nov 16, 2022

Closes #94168

Summary

I took a look at the code and noticed that the only validation rule was not allowing spaces so I removed that code and tested it. The validation code wasn't performing any other validations so I removed that.

cuff-links and others added 30 commits September 8, 2022 15:27
…n accessibility issue that causes one test to fail and then the subsequent test fails. The issue has been logged. The rest of the tests have been unskipped.
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexManagement 523.0KB 522.8KB -253.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cuff-links cuff-links marked this pull request as ready for review November 16, 2022 09:18
@cuff-links cuff-links requested a review from a team as a code owner November 16, 2022 09:18
@cuff-links cuff-links added v8.5.2 v8.6.0 Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Nov 16, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@cuff-links cuff-links added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed labels Nov 16, 2022
@cuff-links cuff-links requested a review from yuliacech November 16, 2022 09:29
Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing this, @cuff-links!
Code changes LGTM, didn't test locally.

@cuff-links cuff-links merged commit 67af5c4 into elastic:main Nov 17, 2022
kibanamachine pushed a commit that referenced this pull request Nov 17, 2022
Closes #94168

## Summary

I took a look at the code and noticed that the only validation rule was
not allowing spaces so I removed that code and tested it. The validation
code wasn't performing any other validations so I removed that.

Co-authored-by: cuffs <[email protected]>
(cherry picked from commit 67af5c4)
kibanamachine pushed a commit that referenced this pull request Nov 17, 2022
Closes #94168

## Summary

I took a look at the code and noticed that the only validation rule was
not allowing spaces so I removed that code and tested it. The validation
code wasn't performing any other validations so I removed that.

Co-authored-by: cuffs <[email protected]>
(cherry picked from commit 67af5c4)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.6
8.5

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

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

kibanamachine added a commit that referenced this pull request Nov 17, 2022
# Backport

This will backport the following commits from `main` to `8.6`:
- [Fix index templates date validation 143412
(#145318)](#145318)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"John
Dorlus","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-17T17:15:44Z","message":"Fix
index templates date validation 143412 (#145318)\n\nCloses
https://github.com/elastic/kibana/issues/94168\r\n\r\n##
Summary\r\n\r\nI took a look at the code and noticed that the only
validation rule was\r\nnot allowing spaces so I removed that code and
tested it. The validation\r\ncode wasn't performing any other
validations so I removed that.\r\n\r\nCo-authored-by: cuffs
<[email protected]>","sha":"67af5c4c6b788a0e03aa6c483e5dcba052628fcc","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Deployment
Management","release_note:skip","auto-backport","v8.6.0","v8.5.2"],"number":145318,"url":"https://github.com/elastic/kibana/pull/145318","mergeCommit":{"message":"Fix
index templates date validation 143412 (#145318)\n\nCloses
https://github.com/elastic/kibana/issues/94168\r\n\r\n##
Summary\r\n\r\nI took a look at the code and noticed that the only
validation rule was\r\nnot allowing spaces so I removed that code and
tested it. The validation\r\ncode wasn't performing any other
validations so I removed that.\r\n\r\nCo-authored-by: cuffs
<[email protected]>","sha":"67af5c4c6b788a0e03aa6c483e5dcba052628fcc"}},"sourceBranch":"main","suggestedTargetBranches":["8.6","8.5"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: John Dorlus <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 17, 2022
# Backport

This will backport the following commits from `main` to `8.5`:
- [Fix index templates date validation 143412
(#145318)](#145318)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"John
Dorlus","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-17T17:15:44Z","message":"Fix
index templates date validation 143412 (#145318)\n\nCloses
https://github.com/elastic/kibana/issues/94168\r\n\r\n##
Summary\r\n\r\nI took a look at the code and noticed that the only
validation rule was\r\nnot allowing spaces so I removed that code and
tested it. The validation\r\ncode wasn't performing any other
validations so I removed that.\r\n\r\nCo-authored-by: cuffs
<[email protected]>","sha":"67af5c4c6b788a0e03aa6c483e5dcba052628fcc","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Deployment
Management","release_note:skip","auto-backport","v8.6.0","v8.5.2"],"number":145318,"url":"https://github.com/elastic/kibana/pull/145318","mergeCommit":{"message":"Fix
index templates date validation 143412 (#145318)\n\nCloses
https://github.com/elastic/kibana/issues/94168\r\n\r\n##
Summary\r\n\r\nI took a look at the code and noticed that the only
validation rule was\r\nnot allowing spaces so I removed that code and
tested it. The validation\r\ncode wasn't performing any other
validations so I removed that.\r\n\r\nCo-authored-by: cuffs
<[email protected]>","sha":"67af5c4c6b788a0e03aa6c483e5dcba052628fcc"}},"sourceBranch":"main","suggestedTargetBranches":["8.6","8.5"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.5","label":"v8.5.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: John Dorlus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.5.2 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index Management doesn't allow spaces in date formats
5 participants