summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-25 16:17:51 +0300
committerFrederick Muriuki Muriithi2023-07-25 16:20:56 +0300
commita071068ba25c99e9ec1b1cba3412e617697a79e3 (patch)
tree50ed41694c65871ad4a47f4a6e227d8162b1d526
parent09d466b34ff646ea7178cc9b1abc008b371b9d11 (diff)
downloadgn-gemtext-a071068ba25c99e9ec1b1cba3412e617697a79e3.tar.gz
Notes on identifying which diffs relate to a specific trait.
-rw-r--r--topics/editing/improving-metadata-audit.gmi14
1 files changed, 14 insertions, 0 deletions
diff --git a/topics/editing/improving-metadata-audit.gmi b/topics/editing/improving-metadata-audit.gmi
index 473667a..dc9f65b 100644
--- a/topics/editing/improving-metadata-audit.gmi
+++ b/topics/editing/improving-metadata-audit.gmi
@@ -20,3 +20,17 @@ The existing system is missing a few things:
* ...
This document proposes that we do improvements to the existing system to mitigate the list of shortcomings above. Once that is done, it will open up the system for some interesting opportunities, e.g. showing when a trait was last edited and by whom.
+
+## Notes
+
+Identifying trait diffs:
+
+* Phenotype diffs can be identified with the `trait_name` and `phenotype_id` keys in the `json_diff_data` field
+* Probesets diffs can be identified with the `probeset_name` key in the `json_diff_data` field
+* Currently there are no genotype diffs, but following the theme, we should get a `genotype*` key in the `json_diff_data` field
+
+This still means that we cannot simply query data from the table for a specific trait - instead, we will have to query for the dataset_id, and then filter by `(trait/probeset/genotype)_name` as is appropriate for phenotypes, probesets and genotypes respectively.
+
+---
+
+For auth purposes, we will need to fetch the name(s) of the datasets. The authorisation privileges are necessary for filtering out the diffs that a user can act on.