From 870dd3a952242039d53bfdb7748d07ada30e124e Mon Sep 17 00:00:00 2001 From: maxsibilla Date: Mon, 20 Jul 2026 10:57:30 -0400 Subject: [PATCH 1/2] Bumping version --- VERSION | 2 +- entity-api-spec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index db77e0ee..7b4d9a4f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.10.5 +1.10.6 diff --git a/entity-api-spec.yaml b/entity-api-spec.yaml index 52b5ae03..dc35cbb2 100644 --- a/entity-api-spec.yaml +++ b/entity-api-spec.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: description: 'The SenNet Entity API is a standard RESTful web service with create, update and read operations for the standard SenNet provenance graph entities.' - version: 1.10.5 + version: 1.10.6 title: SenNet Entity API contact: name: SenNet Help Desk From 2bc13cf82615ef70e9b7adc5633da93e366bdb67 Mon Sep 17 00:00:00 2001 From: Lisa-Ann B <115558393+libpitt@users.noreply.github.com> Date: Tue, 4 Aug 2026 11:09:19 -0400 Subject: [PATCH 2/2] Add constraint for uberon code - #977 --- src/lib/constraints/sample.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/constraints/sample.py b/src/lib/constraints/sample.py index cd2a69b3..2979bb10 100644 --- a/src/lib/constraints/sample.py +++ b/src/lib/constraints/sample.py @@ -18,6 +18,12 @@ def build_sample_organ_constraints(entity, constraints=None): descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.SUSPENSION]) constraints.append(build_constraint(ancestor, [descendant])) + # Sample suspension ---> Sample organ of blood (organ_uberon) + ancestor = build_constraint_unit( + entity, [SpecimenCategories.ORGAN], [Ontology.ops(as_data_dict=True, val_key='organ_uberon').organ_types()['BLOOD']] + ) + constraints.append(build_constraint(ancestor, [descendant])) + # Sample block ---> Sample organ ancestor = build_constraint_unit(entity, [SpecimenCategories.ORGAN]) descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.BLOCK])