aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/redis_tools.py
AgeCommit message (Collapse)Author
2021-04-30autopep8: Fix E501BonfaceKilz
2021-03-16Fixed encoding in load_json_from_redis to account for the first that column ↵zsloan
values are sometimes stored as bytes and sometimes as strings
2021-03-16Fixed encoding to make get_user_groups work properly, since the user IDs for ↵zsloan
groups in Redis are stored as strings
2021-02-18Remove the deocde since it was throwing an errorzsloan
2021-02-17Fixed error caused by user IDs being encoded as byteszsloan
2020-11-02Created function for encoding the column value as bytes when fetching from ↵zsloan
the JSON-formatted string pulled from Redis (since this was needed after the Python 3 switchover) * wqflask/utility/redis_tools.py - Created function load_json_from_redis that encodes the key (column_value) when fetching a value from the JSON pulled from Redis
2020-09-26Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-09-18Apply pep8 formattingBonfaceKilz
2020-09-17Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-08-31Fixed issue that was causing updating resource default privileges to notzsloan
work * wqflask/utility/redis_tools.py - There was an issue where resources wouldn't be updated if they already existed. This is because the code didn't yet account for the "update" tag (that is meant to give the option of preventing updating resources when running the script to enter all resources into Redis). I changed the logic to add a resource if "update" is True or the resource doesn't already exist (so it won't if update is False and the resource exists).
2020-08-26Remove "from __future__ import new_feature" statementsBonfaceKilz
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-future>
2020-07-22It should add new resources to Redis automatically nowzsloan
2020-07-06Fixed some of the logic with how traits are authenticated to avoid situation ↵zsloan
where a trait is authenticated twice
2020-06-24Temporary partial fix to issue of resources without info; need to add ↵zsloan
something that automatically inserts resources with default privileges
2020-06-17A user's id is now set as a parameter if it doesn't already existauthentication_testzsloan
2020-06-17Adding all the authentication stuffzsloan
2020-06-05Commiting other current group/resource management code, plus the new fileszsloan
2020-06-04Really should have split this into many more commits:zsloan
- Now use proxy to pull trait data and hide traits/results that the user doesn't have view permission for - Created a factory method for creating trait ob so it can return None when user doesn't have view permissions (this is why such a large number of files are changed) - Added metadata to permutation export - Added current group management code - Added fixed password verification e-mail code
2020-05-28Added lines calling proxy for publish datasets + added some resource redis ↵zsloan
queries and a missing import for the hmac functions
2020-05-12Added change for F2s in r/qtl and fixed minor issue in save_user in redis_toolszsloan
2020-05-07Committing current progress on group manager + a minor fix in dataset.pyzsloan
2020-05-06Commiting a few minor changes plus returning rqtl_mapping.py to the same as ↵zsloan
on testing branch before merging Danny's changes and testing them
2020-02-12Fixed issue that broke some logins with the new redis user codezsloan
2020-01-23Forgot to commit new file containing Redis functionszsloan