Repository navigation
BioThings v1.2.1 release
What's Changed
- Added an optional login to the Hub API: when users are defined in the new
HUB_API_USERSsetting, requests that run commands or change data (any method other than GET, HEAD, and OPTIONS) require a token fromPOST /login, sent in theX-Biothings-Access-Tokenheader, with failed logins throttled per user andpython -m biothings.utils.passwordsto create password hashes; without users, the API stays open as before, by @DylanWelzel in #480 - Removed the Hub's SSH console and dropped
asyncsshfrom thehubextra;HUB_SSH_PORTandHUB_PASSWDare now ignored with a warning, and the console's commands can be run from BioThings Studio's terminal, by @DylanWelzel in #480 - Added a Hub deployment and access-control guide covering the API login and HTTPS by @DylanWelzel in #480
- Added
search_afterpagination with an Elasticsearch point in time toGET /query, wheresearch_after=*starts a session, each page returns a_search_aftercursor for the next page, andsortis honored, and deprecated scroll pagination withfetch_allandscroll_id, which keeps working and now adds a_warningrecommendingsearch_after, by @jal347 in #474 - Sped up build diffs by checking which IDs exist in the old collection without loading their documents, loading both sides of a MongoDB comparison in parallel, and pairing documents by ID instead of by sort order, so a backend returning duplicate or mismatched document IDs now raises an error instead of comparing the wrong documents, by @shuchenliu in #473
- Sped up unordered list comparison in
jsondiff, and fixed lists holding the same values with different multiplicities being reported as equal, by @shuchenliu in #473 - Fixed JobManager's pending-job count with free-threaded workers, which counted idle worker threads as running jobs, and kept a cancelled process job counted until its worker actually stops, by @shuchenliu in #473
- Fixed
biothings.utils.diff.get_backendbuilding MongoDB backends from a collection instead of its database and rejecting the backend's ownmongotype name by @shuchenliu in #473 - Added a JSON diff workload to the JobManager benchmark by @shuchenliu in #473
Full Changelog: v1.2.0...v1.2.1