-
Notifications
You must be signed in to change notification settings - Fork 217
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
Update geoip config and use extensions #3975
Merged
asifsmohammed
merged 4 commits into
opensearch-project:main
from
asifsmohammed:update-geoip-config
Jan 22, 2024
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fd41a47
resolve conflicts with be8469d73b1bf76a2de535812bf572dec576bbfc
asifsmohammed 0fb424f
Addressed feedback and updated supplier interface
asifsmohammed 64859f0
Fixed license typo
asifsmohammed e3e9fe6
Update geoip config and use extensions
asifsmohammed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
...ava/org/opensearch/dataprepper/plugins/processor/configuration/DatabasePathURLConfig.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...src/main/java/org/opensearch/dataprepper/plugins/processor/configuration/EntryConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* PDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.dataprepper.plugins.processor.configuration; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
import java.util.List; | ||
|
||
public class EntryConfig { | ||
@JsonProperty("source") | ||
@NotEmpty | ||
private String source; | ||
|
||
@JsonProperty("target") | ||
private String target; | ||
|
||
@JsonProperty("fields") | ||
private List<String> fields; | ||
|
||
public String getSource() { | ||
return source; | ||
} | ||
|
||
public String getTarget() { | ||
return target; | ||
} | ||
|
||
public List<String> getFields() { | ||
return fields; | ||
} | ||
} |
46 changes: 0 additions & 46 deletions
46
...r/src/main/java/org/opensearch/dataprepper/plugins/processor/configuration/KeyConfig.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is going to be provided by the extension in the end, right?
It would be good to move this into the
.extension
package. That could happen in a follow-on PR.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's provided by extension supplier. I will move it to right package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QUES: do we know if this will potentially be used in other pipeline plugins? Need to catch up on justification why we put it in extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it will be used by other plugins. But the extension will allow Data Prepper to run a single GeoIP "service" which any number of processors can share.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By "number of processors" are we expecting future processor plugin to depend upon this? It would be good to have examples but not blocking this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean any number of
geoip
processors.All of these will share the same underlying objects and resources from Maxmind.