aboutsummaryrefslogtreecommitdiff
path: root/gn3
AgeCommit message (Collapse)Author
2023-08-02Integrate Temp traits to AuthFrederick Muriuki Muriithi
Temporary traits are not saved to the database, and have no attached resource (at this time). As such, make them all simply public-read to enable access for users. This might change after more information on usage of temporary traits is collected and considered.
2023-07-31Fix typing issueFrederick Muriuki Muriithi
2023-07-31Fix linting and typing issues.Frederick Muriuki Muriithi
2023-07-31Fix bugs. Return resource without data items.Frederick Muriuki Muriithi
* Fix bugs introduced while attempting pagination. * Return resource object without attached data items.
2023-07-31Paginate the resource data items.Frederick Muriuki Muriithi
2023-07-26Fix variable name.Frederick Muriuki Muriithi
2023-07-26Remove debug statement.Frederick Muriuki Muriithi
2023-07-26Fetch `metadata_audit` trail with direct query functions.Frederick Muriuki Muriithi
2023-07-26Function to create a metadata audit trail.Frederick Muriuki Muriithi
2023-07-21Add some debug utilities.Frederick Muriuki Muriithi
2023-07-21Update a Publication in the database.Frederick Muriuki Muriithi
2023-07-21Fetch a publication by its PubMed IDFrederick Muriuki Muriithi
2023-07-21Rename function: fetch_publication ==> fetch_publication_by_idFrederick Muriuki Muriithi
2023-07-19Extract code dealing with ProbeSets to their own module.Frederick Muriuki Muriithi
2023-07-19Extract reusable code to separate moduleFrederick Muriuki Muriithi
Extract the reusable function into a separate `query_tools` module for use in other modules.
2023-07-18Bug: Change from `_id` to `id_` to avoid downstream breakage.Frederick Muriuki Muriithi
The downstream code expects `id_` not `_id`.
2023-07-18Fix wrong import, and typing issues.Frederick Muriuki Muriithi
2023-07-18Fetch a single publication by `PublicationId`Frederick Muriuki Muriithi
2023-07-18Fetch metadata for a single phenotype.Frederick Muriuki Muriithi
2023-07-18Fetch single phenotype trait by `dataset_id` and `trait_name`.Frederick Muriuki Muriithi
2023-07-18Bug: Fetch group name by dataset_idFrederick Muriuki Muriithi
Change the code to fetch the group name by the dataset ID, since according to usage[1] of the `retrieve_group_name` function, the value passed in is the `dataset_id` and not the `group_id`. Change the name from `retrieve_group_name` to `retrieve_phenotype_group_name` to more clearly indicate that this function concerns itself with the groups that relate to phenotypes. [1](https://github.com/genenetwork/genenetwork2/blob/1bbb0430732b7fa5102d7dcbda80ebda252f5424/wqflask/wqflask/metadata_edits.py)
2023-07-17Fix dict key nameFrederick Muriuki Muriithi
Remove extra colon (:) at the end of the name that was leading to the number of cases not being presented as expected.
2023-07-12Bug: Set the `data_exists` variable within the context managerFrederick Muriuki Muriithi
The `cursor.fetchone()` call that was used as the condition to the `if` was called outside of the context manager, and therefore would always give a non-truthy value at best and an inconsistent result at worst. This commit gets the value before the context manager has exited and stores it for later use.
2023-07-12Bug: Retrieve configs from app, not environmentFrederick Muriuki Muriithi
Retrieve the configuration values from the application object, not from the environment. We are assured of having the configuration values set in the application - we do not have that assurance for the environment.
2023-07-12Move documentation comment to beginning of functionFrederick Muriuki Muriithi
2023-07-06Provide the client_id as part of the post request.Frederick Muriuki Muriithi
2023-07-04Fix minor UI bugFrederick Muriuki Muriithi
2023-07-03Spruce up UIFrederick Muriuki Muriithi
Make UI somewhat consistent with the GN2 UI.
2023-07-03Enable deletion of OAuth2 clients.Frederick Muriuki Muriithi
2023-06-30Edit some of the details of OAuth2 clientsFrederick Muriuki Muriithi
2023-06-30List all OAuth2 clients.Frederick Muriuki Muriithi
2023-06-23Fetch all collections, rename variablesFrederick Muriuki Muriithi
Fetch from `__REDIS_COLLECTION_KEY__` not `"collections"` to ensure all collections are retrieved correctly. Rename from `__*_DOC__` to `__REDIS_*_KEY__` to more clearly express what the variables are about.
2023-06-20Fix conflictszsloan
2023-06-20Bug: Don't overwrite/delete old collectionsFrederick Muriuki Muriithi
2023-06-15Fetch genotypes from virtuosoMunyoki Kilyungi
* gn3/api/metadata.py: Import get_genotype_metadata. (genotype): New end-point. * gn3/db/rdf.py (get_phenotype_metadata): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-13Namespace session variableFrederick Muriuki Muriithi
Extract the functions acting on the session into a separate module and namespace the session variable to prevent conflicts.
2023-06-12Delete unused importMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-12Fetch phenotypes from virtuosoMunyoki Kilyungi
* gn3/api/metadata.py: Import get_phenotype_metadata. (phenotype): New end-point. * gn3/db/rdf.py (get_phenotype_metadata): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-12Correct publication function docstringMunyoki Kilyungi
* gn3/api/metadata.py (publication): Update docstring. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-12Delete unused get_trait_metadata functionMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-08Fix bugs with accessing/creating collectionszsloan
2023-06-07auth: Remove "migrate-data" scope.Frederick Muriuki Muriithi
Scope is superceded by CLI utility script.
2023-06-07auth: Remove obsoleted scopeFrederick Muriuki Muriithi
2023-06-07Add publication end-pointMunyoki Kilyungi
* gn3/api/metadata.py: Import get_publication_metadata (publication): New endpoint. * gn3/db/rdf.py (get_dataset_metadata): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-07Nest duplicate entries into a list from a sparql resultMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-07Remove trait_metadata endpointMunyoki Kilyungi
* gn3/api/metadata.py: Remove get_trait_metadata import. (trait_metadata): Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-06Pass geoSeries as a URLMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-06Rename gn:geoPlatform -> gn:geoPlatformUrlMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-06Match how dataset metadata is fetched with GN1Munyoki Kilyungi
* gn3/db/rdf.py (sparql_query): Parse CONSTRUCTS and SELECTS differently. (strip_url): Rename to ... (get_url_local_name): ... this. (get_dataset_metadata): Fetch extra fields in RDF. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-06-06Replace taxon prefix with ncbiTaxon which references NCBIMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>