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

Incorporated review comments changes for #1985,#2264. #2683

Conversation

rajeshLovesToCode
Copy link
Contributor

Description

Incorporated review comments changes for #1985,#2264.

Issues Resolved

#1985 ,#2264

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

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.

@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #2683 (f8f0e8a) into main (0f862c0) will decrease coverage by 0.27%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #2683      +/-   ##
============================================
- Coverage     93.61%   93.34%   -0.27%     
+ Complexity     2271     2266       -5     
============================================
  Files           264      264              
  Lines          6339     6339              
  Branches        528      528              
============================================
- Hits           5934     5917      -17     
- Misses          266      284      +18     
+ Partials        139      138       -1     

see 1 file with indirect coverage changes

@rajeshLovesToCode rajeshLovesToCode force-pushed the OpenSearchConfiguration2661 branch from 9d7eeaa to d6fc13e Compare May 16, 2023 15:12
@rajeshLovesToCode rajeshLovesToCode force-pushed the OpenSearchConfiguration2661 branch from ca8520b to 2fbbef9 Compare May 18, 2023 10:52
@rajeshLovesToCode rajeshLovesToCode force-pushed the OpenSearchConfiguration2661 branch from 2fbbef9 to 2eefca4 Compare May 18, 2023 11:24
public class OpenSearchSourceConfiguration {

@JsonProperty("max_retries")
private Integer maxRetries;
Copy link
Contributor

Choose a reason for hiding this comment

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

@rajeshLovesToCode we need to add validations for values in the configuration. Are you tracking to do that later? eg max_retries should not be set to negative number, hosts cannot be an empty string, password cannot be null if username is provided, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @dlvenable for your comments.We will the validations in next PR.

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

public class IndexParametersConfiguration {
Copy link
Contributor

Choose a reason for hiding this comment

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

@ashoktelukuntla, should we be supporting document info as part of our configuration? We need to provide the index, document id, type in our events. Were we planning on including this by default or requiring the user to enable these feature? If we want to include this we may want to add this to the metadata attributes so the data is not polluted with this information.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doc info will be added in the next PR

cmanning09
cmanning09 previously approved these changes May 22, 2023
graytaylor0
graytaylor0 previously approved these changes May 22, 2023
@graytaylor0 graytaylor0 dismissed stale reviews from cmanning09 and themself via f8f0e8a May 22, 2023 15:10
@dlvenable dlvenable merged commit 4dfe5cd into opensearch-project:main May 22, 2023
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.

6 participants