Updates and bug fixes

Merged
AL
24d ago
+996-102

Summary by cubic

Fixes several correctness bugs in the omophub R client and bumps the package to 1.10.0.

Bug Fixes

  • Batch concept and recommendation requests keep JSON arrays for single IDs, filters, and named input vectors; vocabulary filters are validated before sending.
  • get_by_code() percent-encodes vocabulary and code path segments, so codes containing slashes or percent signs work with all query options.
  • HTTP failures now raise the documented omophub_* condition classes (omophub_validation_error, omophub_auth_error, omophub_forbidden_error, omophub_not_found, omophub_rate_limit_error, omophub_server_error, omophub_connection_error), carrying status_code, error_code, details, request_id, and retry_after; the httr2 classes and e$resp are preserved for existing handlers. Unparseable or empty error bodies fall back to the HTTP status without masking the failure.

Changed

  • Autocomplete now calls /search/autocomplete and returns compact suggestion, type, and count fields; basic search enforces the API's 3–500 character query range.
  • CI workflows no longer share an API key for live tests, avoiding exhausted rate limits; the live suite runs once in integration-tests.yaml.