Skip to content

Allow override of OpenSearch user/password in run_plan().#1256

Merged
alexaryn merged 4 commits into
mainfrom
alex_syc_uconn
Apr 17, 2025
Merged

Allow override of OpenSearch user/password in run_plan().#1256
alexaryn merged 4 commits into
mainfrom
alex_syc_uconn

Conversation

@alexaryn
Copy link
Copy Markdown
Collaborator

No description provided.

@alexaryn alexaryn marked this pull request as ready for review April 17, 2025 04:46
def test_modified_context():
params = {"paramKeyA": {"llm": 1}, "paramKeyB": {"llm": ["llm1", "llm2"]}, "default": {"llm": "openai"}}
c0 = Context(params=params)
c1 = modified_context(c0, "default", llm="dromedary")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you add a test to update a non-default context as well since access paths are different

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Coming right up!

"""Run the given logical query plan and return a tuple of the query ID and result."""
assert self.context is not None, "Running a plan requires a configured Context"
if os_client_args:
my_ctx = modified_context(self.context, "default", os_client_args=os_client_args)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fine for now, I wonder if we'll need to scope this to the "opensearch" namespace

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It seemed a bit murky as to how a piece of code like this could know what downstream namespace was relevant, or even how namespaces would be used.

@alexaryn alexaryn merged commit 713846c into main Apr 17, 2025
11 of 15 checks passed
@alexaryn alexaryn deleted the alex_syc_uconn branch April 17, 2025 18:52
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.

2 participants