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

Allow specifying an ID when submitting an image query #271

Merged
merged 22 commits into from
Nov 13, 2024
Merged

Conversation

CoreyEWood
Copy link
Contributor

@CoreyEWood CoreyEWood commented Oct 30, 2024

Adds optional parameter image_query_id to methods which allow submitting an image query. Adds tests for new parameter. Updates generated code based on new spec.

(won't be merged until the backend changes are in production)

@CoreyEWood CoreyEWood changed the title specify iq id Allow specifying an ID when submitting an image query Oct 31, 2024
@@ -54,6 +54,9 @@ test-local: install ## Run tests against a localhost API (needs GROUNDLIGHT_API
test-integ: install ## Run tests against the integ API server (needs GROUNDLIGHT_API_TOKEN)
GROUNDLIGHT_ENDPOINT="https://api.integ.groundlight.ai/" ${PYTEST} ${TEST_ARGS} ${CLOUD_FILTERS} test

test-dev: install ## Run tests against a dev API server (needs GROUNDLIGHT_API_TOKEN and properly configured dns-hostmap)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this because it seems like it might be useful for the future, but let me know if we don't want this in here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm indifferent on this one. Only thought I have is that given the above two commands you could instead make these commands set a variable and then call make test using that variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, I made some changes accordingly - let me know if those are what you were envisioning.

@CoreyEWood CoreyEWood marked this pull request as ready for review November 11, 2024 17:46
Copy link
Collaborator

@brandon-groundlight brandon-groundlight left a comment

Choose a reason for hiding this comment

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

Looks pretty good

Unless we want non-edge users to be specifying ids, I think we should exclude it as a parameter everywhere except for submit_image_query. The other functions are simply convenience wrappers for submit_image_query and having image query id as a parameter is a hit to their ease of use

@@ -54,6 +54,9 @@ test-local: install ## Run tests against a localhost API (needs GROUNDLIGHT_API
test-integ: install ## Run tests against the integ API server (needs GROUNDLIGHT_API_TOKEN)
GROUNDLIGHT_ENDPOINT="https://api.integ.groundlight.ai/" ${PYTEST} ${TEST_ARGS} ${CLOUD_FILTERS} test

test-dev: install ## Run tests against a dev API server (needs GROUNDLIGHT_API_TOKEN and properly configured dns-hostmap)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm indifferent on this one. Only thought I have is that given the above two commands you could instead make these commands set a variable and then call make test using that variable

@@ -995,6 +998,7 @@ components:
- confidence
- created_at
- detector_id
- source
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just noting other conversations we've had, this is unrelated to the goal of this PR, but brings this doc back in sync with the BE

test/integration/test_groundlight.py Show resolved Hide resolved
Copy link
Collaborator

@brandon-groundlight brandon-groundlight left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@CoreyEWood CoreyEWood merged commit be6d1d3 into main Nov 13, 2024
8 checks passed
@CoreyEWood CoreyEWood deleted the specify-iq-id branch November 13, 2024 21:55
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