Skip to content

BioThings v1.2.1 release

Choose a tag to compare

@DylanWelzel DylanWelzel released this 14 Oct 23:18
· 85 commits to master since this release
4d8cdca

What's Changed

  • Added an optional login to the Hub API: when users are defined in the new HUB_API_USERS setting, requests that run commands or change data (any method other than GET, HEAD, and OPTIONS) require a token from POST /login, sent in the X-Biothings-Access-Token header, with failed logins throttled per user and python -m biothings.utils.passwords to create password hashes; without users, the API stays open as before, by @DylanWelzel in #480
  • Removed the Hub's SSH console and dropped asyncssh from the hub extra; HUB_SSH_PORT and HUB_PASSWD are 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_after pagination with an Elasticsearch point in time to GET /query, where search_after=* starts a session, each page returns a _search_after cursor for the next page, and sort is honored, and deprecated scroll pagination with fetch_all and scroll_id, which keeps working and now adds a _warning recommending search_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_backend building MongoDB backends from a collection instead of its database and rejecting the backend's own mongo type 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