-
Notifications
You must be signed in to change notification settings - Fork 693
fix: make Tasklist and Operate updateSchemaSettings default to false #37132
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
Conversation
cf961dd
to
8867640
Compare
8867640
to
8de264b
Compare
8de264b
to
1499f10
Compare
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.
LGTM, minor suggestions only 🚀
tasklist/qa/integration-tests/src/test/java/io/camunda/tasklist/os/SchemaCreationIT.java
Show resolved
Hide resolved
tasklist/qa/integration-tests/src/test/java/io/camunda/tasklist/es/SchemaCreationIT.java
Show resolved
Hide resolved
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.
Thanks @houssain-barouni just smaller suggestions and questions, looks good 👍🏼
operate/common/src/main/java/io/camunda/operate/property/ElasticsearchProperties.java
Outdated
Show resolved
Hide resolved
operate/common/src/main/java/io/camunda/operate/property/OpensearchProperties.java
Outdated
Show resolved
Hide resolved
operate/qa/integration-tests/src/test/java/io/camunda/operate/schema/SchemaStartupIT.java
Show resolved
Hide resolved
tasklist/common/src/main/java/io/camunda/tasklist/property/ElasticsearchProperties.java
Outdated
Show resolved
Hide resolved
tasklist/qa/integration-tests/src/test/java/io/camunda/tasklist/es/SchemaCreationIT.java
Show resolved
Hide resolved
.../qa/integration-tests/src/test/java/io/camunda/tasklist/os/OpenSearchSchemaManagementIT.java
Show resolved
Hide resolved
@@ -135,4 +143,89 @@ public void shouldFailIfSchemaNotUpdateable() { | |||
.isInstanceOf(OperateRuntimeException.class) | |||
.hasMessageContaining("Not supported index changes are introduced"); | |||
} | |||
|
|||
@Test | |||
public void shouldUpdateIndexSettingsWhenUpdateSchemaSettingsIsEnabled() |
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.
🔧 What I actually would like to see is to have some default behavior tests, in all tests we explicitly set the value. When I now change the default value again, none of the tests would fail, which might be a problem.
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.
I made the test parameterized, to use the default value or not
Successfully created backport PR for |
Description
Slack discussion
The fix for #32872 is included in patch versions 8.6 and 8.7. Upgrading to these versions may introduce a breaking change by undeseriably updating schema settings for SM customers. To make the fix as an opt-in option, the default value for updateSchemaSettings will be set to false. For SaaS customers, the setting will be enabled (set to true).
Also added some integration tests, and did some clean-up on the existing ones
Checklist
Related issues
relates to #32872, #31238