aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/views.py
AgeCommit message (Collapse)Author
2024-08-29Handle errors correctly during wiki entry fetch.Munyoki Kilyungi
* 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>
2024-08-29Move genewiki template to wiki template folder.Munyoki Kilyungi
* 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>
2024-08-29Add type annotation for symbol.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Use updated GN3 endpoint for wiki.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Rename entries -> wiki.Munyoki Kilyungi
* gn2/wqflask/views.py (display_genewiki_page)[entries]: Rename entries to wiki. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Rename generif -> genewiki.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Auto-pep8 file.Munyoki Kilyungi
* gn2/wqflask/views.py: Run auto-pep8 against file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Add delete to monad requests http methods.Alexander_Kabui
2024-08-29Modify gnqna search method from post to put.Alexander_Kabui
2024-08-29integrate gnqa history delete functionality.Alexander_Kabui
2024-08-29Handle attributeError when getting error codes.Alexander_Kabui
2024-08-29BugFix: return correct status code for generic exceptions handler.Alexander_Kabui
2024-08-29Update endpoints and add search history functionality.Alexander_Kabui
2024-08-29View file code cleanup for gnqa.Alexander_Kabui
2024-08-28Fix GN3 URIs for case attribute editingzsloan
Also improve error logging somewhat (but still need to properly display the error in a template)
2024-08-28Add link to GeneCup to tool buttonszsloan
This also includes a function for converting a list of traits/datasets to symbols, which was added to trait.py
2024-08-28Check metadata exists before setting 'editable' field in get_dataset.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-28Revert "Feature/gnqa search history"Alexander Kabui
2024-07-30Fix GN3 URIs for case attribute editingzsloan
Also improve error logging somewhat (but still need to properly display the error in a template)
2024-07-03Add link to GeneCup to tool buttonszsloan
This also includes a function for converting a list of traits/datasets to symbols, which was added to trait.py
2024-05-29integrate gnqa history delete functionality.Alexander_Kabui
2024-05-29Handle attributeError when getting error codes.Alexander_Kabui
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-28BugFix: return correct status code for generic exceptions handler.Alexander_Kabui
2024-05-23Update endpoints and add search history functionality.Alexander_Kabui
2024-05-22View file code cleanup for gnqa.Alexander_Kabui
2024-05-20Check metadata exists before setting 'editable' field in get_dataset.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-05-14Revert "Disable gnqa functionality."Munyoki Kilyungi
This reverts commit 01eba6e9b54e45bc937983e33b439a353118de2c.
2024-05-13Disable gnqa functionality.Alexander_Kabui
* to test the functionality use ga.genenetwork.org
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.Munyoki Kilyungi
* gn2/wqflask/views.py (get_dataset): Use a dataset's label as it's identifier. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-23Create an endpoint for gnqa test templateAlexander_Kabui
2024-04-11Merge pull request #838 from genenetwork/feature/refactor-gnqa-uiAlexander Kabui
Feature/refactor gnqa UI
2024-04-05Refactor gnqa history endpoint.Alexander_Kabui
* require gn-auth
2024-04-05Update gnqa rating route.Alexander_Kabui
2024-04-02Use the dataset id to fetch the authorisation roles.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-27Require ouath2 for gnqa history search.Munyoki Kilyungi
* 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>
2024-03-27Require log-in to use the gn-qa search system.Munyoki Kilyungi
* 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>
2024-03-26Only display the "edit" link when a user has edit permissions.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Import user_logged_in from the clients module.Munyoki Kilyungi
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>
2024-03-26Remove unused imports.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Remove unused declared variable.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Delete search dataset functionality in RDF.Munyoki Kilyungi
* gn2/wqflask/views.py (search_for_dataset): Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-26Delete unused page.Munyoki Kilyungi
* gn2/wqflask/views.py (display_diffs_admin): Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-22add gnqa evaluation UIAlexander_Kabui
2024-03-05disable login requirement for gnqa on cdAlexander_Kabui
* reason gnqa and gn-auth are currently unstable
2024-02-16pep8 formattingAlexander_Kabui
2024-02-16init check for user loginAlexander_Kabui