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

[Backport 2.x] Nomenclature changes from Whitelist to Allowlist #535

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport c7379f8 from #534

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>

Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
(cherry picked from commit c7379f8)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team September 6, 2022 23:20
@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2022

Codecov Report

Merging #535 (7ac096b) into 2.x (379bf9c) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##                2.x     #535   +/-   ##
=========================================
  Coverage     84.04%   84.04%           
  Complexity     1019     1019           
=========================================
  Files           146      146           
  Lines          4188     4188           
  Branches        373      373           
=========================================
  Hits           3520     3520           
  Misses          492      492           
  Partials        176      176           
Impacted Files Coverage Δ
...g/opensearch/knn/plugin/script/KNNScoringUtil.java 98.61% <ø> (ø)
...earch/knn/plugin/script/KNNAllowlistExtension.java 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@naveentatikonda naveentatikonda merged commit f20aaf1 into 2.x Sep 6, 2022
@github-actions github-actions bot deleted the backport/backport-534-to-2.x branch September 6, 2022 23:38

private static final Whitelist ALLOW_LIST = WhitelistLoader.loadFromResourceFiles(KNNWhitelistExtension.class, "knn_whitelist.txt");
private static final Whitelist ALLOW_LIST = WhitelistLoader.loadFromResourceFiles(KNNAllowlistExtension.class, "knn_allowlist.txt");

@Override
public Map<ScriptContext<?>, List<Whitelist>> getContextWhitelists() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have a plan to change this line as well?

Copy link
Member

Choose a reason for hiding this comment

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

As mentioned in my actual PR. The nomenclature changes from whitelist to allowlist are not being supported by opensearch core in 2.x version and are only supported from version 3.0. We are using a couple of opensearch core whitelist packages. We will update these lines of code after we increment our version to 3.0

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

Successfully merging this pull request may close these issues.

4 participants