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

Ask_async docs #113

Merged
merged 20 commits into from
Oct 18, 2023
Merged

Ask_async docs #113

merged 20 commits into from
Oct 18, 2023

Conversation

sunildkumar
Copy link
Member

@sunildkumar sunildkumar commented Oct 13, 2023

Docs describing how to use ask_async and a bit of docs polishing.

sunildkumar and others added 8 commits October 16, 2023 16:48
* initial commit

* added ask_async to submit_image_query

* Automatically reformatting code

* added ask async method

* Automatically reformatting code

* added integration tests (requires BE merge first)

* Automatically reformatting code

* satisfying mypy

* Automatically reformatting code

* fix comments

* change what type of exception test is catching

* Automatically reformatting code

* fix imports organization issue

* fix implementation - wait must be 0 not None

* Automatically reformatting code

* forgot to make wait=0 in relevant test

* feedback from PR review

* Automatically reformatting code

* ensure want_async is a serializable bool

* add description

* updated sphinx reqs to render some of the dependencies

* updated docstring for ask_async and fixed small sphinx bugs in other folk's docstrings

* Tests aren't passing because I didn't update the autogenerated code to expect a new param

* Revert "Tests aren't passing because I didn't update the autogenerated code to expect a new param"

This reverts commit 2477fd5.

* fix generated

* Automatically reformatting code

* fix lint

* Automatically reformatting code

* Revert "Automatically reformatting code"

This reverts commit cb9359e.

* Revert "fix generated"

This reverts commit 935c036.

* Revert "Revert "Tests aren't passing because I didn't update the autogenerated code to expect a new param""

This reverts commit 07670e3.

* Revert "Tests aren't passing because I didn't update the autogenerated code to expect a new param"

This reverts commit 2477fd5.

* Revert "updated docstring for ask_async and fixed small sphinx bugs in other folk's docstrings"

This reverts commit 67e3edd.

* third time at generated docs is the charm

* Automatically reformatting code

* finish making tests work

* Automatically reformatting code

---------

Co-authored-by: Auto-format Bot <[email protected]>
* Add basic catch if api token isn't specified when cli is called

* Pushes Groundlight class instantiation up until the function is actually called with arguments.
This means that the entire help args are available even if we can't instantiate the class (no api key)

* Fixed misunderstanding with metaprogramming, added tests

* Addressing comments

---------

Co-authored-by: Auto-format Bot <[email protected]>
* Adding ask_confident and ask_fast

* Automatically reformatting code

* Fixing ask_ml behavior

* Adding to test

* Automatically reformatting code

* set default wait for ask_ml

* Unhide wait functions, merging logic, fixed iq_is_answered logic

* Automatically reformatting code

* Rewriting doc strings in Sphinx style

* ask_fast to ask_ml in the tests

* fixed sphinx docstring return types

* Cleaning the lint trap

* Last bits of lint

* Making iq submission with inspection work with newly optional patience time

* single char typo

* Reorder functions to trick Git's LCS alg to be correct

* Automatically reformatting code

---------

Co-authored-by: Auto-format Bot <[email protected]>
@sunildkumar sunildkumar changed the base branch from main to version_0.12.0 October 17, 2023 18:50
@@ -1,3 +1,7 @@
---
Copy link
Member Author

Choose a reason for hiding this comment

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

I explicitly gave each of the docs in /building-applications a place in the sidebar list by prepending each one with <{position}-> and adding sidebar_position: {position} where necessary.

Copy link
Member

@robotrapta robotrapta left a comment

Choose a reason for hiding this comment

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

LGTM!

Note I iterated on the docs server in #124

docs/docs/building-applications/5-async-queries.md Outdated Show resolved Hide resolved
docs/docs/building-applications/5-async-queries.md Outdated Show resolved Hide resolved
Copy link
Contributor

@blaise-muhirwa blaise-muhirwa left a comment

Choose a reason for hiding this comment

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

Looks good!

@sunildkumar sunildkumar changed the base branch from version_0.12.0 to main October 18, 2023 18:57
@sunildkumar sunildkumar merged commit 3360381 into main Oct 18, 2023
8 checks passed
@sunildkumar sunildkumar deleted the ask_async_docs branch October 18, 2023 19:11
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.

4 participants