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

Put plugin API behind a feature flag #142

Merged
merged 2 commits into from
Nov 3, 2023
Merged

Put plugin API behind a feature flag #142

merged 2 commits into from
Nov 3, 2023

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Nov 2, 2023

Description

Requires an OpenSearch cluster setting to be enabled to use REST API.

Follows similar model as AD and ML Commons.

Issues Resolved

Fixes #141

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Nov 2, 2023
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #142 (e2fb118) into main (c547658) will increase coverage by 0.48%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #142      +/-   ##
============================================
+ Coverage     67.09%   67.58%   +0.48%     
- Complexity      311      318       +7     
============================================
  Files            37       38       +1     
  Lines          1468     1490      +22     
  Branches        139      140       +1     
============================================
+ Hits            985     1007      +22     
  Misses          434      434              
  Partials         49       49              
Files Coverage Δ
.../opensearch/flowframework/FlowFrameworkPlugin.java 100.00% <100.00%> (ø)
...ork/common/FlowFrameworkFeatureEnabledSetting.java 100.00% <100.00%> (ø)
...h/flowframework/rest/RestCreateWorkflowAction.java 56.25% <100.00%> (+12.25%) ⬆️
...lowframework/rest/RestProvisionWorkflowAction.java 56.66% <100.00%> (+8.66%) ⬆️

@joshpalis joshpalis merged commit aad17d0 into opensearch-project:main Nov 3, 2023
21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 3, 2023
* Put plugin API behind a feature flag

Signed-off-by: Daniel Widdis <[email protected]>

* Add test for feature flag disabled

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit aad17d0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshpalis pushed a commit that referenced this pull request Nov 3, 2023
Put plugin API behind a feature flag (#142)

* Put plugin API behind a feature flag



* Add test for feature flag disabled



---------


(cherry picked from commit aad17d0)

Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis dbwiddis deleted the feature-flag branch November 3, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Place all APIs behind a feature flag
3 participants