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

Increase category field limit from 2 to 5 for time series splitting #982

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

siddharthabingi
Copy link

Description

[Describe what this change achieves]

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

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.

Signed-off-by: Siddhartha Bingi <sidbingi@amazon.com>
Siddhartha Bingi added 2 commits February 21, 2025 00:54
Signed-off-by: Siddhartha Bingi <sidbingi@amazon.com>
Signed-off-by: Siddhartha Bingi <sidbingi@amazon.com>
@@ -155,7 +156,7 @@ export function CategoryField(props: CategoryFieldProps) {
onChange={(options) => {
const selection = options.map((option) => option.label);
if (!isEmpty(selection)) {
if (selection.length <= 2) {
if (selection.length <= 5) {
Copy link
Member

Choose a reason for hiding this comment

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

would it be possible that we base this number on our plugin setting and we change the default to 5 there as max?
https://github.com/opensearch-project/anomaly-detection/blob/main/src/main/java/org/opensearch/ad/settings/ADNumericSetting.java#L40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants