This release adds the ability to include or exclude particular providers from queries with the OptimadeClient class and optimade-get CLI, via the provider's registered prefix (#1412)
For example:
# Only query databases served by the example providers
optimade-get --include-providers exmpl,optimade
# Exclude example providers from global list
optimade-get --exclude-providers exmpl,optimade
You can also now exclude particular databases by their URLs:
# Exclude specific example databases
optimade-get --exclude-databases https://example.org/optimade,https://optimade.org/example
The release also includes some server enhancements and fixes:
Caching of /info/ and /info/<entry> endpoint responses (#1433)
A bugfix for the entry mapper classes, which were sharing cache resources globally leading to poor utilization (#1435)
Implemented enhancements:
Cache /info and /info/<entry> responses #1433 (ml-evs)
Fixed bugs:
lru_caches on the mapper classes are subtly wrong #1434
This release adds the ability to include or exclude particular providers from queries with the OptimadeClient class and optimade-get CLI, via the provider's registered prefix (#1412)
For example:
# Only query databases served by the example providers
optimade-get --include-providers exmpl,optimade
# Exclude example providers from global list
optimade-get --exclude-providers exmpl,optimade
You can also now exclude particular databases by their URLs:
# Exclude specific example databases
optimade-get --exclude-databases https://example.org/optimade,https://optimade.org/example
The release also includes some server enhancements and fixes:
Caching of /info/ and /info/<entry> endpoint responses (#1433)
A bugfix for the entry mapper classes, which were sharing cache resources globally leading to poor utilization (#1435)
Implemented enhancements:
Cache /info and /info/<entry> responses #1433 (ml-evs)
Fixed bugs:
lru_caches on the mapper classes are subtly wrong #1434
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps optimade[server] from 0.20.1 to 0.20.2.
Release notes
Sourced from optimade[server]'s releases.
... (truncated)
Changelog
Sourced from optimade[server]'s changelog.
Commits
b546336
Release v0.20.2 - Changelog6223f18
Update dependencies (#1443)7edef41
Add pip caches to CI and remove old flake8 job (#1442)0d4b678
Add test to check mapper caches do not pollute one another5584cab
Increase mapper lru_cache size to allow for multiple mapper type to be cached...5478fb8
Cache/info
and/info/\<entry>
responses (#1433)eae4846
Allow empty strings through chemical formula regexp (#1428)b5169a8
Explicitly use Python 3.8 environment for pre-commit in CI (#1421)a8c84c5
Add ability to (in/ex)clude providers by ID within client (#1412)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)