about summary refs log tree commit diff
path: root/gn3/api
AgeCommit message (Collapse)Author
2025-01-09refactor: remove obsolete streaming endpoint.Alexander_Kabui
2025-01-09refactor: enhance docstring for streaming endpoint.Alexander_Kabui
2025-01-09feat: Add and register streaming blueprint.Alexander_Kabui
2025-01-09feat: Add streaming main endpoint.Alexander_Kabui
2025-01-09feat: Init add module for streaming api endpoins.Alexander_Kabui
2025-01-09refactor: import streaming functionality from module.Alexander_Kabui
2025-01-08refactor: Modify error message for run_process function.Alexander_Kabui
2025-01-08refactor: Return results as dict with correct metadata for subprocess.Alexander_Kabui
2025-01-08refactor: Pass arg commands to subprocess as a list.Alexander_Kabui
* Use with open context for subprocess. * Correctly handle subprocess error.
2025-01-07feat: Revert commit 688d6a4.Alexander_Kabui
2025-01-07feat: remove shell True to for debug.Alexander_Kabui
2024-12-20Add todo note for writing rqtl file.Alexander_Kabui
2024-12-20fix: Pylint fixes.Alexander_Kabui
2024-12-20feat: Enable streaming for output.Alexander_Kabui
2024-12-17feat: Init integrate streaming functionality to rqtl1.Alexander_Kabui
2024-12-07Check whether genofile/phenofile exist separately.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-12-04Temp disable with for test Popen processes.Alexander_Kabui
2024-12-04refactor: make pylint fixes.Alexander_Kabui
2024-11-28feat: define general endpoint for streaming stdout using unique identifier.Alexander_Kabui
2024-11-27feat: return run id for compute and streaming api's.Alexander_Kabui
2024-11-26feat: Implement reading from file functionalityAlexander_Kabui
Implement read from the last position for a file.
2024-11-22feat: return pointer position from where the file was last read.Alexander_Kabui
2024-11-22feat: Add new endpoint to read stdout given a file identifier.Alexander_Kabui
2024-11-22feat: implement ednpoint for computing qtl using rqtl2.Alexander_Kabui
Capture stdout results to a file.
2024-10-18refactor: replace gn3.auth.db with gn3.sqlite_db_utils and drop all refs to ↵John Nduli
gn3.auth
2024-10-18refactor: move definition of auth errs and remove auth cli utilsJohn Nduli
2024-10-15Lint: Fix linting errors.Frederick Muriuki Muriithi
2024-10-15Pass in correct file path.Frederick Muriuki Muriithi
2024-10-15fix: use require_token to validate gn3 apisJohn Nduli
2024-10-14Add end-point for fetching NCBI metadata.Munyoki Kilyungi
* gn3/api/metadata.py: Register "wiki.rif_blueprint". * gn3/api/metadata_api/wiki.py: Import "get_rif_entries_by_symbol". [rif_blueprint]: New blueprint. (get_ncbi_rif_entries): New endpoint: "metadata/rif/<symbol>". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-30chore: pylint code fixJohn Nduli
2024-09-30feat: rollback mysql transaction when rdf insert failsJohn Nduli
2024-09-27Bug: Use absolute path in place of relative pathFrederick Muriuki Muriithi
Prior to this commit, an assumption is made that the application is invoked with the root of the repository being the current working directory. If this assumption is not met, then the system will not find the appropriate path. This commit forces the use of an absolute path, which should help avoid issues with misplaced relative paths.
2024-09-19Remove extraneous keyword.Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py (edit_wiki): Remove comment_id from args---it's already in the insert_dict. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-18Pass in insert_dict instead of payload in "get_wiki_entries".Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py (edit_wiki) [insert_dict]: Add species, categories fields. [update_wiki_comment]: Pass in insert_dict, and get rid of redundant keys. Directly pass in sparql_auth's conf params instead of a dict. * gn3/db/rdf/wiki.py (get_next_comment_version): Get rid of redundant params. Use fields directly from insert_dict. Directly pass in sparql_auth's conf params instead of a dict. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-18Pass in the createtime as an arg when inserting into RDF graph.Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py (edit_wiki): Pass in the createtime as an arg. * gn3/db/rdf/wiki.py: Remove un-used imports. (update_wiki_comment): Use passed in "created" arg in the createtime field. This makes sure that the SQL/RDF timestamps match. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-18Get the next versionId from SQL.Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py (edit_wiki): Get the next version Id from SQL * gn3/db/rdf/wiki.py (get_next_comment_version): Delete. (update_wiki_comment): Provide the next_version id as an extra arg. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-18Update "POST /wiki/comment_id/edit" to have RDF edits.Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py: Import update_wiki_comment. (edit_wiki): Update wiki in RDF. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-18Fix typo.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-17Fix C0411/C0412 pylint errors in gn3.api.metadata.api.wiki.Munyoki Kilyungi
* gn3/api/metadata_api/wiki.py: Re-order imports to fix pylint errors. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-17feat: require auth for edit api callJohn Nduli
2024-09-12Fix pylint errors.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-12feat: pick results from sqlite3 if they were storedJohn Nduli
2024-09-12Initialise the package to ensure setuptools finds it.Frederick Muriuki Muriithi
2024-09-12Make sure dir exists before running R/qtlPjotr Prins
2024-09-12Replace TMPDIR/output with TMPDIR/gn3 so it is clear where it comes fromPjotr Prins
2024-09-12rqtl_wrapper: minor fixesPjotr Prins
2024-09-12Make sure TMPDIR directories exist!Pjotr Prins
2024-09-12Move assert_paths_exist into fs_helpersPjotr Prins
2024-09-12Change behavior of do_paths_exist to actually throw useful errorPjotr Prins