aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-23Add implementation for new gnqa template.Alexander_Kabui
* This is a separate interface from gnqa main page for testing.
2024-04-23Implementation for gnqa chatbox uiAlexander_Kabui
2024-04-23Add reimplementation for gnqa error pageAlexander_Kabui
2024-04-23Don't fail startup due to missing config.Frederick Muriuki Muriithi
2024-04-23Separate the auth server's public key from app's private keyFrederick Muriuki Muriithi
* Use the app's private key to sign the initial assertions used for retrieving an authorisation token from the auth server. * Use auth server's public key to validate the authorisation tokens got from the auth server.
2024-04-23Generate assertions to be used to get the token from the auth serverFrederick Muriuki Muriithi
2024-04-23Client needs access to PRIVATE KEY, not PUBLIC KEY.Frederick Muriuki Muriithi
2024-04-23Use the JWT Bearer grant typeFrederick Muriuki Muriithi
2024-04-23SSL_KEY_PAIR_PUBLIC_KEY: New settingFrederick Muriuki Muriithi
Define a new setting named SSL_KEY_PAIR_PUBLIC_KEY to hold the path to the SSL key-pair's public key, used with the JWTs.
2024-04-22Change haplotype analyst color schemezsloan
2024-04-16Import missing symbol.Frederick Muriuki Muriithi
2024-04-11Merge pull request #838 from genenetwork/feature/refactor-gnqa-uiAlexander Kabui
Feature/refactor gnqa UI
2024-04-05Delete redundant UI codebase.Alexander_Kabui
2024-04-05Use bootstrap classes for ui.Alexander_Kabui
2024-04-05Refactor gnqa history endpoint.Alexander_Kabui
* require gn-auth
2024-04-05Add get history fetch url on gnqa homepage.Alexander_Kabui
2024-04-05Add gnqa history search page.Alexander_Kabui
2024-04-05Update UI for gnqa rating to use htmx.Alexander_Kabui
2024-04-05Update gnqa rating route.Alexander_Kabui
2024-04-03Add pubmed info and stylingAlexander_Kabui
2024-04-02Display a history page containing all the edits.Munyoki Kilyungi
* gn2/wqflask/edit.py (__fetch_dataset_git_history__): New function. (view_history): New end-point. * gn2/wqflask/templates/dataset.html: Use htmx to fetch history. * gn2/wqflask/templates/dataset_history.html: New history page. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-02Use the dataset id to fetch the authorisation roles.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-02Load the edit page on the same page using HTMX.Munyoki Kilyungi
* gn2/wqflask/templates/dataset.html: Delete target="_blank" for the edit links. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-02Properly chain all the git and write operations together.Munyoki Kilyungi
* gn2/wqflask/edit.py (save_dataset_metadata): Chain running the git commands and the write operation together. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-02Refactor __run_cmd into private function __run_cmd__.Munyoki Kilyungi
* gn2/wqflask/edit.py: Import Right. Delete curry. (save_dataset_metadata)[__run_cmd]: Move this... (__run_cmd__): ... here. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-04-02Add a "View History" link.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-27Add some styling to gnqa answer page.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Fix htmx swap.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Delete unused javascript in gnqa page.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Add missing braces/brackets.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Enable auto-complete in form.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Clean up gnqa answer page.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Delete unused template.Munyoki Kilyungi
* gn2/wqflask/templates/pubmed_modal.html: Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Delete llm.css and it's references.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.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-27Add htmx indicator.Munyoki Kilyungi
Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-03-27Add some styling to AI search bar.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Move search box to below the header.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Wrap "search" block round entire div that nests the search box.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Format files.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Re-locate gnqa search box to gnqa.html.Munyoki Kilyungi
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-27Clean up base.html.Munyoki Kilyungi
* gn2/wqflask/templates/base.html: Replace TABS with white-space. Fix hanging html tags. Format file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Rework GN-QA landing page.Munyoki Kilyungi
Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
2024-03-27Fix mark-up in gn-qa landing page.Munyoki Kilyungi
Co-authored-by: Alexander Kabui <Alexanderkabua@gmail.com>
2024-03-26Patch correct module to fix tests.Frederick Muriuki Muriithi
2024-03-26Revert "bug: gn2.wqflask.resource_manager has no `requests` defined"Frederick Muriuki Muriithi
This reverts commit dde660453fc402b020178db41d136334a1b91b89.
2024-03-26Revert "Update test function signatures and remove obsolete tests."Frederick Muriuki Muriithi
This reverts commit 77af7c016749998d62b769bdd24069f511925ef9.
2024-03-26Update test function signatures and remove obsolete tests.Frederick Muriuki Muriithi
2024-03-26bug: gn2.wqflask.resource_manager has no `requests` definedFrederick Muriuki Muriithi
gn2.wqflask.resource_manager module does not have a `requests` variable or function defined, leading to errors in the test.