aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/views.py
AgeCommit message (Expand)Author
2024-08-29Fetch file path as query parameter.Alexander_Kabui
2024-08-29Use localstorage to track current commit.Alexander_Kabui
2024-08-29Code refactoring.Alexander_Kabui
2024-08-29Minor code refactoring.Alexander_Kabui
2024-08-29Add commit preview page.Alexander_Kabui
2024-08-29Feature: Allow users custom configuration for editor.Alexander_Kabui
2024-08-29Add initial endpoint for serving edit filesAlexander_Kabui
2024-08-29refactor: drop monad_requests and mark required fieldsJohn Nduli
2024-08-29feat: add post actions for editting wiki contentJohn Nduli
2024-08-29feat: add template for editting wikiJohn Nduli
2024-08-29Handle errors correctly during wiki entry fetch....* gn2/wqflask/templates/wiki/genewiki.html: Flash messages during errors. * gn2/wqflask/views.py (display_genewiki_page): Use "raise_for_status()" to handle errors. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Move genewiki template to wiki template folder....* gn2/wqflask/templates/genewiki.html: Move this... * gn2/wqflask/templates/genewiki.html: ... here. * gn2/wqflask/views.py (display_genewiki_page): Update the render_template page. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Add type annotation for symbol....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Use updated GN3 endpoint for wiki....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Rename entries -> wiki....* gn2/wqflask/views.py (display_genewiki_page)[entries]: Rename entries to wiki. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Rename generif -> genewiki....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-08-29Auto-pep8 file....* gn2/wqflask/views.py: Run auto-pep8 against file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-07-30Fix GN3 URIs for case attribute editing...Also improve error logging somewhat (but still need to properly display the error in a template) zsloan
2024-07-03Add link to GeneCup to tool buttons...This also includes a function for converting a list of traits/datasets to symbols, which was added to trait.py zsloan
2024-05-29Handle attributeError when getting error codes.Alexander_Kabui
2024-05-28BugFix: return correct status code for generic exceptions handler.Alexander_Kabui
2024-05-20Check metadata exists before setting 'editable' field in get_dataset....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-05-13Disable gnqa functionality.... * to test the functionality use ga.genenetwork.org Alexander_Kabui
2024-05-09Remove debug statements.Alexander_Kabui
2024-05-09Improve error messaging for errors in gn fahamu UI.Alexander_Kabui
2024-04-30Use a dataset's label instead of it's id when fetching auth details....* gn2/wqflask/views.py (get_dataset): Use a dataset's label as it's identifier. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-23Create an endpoint for gnqa test templateAlexander_Kabui
2024-04-11Merge pull request #838 from genenetwork/feature/refactor-gnqa-ui...Feature/refactor gnqa UIAlexander Kabui
2024-04-05Refactor gnqa history endpoint.... * require gn-auth Alexander_Kabui
2024-04-05Update gnqa rating route.Alexander_Kabui
2024-04-02Use the dataset id to fetch the authorisation roles....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-27Require ouath2 for gnqa history search....* gn2/wqflask/views.py (gnqna_hist): Add "require_oauth2" decorator. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Require log-in to use the gn-qa search system....* gn2/wqflask/views.py: Import require_oauth2. (gnqna): Add "require_oauth2" decorator. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-26Only display the "edit" link when a user has edit permissions....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Import user_logged_in from the clients module....Importing "user_logged_in" in the checks module just to export adds a layer of indirection and makes the code hard to read. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Remove unused imports....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Remove unused declared variable....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Delete search dataset functionality in RDF....* gn2/wqflask/views.py (search_for_dataset): Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Delete unused page....* gn2/wqflask/views.py (display_diffs_admin): Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-22add gnqa evaluation UIAlexander_Kabui
2024-03-05disable login requirement for gnqa on cd... * reason gnqa and gn-auth are currently unstable Alexander_Kabui
2024-02-16pep8 formattingAlexander_Kabui
2024-02-16init check for user loginAlexander_Kabui
2024-01-25add view point for gnqa search historyAlexander_Kabui
2024-01-16add UI for reference rating gn-llm documentsAlexander_Kabui
2024-01-12Switch NCBI link from http to https in failing test and RDF query....* gn2/tests/wqflask/show_trait/test_show_trait.py (test_get_ncbi_summary_request): Replace "http://eutils.ncbi.nlm.nih.gov" with "https://eutils.ncbi.nlm.nih.gov" * gn2/wqflask/views.py (get_probeset): Ditto. Co-authored-by: Alexander Kabui <Alexanderkabua@gmail.com> Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-01-10Add dataset metadata to genotype page when a dataset is specified....* gn2/wqflask/templates/genotype.html: Add extra dataset metadata. * gn2/wqflask/views.py (get_genotype): Extend genotype URL to enable specifying the dataset name. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-01-09Update script's module path.Frederick Muriuki Muriithi
2024-01-08Include Entrez summary for a geneID on the ProbeSet page....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-01-08Add dataset metadata to probeset page when a dataset is specified....* gn2/wqflask/templates/probeset.html: Add extra dataset metadata elements for groups, species, tissue name and dataset link. * gn2/wqflask/views.py (get_probeset): Extend probeset URL to enable specifying the dataset name. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi