Skip to content

1.0.1

Choose a tag to compare

@DerekFurstPitt DerekFurstPitt released this 16 Feb 20:34
· 40 commits to main since this release
ef5c3a3

In this release:

entitysdk.py

Additions and Removals

  • Added get_prov_info(). This method mirrors the functionality of Entity Api's '/datasets/prov-info'. Returns a json containing provenance info for all primary datasets. Results may be filtered with optional arguments: has_rui_info, organ, group_uuid, and dataset_status
  • Added get_prov_info_by_id. This method mirrors the functionality of Entity Api's '/datasets//prov-info'. Behaves similarly to the above method, but does not accept the additional arguments and requires a dataset id (HuBMAP ID or UUID)
  • Removed get_entity_by_type(). The Entity Api endpoint called by this method is not exposed by the gateway and is inaccessible through the sdk.

Bug Fixes

  • Added "X-Hubmap-Application' to create_entity(). Without these header, the endpoint was unreachable.
  • Fixed a bug in get_next_revisions where it wasn't properly outputting a list object
  • Fixed a bug in get_revisions_list where a key should be called "uuid" but was being called "dataset_uuid"
  • Fixed a bug in get_associated_organs_from_datasets where it was labeling results as datasets rather than samples.
  • Fixed spacing inconsistency in prov-info

searchsdk.py

Bug Fixes

  • Fixed a bug where the default URL for searchapi was given incorrectly

sdk_helper.py

Bug Fixes

  • Fixed a bug created by changes in how error messages are reported from Entity Api. In addition to errors being returned in json's with the key "error", it is now sometimes returned with the key "message". This change has been accommodated.

README.md

Minor Changes

  • Incremented version number.
  • Changed the dependencies to give exact versions rather than version ranges (e.g. urllib3==1.26.7 rather than urllib3>=1.26.7)

Other notes

The documents for hubmap-sdk in the softwaredocs repo have been changed to reflect the removal of get_entity_by_type() and additions of get_prov_info() and get_prov_info_by_id()