aboutsummaryrefslogtreecommitdiff
path: root/gn2/utility
AgeCommit message (Expand)Author
2024-09-13Move the clean xapian query function to gn2 helper functions.Alexander_Kabui
2024-09-11BUGFIX: Use absolute paths for font files...Use absolute paths for font files so that they are loaded successfully, regardless of whether the application is run with the working directory being the root of the GN2 repo/package or not. Frederick Muriuki Muriithi
2024-09-11Log out the absolute path...Log out the absolute path to avoid replicating the relative path in the logs, which isn't useful. This relates to commit ca8018a61f2e014b4aee4da2cbd00d7b591b2f6a Frederick Muriuki Muriithi
2024-09-11Debug Haley-Knott Regression mapping failure...I suspect the use of relative paths might be the cause of the failure in the production container — In the development environments and the CI/CD container, the applications are run at the root of the GN2 repository/package. This might not be the case in the production-esque containers, since the packages are installed in GNU Guix's store, and the launching of the application might be entirely elsewhere. This commit will hopefully log out the information necessary to figure out whether or not my hypothesis is correct. Frederick Muriuki Muriithi
2024-08-29feat: add template for editting wikiJohn Nduli
2024-03-06Use AUTH_SERVER_URL setting from flask.current_app not gn2.utility.toolsFrederick Muriuki Muriithi
2024-03-05configs: Fetch configs from app not `gn2.utility.tools`...Fetch configurations from the application, rather than from the `gn2.utility.tools` module that does not get the updated values from the secrets file. Frederick Muriuki Muriithi
2024-02-19Fix font pathszsloan
2024-01-02Move default settings into gn2 module.Arun Isaac
2024-01-02Consistently use GN_VERSION from app config....GN_VERSION is set in the configuration file and read into the app config dictionary. Use that instead of re-reading from the etc/VERSION file. * gn2/utility/tools.py (gn_version): Delete function. (GN_VERSION): Delete variable. * gn2/wqflask/metadata_edits.py (display_phenotype_metadata, display_probeset_metadata, show_history): Use GN_VERSION in app config. * gn2/wqflask/views.py: Do not import GN_VERSION from gn2.utility.tools. (handle_generic_exceptions, index_page.__render__, submit_trait_form): Use GN_VERSION in app config. Arun Isaac
2023-12-29Namespace all modules under gn2....We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. Arun Isaac