From edce0b2b954d1bf7c1d91f23671c931084f65010 Mon Sep 17 00:00:00 2001 From: natalyatodorova Date: Fri, 9 Jan 2026 16:48:15 +0000 Subject: [PATCH 1/4] !!ODM-12782: add SAMPLE_OBJECT to manageData delete endpoint --- openapi/v1/manageData.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openapi/v1/manageData.yaml b/openapi/v1/manageData.yaml index 476ebaf5..f7bc916a 100644 --- a/openapi/v1/manageData.yaml +++ b/openapi/v1/manageData.yaml @@ -98,10 +98,11 @@ paths: The objects will be marked for deletion. In case the selected object has more than one version, the endpoint deletes all of them. The following object types can be deleted by the endpoint: * `STUDY` * `SAMPLE_GROUP` - * `LIBRARY_GROUP` - * `PREPARATION_GROUP` - * `CELL_GROUP` - * `TABULAR_DATA` + * `SAMPLE_OBJECT` + * `LIBRARY_GROUP` + * `PREPARATION_GROUP` + * `CELL_GROUP` + * `TABULAR_DATA` * `GENE_VARIANT` * `FLOW_CYTOMETRY` * `REFERENCE_GENOME` @@ -110,6 +111,7 @@ paths: Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules: * If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed. * Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`/`CELL_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`CELL_GROUP` will be deleted, even if it is linked to another metadata group. + * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. * Deleting a `LIBRARY_GROUP` or `PREPARATION_GROUP` will result in the removal of all libraries or preparations associated with this group, along with any linked `TABULAR_DATA`/`CELL_GROUP`. * Deleting a `CELL_GROUP` will result in the removal of linked `TABULAR_DATA` (cell expression group). * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM. From 3d5f9337f839480543cc240f707b05f4f1218d5d Mon Sep 17 00:00:00 2001 From: natalyatodorova Date: Wed, 14 Jan 2026 21:48:53 +0000 Subject: [PATCH 2/4] !!ODM-12782: fix description --- openapi/v1/manageData.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/v1/manageData.yaml b/openapi/v1/manageData.yaml index f7bc916a..cf0c4e45 100644 --- a/openapi/v1/manageData.yaml +++ b/openapi/v1/manageData.yaml @@ -111,7 +111,7 @@ paths: Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules: * If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed. * Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`/`CELL_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`CELL_GROUP` will be deleted, even if it is linked to another metadata group. - * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. + * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. In case there is LIBRARY_OBJECT or PREPARATION_OBJECT is linked to this SAMPLE_OBJECT, it will be deleted as well. * Deleting a `LIBRARY_GROUP` or `PREPARATION_GROUP` will result in the removal of all libraries or preparations associated with this group, along with any linked `TABULAR_DATA`/`CELL_GROUP`. * Deleting a `CELL_GROUP` will result in the removal of linked `TABULAR_DATA` (cell expression group). * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM. From 34eee98b59c43c61edfb377a8849717792fb229c Mon Sep 17 00:00:00 2001 From: natalyatodorova Date: Thu, 15 Jan 2026 09:50:08 +0000 Subject: [PATCH 3/4] minor --- openapi/v1/manageData.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/v1/manageData.yaml b/openapi/v1/manageData.yaml index cf0c4e45..110b9ff1 100644 --- a/openapi/v1/manageData.yaml +++ b/openapi/v1/manageData.yaml @@ -111,7 +111,7 @@ paths: Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules: * If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed. * Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`/`CELL_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`CELL_GROUP` will be deleted, even if it is linked to another metadata group. - * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. In case there is LIBRARY_OBJECT or PREPARATION_OBJECT is linked to this SAMPLE_OBJECT, it will be deleted as well. + * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. In case there is `LIBRARY_OBJECT` or `PREPARATION_OBJECT` is linked to this `SAMPLE_OBJECT`, it will be deleted as well. * Deleting a `LIBRARY_GROUP` or `PREPARATION_GROUP` will result in the removal of all libraries or preparations associated with this group, along with any linked `TABULAR_DATA`/`CELL_GROUP`. * Deleting a `CELL_GROUP` will result in the removal of linked `TABULAR_DATA` (cell expression group). * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM. From e40c19d9a8a5a5fd6ab7a5cab941711b1431cd5b Mon Sep 17 00:00:00 2001 From: natalyatodorova Date: Thu, 15 Jan 2026 13:39:32 +0000 Subject: [PATCH 4/4] fix grammar --- openapi/v1/manageData.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/v1/manageData.yaml b/openapi/v1/manageData.yaml index 110b9ff1..cc77f834 100644 --- a/openapi/v1/manageData.yaml +++ b/openapi/v1/manageData.yaml @@ -111,7 +111,7 @@ paths: Moreover, if the selected object is linked to any other data, the endpoint will also delete the linked data associated with it according to the specified rules: * If you delete a `STUDY`, the entire study with all the listed group types and files, will be removed. * Deleting a `SAMPLE_GROUP` will result in the removal of all samples associated with this sample group, along with any linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`LIBRARY_GROUP`/`PREPARATION_GROUP`/`CELL_GROUP`. The linked `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`/`CELL_GROUP` will be deleted, even if it is linked to another metadata group. - * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from study and will not displayed in version history. In case there is `LIBRARY_OBJECT` or `PREPARATION_OBJECT` is linked to this `SAMPLE_OBJECT`, it will be deleted as well. + * Deleting a `SAMPLE_OBJECT` will result in the removal of that sample from the study, and it will not be displayed in the version history. If a `LIBRARY_OBJECT` or `PREPARATION_OBJECT` is linked to this `SAMPLE_OBJECT`, it will be deleted as well. * Deleting a `LIBRARY_GROUP` or `PREPARATION_GROUP` will result in the removal of all libraries or preparations associated with this group, along with any linked `TABULAR_DATA`/`CELL_GROUP`. * Deleting a `CELL_GROUP` will result in the removal of linked `TABULAR_DATA` (cell expression group). * If you delete `TABULAR_DATA`/`GENE_VARIANT`/`FLOW_CYTOMETRY`, all associated data, such as links and runs will be removed from ODM.