Skip to content

[rule based autotagging] Add Create Rule API Logic #17792

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

Merged
merged 20 commits into from
Jun 5, 2025

adding plugin-specific routing layer

778645c
Select commit
Loading
Failed to load commit list.
Merged

[rule based autotagging] Add Create Rule API Logic #17792

adding plugin-specific routing layer
778645c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Jun 4, 2025 in 1s

52.96% of diff hit (target 72.74%)

View this Pull Request on Codecov

52.96% of diff hit (target 72.74%)

Annotations

Check warning on line 58 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/CreateRuleRequest.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/CreateRuleRequest.java#L53-L58

Added lines #L53 - L58 were not covered by tests

Check warning on line 30 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/RuleUtils.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/RuleUtils.java#L30

Added line #L30 was not covered by tests

Check warning on line 56 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/autotagging/FeatureType.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/autotagging/FeatureType.java#L56

Added line #L56 was not covered by tests

Check warning on line 102 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java#L101-L102

Added lines #L101 - L102 were not covered by tests

Check warning on line 123 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java#L123

Added line #L123 was not covered by tests

Check warning on line 149 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java#L147-L149

Added lines #L147 - L149 were not covered by tests

Check warning on line 235 in modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/common/src/main/java/org/opensearch/rule/service/IndexStoredRulePersistenceService.java#L235

Added line #L235 was not covered by tests

Check warning on line 100 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java#L100

Added line #L100 was not covered by tests

Check warning on line 108 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java#L105-L108

Added lines #L105 - L108 were not covered by tests

Check warning on line 120 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleFrameworkPlugin.java#L117-L120

Added lines #L117 - L120 were not covered by tests

Check warning on line 34 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java#L34

Added line #L34 was not covered by tests

Check warning on line 36 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java#L36

Added line #L36 was not covered by tests

Check warning on line 44 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java#L44

Added line #L44 was not covered by tests

Check warning on line 46 in modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/RuleRoutingServiceRegistry.java#L46

Added line #L46 was not covered by tests

Check warning on line 68 in modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java#L68

Added line #L68 was not covered by tests

Check warning on line 75 in modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java#L70-L75

Added lines #L70 - L75 were not covered by tests

Check warning on line 83 in modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java#L77-L83

Added lines #L77 - L83 were not covered by tests

Check warning on line 101 in modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java#L99-L101

Added lines #L99 - L101 were not covered by tests

Check warning on line 105 in modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/action/TransportCreateRuleAction.java#L103-L105

Added lines #L103 - L105 were not covered by tests

Check warning on line 60 in modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java#L57-L60

Added lines #L57 - L60 were not covered by tests

Check warning on line 62 in modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java#L62

Added line #L62 was not covered by tests

Check warning on line 67 in modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java#L67

Added line #L67 was not covered by tests

Check warning on line 70 in modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

modules/autotagging-commons/src/main/java/org/opensearch/rule/rest/RestCreateRuleAction.java#L70

Added line #L70 was not covered by tests

Check warning on line 133 in plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java#L132-L133

Added lines #L132 - L133 were not covered by tests

Check warning on line 191 in plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

plugins/workload-management/src/main/java/org/opensearch/plugin/wlm/WorkloadManagementPlugin.java#L191

Added line #L191 was not covered by tests