Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New features:
optimade_validator
for a locally running OPTiMaDe server (Make validator GitHub Action #191, @CasperWA, tested by @ml-evs)HAS ALL
,HAS ANY
andHAS ONLY
and value lists on MongoDB backends (Added default mongo implementations for HAS ALL/ANY/ONLY #173, @ml-evs)Note:
OPERATOR
use in value lists are still not supported.debug
log-level inuvicorn
and get a full Python traceback in the JSON response (Add "debug mode" #190, @CasperWA)filter
queries tooptimade_validator
(Test mandatory queries in validator #205, @ml-evs)Updates:
*
), i.e., enable CORS for both servers (Add CORSMiddleware #194, @CasperWA)optimade.models.toplevel.py
tooptimade.models.responses.py
((Cosmetic) updates to models #195, @CasperWA)starlette
tofastapi
, where possible (Fix include query parameter #202, @ml-evs)starlette
implementation (Fix include query parameter #202, @ml-evs)mongomock
backend for the tests inserver/test_middleware.py
,server/test_server_validation.py
, andserver/test_config.py
(Use mongo for CI #196, @ml-evs, additional testing by @CasperWA )/optimade
from base URLs. This was especially important for the OpenAPI schema (Fix meta.query.representation and remove /optimade in base URLs #201, Removed /optimade/ prefix in info response #216, @CasperWA, @ml-evs)optimade/server/exceptions.py
to contain customHttpException
s, movedBadRequest
here (Update handling of include parameter (and other query parameters) #209, @CasperWA)data.available_api_versions
parts in/info
endpoint and fix tests for the same (Update tests for available_api_versions #211, @CasperWA)Bug fixes:
HAS ONLY
tests with amongomock
backend, since v3.19.0 does not support these (Skip HAS ONLY test if mongomock version <= 3.19.0 #206, @ml-evs)/
) (Fix errors parsing IDs that contain slashes #183, @ml-evs, @CasperWA)meta.query.representation
(Fix meta.query.representation and remove /optimade in base URLs #201, @CasperWA)