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

Add error code #482

Merged
merged 42 commits into from
Jul 29, 2022
Merged

Add error code #482

merged 42 commits into from
Jul 29, 2022

Conversation

severo
Copy link
Collaborator

@severo severo commented Jul 27, 2022

No description provided.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 27, 2022

The documentation is not available anymore as the PR was closed or merged.

severo added 2 commits July 27, 2022 15:35
a Status400Error must be created when we create HTTP responses. Deeper
in the code, we don't know if it will be used for this or not.
severo added 22 commits July 27, 2022 16:03
Only for /valid, /is-valid, /first-rows and /splits-next. See #475.
Also: use more HTTP status codes, see #474.
also: fix imports, and tests
I think it's the best status code when the datasets library raises.
the arguments were given in the wrong order
and also: use connect_to_cache from simple_cache instead of cache which
will be deprecated
also add e2e tests based on the openapi spec (contract testing).
Hopefully this commit fixes #367

Note that more examples should be added to the openapi spec, and tested
in e2e tests
severo added 3 commits July 28, 2022 19:06
also: wait for the reverse proxy, the api and the admin apps to be up.
TEST_TARGET=tests/one_file.py make test-target
TEST_TARGET=tests/one_file.py TEST_EXPRESSION=test_this_dataset_fn make test-target-expression
@severo severo marked this pull request as ready for review July 28, 2022 22:44
@severo severo mentioned this pull request Jul 29, 2022
2 tasks
@severo severo merged commit b136f8f into main Jul 29, 2022
@severo severo deleted the add-error-code branch July 29, 2022 14:50
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