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

Changing from a plugin to a standalone CLI application #68

Merged
merged 42 commits into from
Jan 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3fb1add
Working on standalone implementation.
jzonthemtn Dec 17, 2024
17dcece
Working on standalone implementation.
jzonthemtn Dec 17, 2024
f1048fb
Working on standalone implementation.
jzonthemtn Dec 17, 2024
e937df1
Working on standalone implementation.
jzonthemtn Dec 17, 2024
871a9bf
Working on standalone implementation.
jzonthemtn Dec 17, 2024
bdcf6c5
Working on converting to a standalone app.
jzonthemtn Dec 30, 2024
504e3f9
Working on converting to a standalone app.
jzonthemtn Dec 30, 2024
75a7641
Working on converting to a standalone app.
jzonthemtn Dec 30, 2024
aa26e3b
Working on converting to a standalone app.
jzonthemtn Dec 30, 2024
6c4b241
Working on converting to a standalone app.
jzonthemtn Dec 31, 2024
9ee0b9b
Working on converting to a standalone app.
jzonthemtn Dec 31, 2024
83633bc
Working on converting to a standalone app.
jzonthemtn Dec 31, 2024
7a2d577
Working on converting to a standalone app.
jzonthemtn Dec 31, 2024
2899bcf
Working on converting to a standalone app.
jzonthemtn Jan 1, 2025
5b7888b
Working on converting to a standalone app.
jzonthemtn Jan 1, 2025
41aa00f
Working on converting to a standalone app.
jzonthemtn Jan 1, 2025
b5d34cf
Adding running of query set to CLI.
jzonthemtn Jan 1, 2025
a1ad39d
Wiring up CLI options.
jzonthemtn Jan 1, 2025
bd2ffb3
Replacing strings.
jzonthemtn Jan 1, 2025
eb8bb37
Moving the app into the root directory.
jzonthemtn Jan 2, 2025
b2ca178
Moving scripts.
jzonthemtn Jan 2, 2025
873449b
Updating github action.
jzonthemtn Jan 2, 2025
71678d3
Updating github action.
jzonthemtn Jan 2, 2025
d17d116
Updating github action.
jzonthemtn Jan 2, 2025
640b0ad
Updating paths.
jzonthemtn Jan 2, 2025
b0689d7
Wiring up more of the query set runner.
jzonthemtn Jan 16, 2025
66fa252
Changing to generic client for the user query running.
jzonthemtn Jan 17, 2025
b9ed325
Updating comment.
jzonthemtn Jan 17, 2025
3bc2065
Adding script to make a search pipeline.
jzonthemtn Jan 17, 2025
a05d3fb
Merge branch 'main' into standalone
jzonthemtn Jan 20, 2025
f76c5f9
Parameterizing the opensearch host.
jzonthemtn Jan 20, 2025
b58b3fe
Updating pipeline name.
jzonthemtn Jan 21, 2025
bfb6b7f
Fixing query size with >=.
jzonthemtn Jan 21, 2025
e154262
Adding userId to UbiEvent.
jzonthemtn Jan 21, 2025
5a2cb16
Persisting the query run results.
jzonthemtn Jan 21, 2025
fbb87c4
Removing unneeded class. Removing plugin implementation.
jzonthemtn Jan 21, 2025
b9396d4
Removing unneeded docker files.
jzonthemtn Jan 21, 2025
52c620c
Updates for hybrid query.
jzonthemtn Jan 21, 2025
95207f2
Changing to queryResponseHitIds.
jzonthemtn Jan 22, 2025
d4a3d17
Adding additionalProperties.
jzonthemtn Jan 22, 2025
975ca44
Changing to queryResponseHitIds.
jzonthemtn Jan 22, 2025
483bdfb
Renaming script.
jzonthemtn Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding additionalProperties.
jzonthemtn committed Jan 22, 2025
commit d4a3d1747673ce8df615aa497bb1a2ea6dfda70a
24 changes: 24 additions & 0 deletions src/main/java/org/opensearch/eval/model/ubi/event/EventObject.java
Original file line number Diff line number Diff line change
@@ -8,9 +8,13 @@
*/
package org.opensearch.eval.model.ubi.event;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

import java.util.HashMap;
import java.util.Map;

public class EventObject {

@JsonProperty("object_id_field")
@@ -21,6 +25,8 @@ public class EventObject {
@SerializedName("object_id")
private String objectId;

private final Map<String, Object> additionalProperties = new HashMap<>();

@Override
public String toString() {
return "[" + objectIdField + ", " + objectId + "]";
@@ -58,4 +64,22 @@ public void setObjectIdField(String objectIdField) {
this.objectIdField = objectIdField;
}

/**
* Adds an unrecognized property to the additional properties map.
* @param key The property name.
* @param value The property value.
*/
@JsonAnySetter
public void addAdditionalProperty(String key, Object value) {
this.additionalProperties.put(key, value);
}

/**
* Gets the additional properties.
* @return The additional properties map.
*/
public Map<String, Object> getAdditionalProperties() {
return additionalProperties;
}

}