Age | Commit message (Expand) | Author |
2023-06-22 | Update calls to `database_connection` function...Pass in the database URI at call time.
| Frederick Muriuki Muriithi |
2022-10-28 | Refactor: Pass user id to `check_resource_availability`...* Pass the user_id for the current user to the
`check_resource_availability` function as an argument, rather than
using the global `g.user_session.user_id` value.
| Frederick Muriuki Muriithi |
2022-09-08 | Replace g.db with database_connection() context manager...* wqflask/base/mrna_assay_tissue_data.py: Replace "flask.g" with database_connection.
(MrnaAssayTissueData.__init__): Use database_connection.
(MrnaAssayTissueData.get_symbol_values_pairs): Ditto.
* wqflask/base/species.py: Replace "Flask.g" imports with
"database_connection".
(Chromosomes.chromosomes): Use database_connection.
* wqflask/base/trait.py: Import database_connection.
(retrieve_trait_info): Use database_connection.
* wqflask/utility/authentication_tools.py: Replace "flask.g" with
database_connection.
(get_group_code): Use database_connection.
* wqflask/utility/helper_functions.py: Replace "flask.g" with
"database_connection".
(get_species_groups): Use database_connection.
* wqflask/wqflask/db_info.py: Replace "Flask" and "g" with
"database_connection".
(InfoPage.get_info): Use database_connection.
* wqflask/wqflask/do_search.py (DoSearch.execute): Use
database_connection().
* wqflask/wqflask/external_tools/send_to_geneweaver.py: Replace
"Flask" and "g" import with database_connection.
(test_chip): Use database_connection.
* wqflask/wqflask/external_tools/send_to_webgestalt.py: Replace
"Flask, g" imports with database_connection.
(test_chip): Use database_connection.
* wqflask/wqflask/gsearch.py: Replace "Flask" and "g" import with
database_connection.
(GSearch.__init__): Use database_connection.
* wqflask/wqflask/interval_analyst/GeneUtil.py (loadGenes):
Use database_connection().
* wqflask/wqflask/show_trait/SampleList.py: Replace "flask.g import"
with database_connection.
(SampleList.get_attributes): Use database_connection.
(SampleList.get_extra_attribute_values): Ditto.
* wqflask/wqflask/show_trait/show_trait.py: Replace "Flask" and "g"
import with database_connection.
(ShowTrait.__init__): Use database_connection.
(ShowTrait.get_external_links): Ditto.
(get_nearest_marker): Ditto.
| Munyoki Kilyungi |
2022-09-08 | Replace g.db with database_connection() context manager...* wqflask/wqflask/update_search_results.py: Replace "Flask" and "g"
import with "database_connection".
(GSearch.__init__): Reformat SQL. Rename "re" to "results" since "re"
is part of the stdlib.
* wqflask/wqflask/marker_regression/rqtl_mapping.py: Replace flask.g
with database_connection.
(write_covarstruct_file): Replace g.db with database_connection().
* wqflask/wqflask/search_results.py: Replace "Flask" and "g" imports
with "database_connection" import.
(trait_info_str): Replace g.db with database_connection.
* wqflask/wqflask/docs.py (Docs): Use dababase_connection() context
manager.
(update_text): Ditto.
* wqflask/wqflask/marker_regression/display_mapping_results.py:
Replace "Flask" and "g" import with "database_connection".
(DisplayMappingResults.__init__): Use database_connection.
(DisplayMappingResults.drawSNPTrackNew): Ditto.
| Munyoki Kilyungi |
2021-10-28 | Remove the use of '@deprecated'...This causes noisy logging.
| BonfaceKilz |
2021-10-25 | authentication_tools: Mark `check_owner_or_admin` as deprecated...Use the new auth proxy tools instead.
| BonfaceKilz |
2021-10-22 | Replace hardcoded GN proxy URLs with one pulled from settings | zsloan |
2021-07-12 | Encode user_id as bytestring if not already bytestring to account for some us... | zsloan |
2021-04-30 | autopep8: Fix E301,E302,E303,E304,E305,E306 | BonfaceKilz |
2021-03-16 | Removed unnecessary encoding of user_id from authentication_tools.py | zsloan |
2021-02-18 | Changed authentication_tools.py to account for encoding str as bytes and deal... | zsloan |
2020-09-17 | Apply pep8...* wqflask/base/trait.py: Apply pep8.
* wqflask/utility/authentication_tools.py: Ditto.
| BonfaceKilz |
2020-09-17 | Merge branch 'testing' into build/python3-migration | BonfaceKilz |
2020-09-16 | Apply pep8...* wqflask/utility/authentication_tools.py: Apply pep8 formatting to
file.
| BonfaceKilz |
2020-09-16 | Remove unnecessary if branch...* wqflask/utility/authentication_tools.py
(check_resource_availability): Combine if statements into one boolean
check in one if branch.
| BonfaceKilz |
2020-08-31 | Remove typo at beginning of line...* wqflask/utility/authentication_tools.py: Remove accidental char at beginning
of line.
| BonfaceKilz |
2020-08-31 | Merge branch 'testing' into build/python3-migration | BonfaceKilz |
2020-08-29 | Fixed issue where exporting traits would throw an error if a dataset's...group didn't have an InbredSetCode set in the DB
* wqflask/utility/authentication_tools.py - Changed get_group_code to
return an empty string instead of None if InbredSetCode doesn't exist
for a dataset group
* wqflask/wqflask/views.py - Changed zipped export filename to
"export_(datetime)" instead of "collection_(datetime)" since this export
can occur from both the collection page and the global search page
| zsloan |
2020-08-27 | Add check for empty group_code when adding a new resource...* wqflask/utility/authentication_tools.py(add_new_resource): If group_code is
"None", an error is thrown when you try to: `group_code + "_" + str(trait_id)`
| BonfaceKilz |
2020-08-26 | Remove "from __future__ import new_feature" statements...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-future>
| BonfaceKilz |
2020-08-19 | Make Python more idiomatic...Run `2to3-3.8 -f idioms -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
| BonfaceKilz |
2020-07-29 | Fixed error that occured for new resources in check_admin...* wqflask/utility/authentication_tools.py: the code forgot to get
resource_info when a resource wasn't in Redis yet, causing an error when
it was referenced, so I added a line getting the resource info (and also
a couple comments for other lines related to authentication)
| zsloan |
2020-07-25 | The variable is never defined, so let's default to "none" | Pjotr Prins |
2020-07-22 | It should add new resources to Redis automatically now | zsloan |
2020-06-24 | Temporary partial fix to issue of resources without info; need to add somethi... | zsloan |
2020-06-20 | Fixed ports for proxy (though I need to add the port to global variables) and... | zsloan |
2020-06-20 | Added some admin functionality and fixed issue with temp traits | zsloan |
2020-06-17 | A user's id is now set as a parameter if it doesn't already existauthentication_test | zsloan |
2020-06-17 | Adding all the authentication stuff | zsloan |
2020-06-05 | Commiting other current group/resource management code, plus the new files | zsloan |