-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Functional test for create a logdb index #204788
Conversation
Pinging @elastic/kibana-management (Team:Kibana Management) |
aa3a783
to
a922204
Compare
bfbca57
to
4827629
Compare
4827629
to
7b1ec6d
Compare
@@ -132,6 +132,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { | |||
await es.indices.deleteIndexTemplate({ | |||
name: `logsdb_index_template`, | |||
}); | |||
await browser.refresh(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to avoid the browser refreshes? I'm sure they're rather slow. Is there a refresh button? Or is it possible to navigate away and back?
await testSubjects.click('nextButton'); | ||
await testSubjects.click('nextButton'); | ||
|
||
await verifyModeHasBeenChanged('LogsDB'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using strings for the index type, it would be nice to define the strings in one place, perhaps using an enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of rather minor suggestions but I'll leave it up to you whether they're implemented. Nice work, thanks!
Would it make sense to manually trigger it? |
cb02fc8
to
0f667f0
Compare
Since is a different flow, I won't do it here. I'll add it to the main issue to find out what Salvatore and Elena think about it |
3198499
to
4406e42
Compare
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12549945082 |
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @SoniaSanzV |
Part of elastic#203716 ## Summary * Functional test for verifying that users can create indices using the “logsdb” index mode via the Kibana interface (Stateful and serverless). * Functional test for verifying that users can upgrade a logs data stream that is using a “standard” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “standard” index mode. (Stateful and serverless). * Functional test for verifying that users can upgrade a data stream that is using a “time series” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “time series” index mode. (Stateful and serverless). The rollover operation has not been tested since is not expected to happen automatically. See [this comment](elastic#203716 (comment)). (cherry picked from commit 34341e5)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [Functional test for create a logdb index (#204788)](#204788) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-30T17:39:49Z","message":"Functional test for create a logdb index (#204788)\n\nPart of https://github.com/elastic/kibana/issues/203716\n## Summary\n\n* Functional test for verifying that users can create indices using the\n“logsdb” index mode via the Kibana interface (Stateful and serverless).\n* Functional test for verifying that users can upgrade a logs data\nstream that is using a “standard” index mode to a data stream using\n“logsdb” index mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “standard”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can upgrade a data stream\nthat is using a “time series” index mode to a data stream using “logsdb”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “time series”\nindex mode. (Stateful and serverless).\n\nThe rollover operation has not been tested since is not expected to\nhappen automatically. See [this\ncomment](https://github.com/elastic/kibana/issues/203716#issuecomment-2554491054).","sha":"34341e58649dec80c58a31346c301e8c96d97d37","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index Management","Team:Kibana Management","release_note:skip","v9.0.0","backport:prev-minor"],"title":"Functional test for create a logdb index","number":204788,"url":"https://github.com/elastic/kibana/pull/204788","mergeCommit":{"message":"Functional test for create a logdb index (#204788)\n\nPart of https://github.com/elastic/kibana/issues/203716\n## Summary\n\n* Functional test for verifying that users can create indices using the\n“logsdb” index mode via the Kibana interface (Stateful and serverless).\n* Functional test for verifying that users can upgrade a logs data\nstream that is using a “standard” index mode to a data stream using\n“logsdb” index mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “standard”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can upgrade a data stream\nthat is using a “time series” index mode to a data stream using “logsdb”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “time series”\nindex mode. (Stateful and serverless).\n\nThe rollover operation has not been tested since is not expected to\nhappen automatically. See [this\ncomment](https://github.com/elastic/kibana/issues/203716#issuecomment-2554491054).","sha":"34341e58649dec80c58a31346c301e8c96d97d37"}},"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/204788","number":204788,"mergeCommit":{"message":"Functional test for create a logdb index (#204788)\n\nPart of https://github.com/elastic/kibana/issues/203716\n## Summary\n\n* Functional test for verifying that users can create indices using the\n“logsdb” index mode via the Kibana interface (Stateful and serverless).\n* Functional test for verifying that users can upgrade a logs data\nstream that is using a “standard” index mode to a data stream using\n“logsdb” index mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “standard”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can upgrade a data stream\nthat is using a “time series” index mode to a data stream using “logsdb”\nindex mode. (Stateful and serverless).\n* Functional test for verifying that users can downgrade a data stream\nthat is using a “logsdb” index mode to a data stream using “time series”\nindex mode. (Stateful and serverless).\n\nThe rollover operation has not been tested since is not expected to\nhappen automatically. See [this\ncomment](https://github.com/elastic/kibana/issues/203716#issuecomment-2554491054).","sha":"34341e58649dec80c58a31346c301e8c96d97d37"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <[email protected]>
Part of elastic#203716 ## Summary * Functional test for verifying that users can create indices using the “logsdb” index mode via the Kibana interface (Stateful and serverless). * Functional test for verifying that users can upgrade a logs data stream that is using a “standard” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “standard” index mode. (Stateful and serverless). * Functional test for verifying that users can upgrade a data stream that is using a “time series” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “time series” index mode. (Stateful and serverless). The rollover operation has not been tested since is not expected to happen automatically. See [this comment](elastic#203716 (comment)).
Part of elastic#203716 ## Summary * Functional test for verifying that users can create indices using the “logsdb” index mode via the Kibana interface (Stateful and serverless). * Functional test for verifying that users can upgrade a logs data stream that is using a “standard” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “standard” index mode. (Stateful and serverless). * Functional test for verifying that users can upgrade a data stream that is using a “time series” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “time series” index mode. (Stateful and serverless). The rollover operation has not been tested since is not expected to happen automatically. See [this comment](elastic#203716 (comment)).
Part of elastic#203716 ## Summary * Functional test for verifying that users can create indices using the “logsdb” index mode via the Kibana interface (Stateful and serverless). * Functional test for verifying that users can upgrade a logs data stream that is using a “standard” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “standard” index mode. (Stateful and serverless). * Functional test for verifying that users can upgrade a data stream that is using a “time series” index mode to a data stream using “logsdb” index mode. (Stateful and serverless). * Functional test for verifying that users can downgrade a data stream that is using a “logsdb” index mode to a data stream using “time series” index mode. (Stateful and serverless). The rollover operation has not been tested since is not expected to happen automatically. See [this comment](elastic#203716 (comment)).
Part of #203716
Summary
The rollover operation has not been tested since is not expected to happen automatically. See this comment.