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

Add target_index_settings to rollup specification #822

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MrChaos1993
Copy link

Description

Allow to create index with specified settings during rollup

Issues Resolved

opensearch-project/index-management#1376

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock
Copy link
Member

dblock commented Feb 20, 2025

@MrChaos1993 amend your commit with -s to pass DCO

Exercise an API in a test that returns this data, see https://github.com/opensearch-project/opensearch-api-specification/blob/main/TESTING_GUIDE.md

Copy link
Contributor

github-actions bot commented Feb 25, 2025

Changes Analysis

Commit SHA: 9fa1c39
Comparing To SHA: fcbfc10

API Changes

Summary

└─┬Components
  └─┬rollups._common___Rollup
    └──[➕] properties (61280:9)

Document Element Total Changes Breaking Changes
components 1 0
  • Total Changes: 1
  • Additions: 1

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/13589491531/artifacts/2672475557

API Coverage

Before After Δ
Covered (%) 663 (64.94 %) 663 (64.94 %) 0 (0 %)
Uncovered (%) 358 (35.06 %) 358 (35.06 %) 0 (0 %)
Unknown 45 45 0

@nhtruong
Copy link
Collaborator

Test suites that involve the new test failed with Expected status 201, but received 400: application/json. Invalid field [target_index_settings] found in Rollup.

Don't forget to add a line in the CHANGELOG.md describing the change from this PR.

@MrChaos1993 MrChaos1993 force-pushed the feat/rollup-index-settings branch from 2ef7740 to 9def519 Compare February 26, 2025 07:41
Signed-off-by: Aleksandr Tuliakov <tulyakov@yandex-team.ru>
Signed-off-by: Aleksandr Tuliakov <tulyakov@yandex-team.ru>
Signed-off-by: Aleksandr Tuliakov <tulyakov@yandex-team.ru>
Signed-off-by: Aleksandr Tuliakov <tulyakov@yandex-team.ru>
Signed-off-by: Aleksandr Tuliakov <tulyakov@yandex-team.ru>
@MrChaos1993 MrChaos1993 force-pushed the feat/rollup-index-settings branch from 9def519 to 9fa1c39 Compare February 28, 2025 13:49
@MrChaos1993
Copy link
Author

Hi @nhtruong!
Could you please review this again?

@nhtruong
Copy link
Collaborator

nhtruong commented Mar 3, 2025

We still get this error Invalid field [target_index_settings] found in Rollup. in the test suite against OS 3.0.0
Was target_index_settings added to 3.0.0? Or was it added to a later/unreleased version?

@MrChaos1993
Copy link
Author

It was merged to main branch (Link to PR) and require version 3.0.0 or above.
I am not sure is it released or not, could you please help me?

@nhtruong
Copy link
Collaborator

nhtruong commented Mar 3, 2025

@MrChaos1993 That looks like it belongs to an unreleased version of the index-management plugin.

@dblock correct me if I'm wrong but we only have the capability to test against unreleased OpenSearch right now. And It's too complicated to setup a cluster with unreleased plugins. So, in that case, we should this PR on hold for now?

@dblock
Copy link
Member

dblock commented Mar 4, 2025

@dblock correct me if I'm wrong but we only have the capability to test against unreleased OpenSearch right now. And It's too complicated to setup a cluster with unreleased plugins. So, in that case, we should this PR on hold for now?

You could use an unreleased version of the plugin too by installing the specific build in the container, but unsure it's worth it.

@nhtruong nhtruong added the blocked (release pending) Pending on the release of an OS or plugin version label Mar 4, 2025
@nhtruong
Copy link
Collaborator

nhtruong commented Mar 4, 2025

@dblock correct me if I'm wrong but we only have the capability to test against unreleased OpenSearch right now. And It's too complicated to setup a cluster with unreleased plugins. So, in that case, we should this PR on hold for now?

You could use an unreleased version of the plugin too by installing the specific build in the container, but unsure it's worth it.

I don't think it's worth it to set it up per PR like this, just to remove it once the new version of the plugin is released. Let's wait, @MrChaos1993. Sorry we don't have a more elegant solution for this right now. I've created a new label for this type of PRs.

@MrChaos1993
Copy link
Author

@dblock correct me if I'm wrong but we only have the capability to test against unreleased OpenSearch right now. And It's too complicated to setup a cluster with unreleased plugins. So, in that case, we should this PR on hold for now?

You could use an unreleased version of the plugin too by installing the specific build in the container, but unsure it's worth it.

I don't think it's worth it to set it up per PR like this, just to remove it once the new version of the plugin is released. Let's wait, @MrChaos1993. Sorry we don't have a more elegant solution for this right now. I've created a new label for this type of PRs.

Sure, no problem!
I just wondering about missing specification for the new field, so If it's better to wait until release a newer version of plugin I totally agree.
Only one question should I tag someone when a newer version of the plugin will be released, or you will merge\restart check on your own?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked (release pending) Pending on the release of an OS or plugin version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants