Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-08-20 | startup_config.py: Add DebugToobarExtension for wsgi DEBUG mode | BonfaceKilz | |
* wqflask/utility/startup_config.py (app_config): Add DebugToolbarExtension | |||
2021-07-12 | Encode user_id as bytestring if not already bytestring to account for some ↵ | zsloan | |
user_ids being stored as different encoding | |||
2021-06-17 | remove print statements | Alexander Kabui | |
2021-06-15 | Fix issue where column values were used as str instead of bytes; pretty sure ↵ | zsloan | |
this was introduced by Python3 | |||
2021-05-08 | utility: startup_config: Use python3 f-strings | BonfaceKilz | |
2021-05-08 | utility: startup_config: Break up long import statement | BonfaceKilz | |
2021-05-08 | utility: startup_config: Remove dead comments | BonfaceKilz | |
2021-05-07 | Fixed issue that caused /submit_trait page to not load properly | zsloan | |
2021-04-30 | autopep8: Run autopep8 100 times with target rules | BonfaceKilz | |
Rules used are: E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,E242, E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306, E401,E501,E70,E701,W291,W292,W293,W391,W504,E101,E11,E121, E122,E123,E124,E125,E126,E127,E128,E129,E131,E133 | |||
2021-04-30 | autopep8: Fix E121,E122,E123,EI24,E125,E126,E127,E128,E129,E131,E133 | BonfaceKilz | |
2021-04-30 | autopep8: Fix E101, E11 | BonfaceKilz | |
2021-04-30 | autopep8: Fix W504 | BonfaceKilz | |
2021-04-30 | autopep8: Fix W291, W292, W293, W391 | BonfaceKilz | |
2021-04-30 | autopep8: Fix E70 and E701 | BonfaceKilz | |
2021-04-30 | autopep8: Fix E501 | BonfaceKilz | |
2021-04-30 | autopep8: Fix E301,E302,E303,E304,E305,E306 | BonfaceKilz | |
2021-04-30 | autopep8: Fix E20-E27 | BonfaceKilz | |
Run: python -m autopep8 --in-place --recrusive ./ --select\ E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,\ E242,E251,E252,E26,E265,E266,E27 -p 3 | |||
2021-04-29 | Merge branch 'testing' into Feature/Add-upload-data-forms | BonfaceKilz | |
2021-04-29 | Run `sed -i 's/(object)//g'` | BonfaceKilz | |
See: https://is.gd/pL7IJF Ran: find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/(object)//g' | |||
2021-04-23 | Apply PEP-8 | BonfaceKilz | |
2021-04-23 | Move looped sql query into one statement in "get_species_groups" | BonfaceKilz | |
It's in-efficient to have a sql query executed in a loop. As data grows, the query becomes slower. It's better to let sql handle such queries. | |||
2021-04-23 | Remove stale comments | BonfaceKilz | |
2021-04-19 | Specify only getting the first two items after splitting the trait/dataset ↵ | zsloan | |
input string | |||
2021-03-16 | Fixed 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-16 | Fixed encoding to make get_user_groups work properly, since the user IDs for ↵ | zsloan | |
groups in Redis are stored as strings | |||
2021-03-16 | Removed unnecessary encoding of user_id from authentication_tools.py | zsloan | |
2021-02-18 | Remove the deocde since it was throwing an error | zsloan | |
2021-02-18 | Changed authentication_tools.py to account for encoding str as bytes and ↵ | zsloan | |
dealing with the permissions response either being a list or not a list (this should be temporary until I figure out what is going on here) | |||
2021-02-17 | Fixed error caused by user IDs being encoded as bytes | zsloan | |
2021-01-06 | replace vars with vars_obj which is a function name in python | Alexanderkabui | |
2020-12-18 | Added redirect_uri to the ORCID_AUTH_URL since it wasn't working due to ↵ | zsloan | |
missing this parameter | |||
2020-11-02 | Created 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-10-28 | Use latin-1 encoding when converting hmac secret to bytes | BonfaceKilz | |
* wqflask/utility/hmac.py (hmac_creation): Use latin-1 when serializing the hmac secret. This ensures that the behaviour of *verify_cookie* remains the same as in the python2 tip. | |||
2020-09-26 | Merge branch 'testing' into build/python3-migration | BonfaceKilz | |
2020-09-18 | Apply pep8 formatting | BonfaceKilz | |
2020-09-17 | Replace string arguments to "hmac.new" with bytearray | BonfaceKilz | |
Same as: https://github.com/genenetwork/genenetwork2/pull/422/commits/46443ec8d2cdfd7c60358a889d90a90e4f7daaf4 | |||
2020-09-17 | Apply pep8 | BonfaceKilz | |
* wqflask/base/trait.py: Apply pep8. * wqflask/utility/authentication_tools.py: Ditto. | |||
2020-09-17 | Merge branch 'testing' into build/python3-migration | BonfaceKilz | |
2020-09-17 | Apply pep8 | BonfaceKilz | |
* wqflask/utility/hmac.py: Apply pep8 and fix typo. | |||
2020-09-16 | Apply pep8 | BonfaceKilz | |
* wqflask/utility/authentication_tools.py: Apply pep8 formatting to file. | |||
2020-09-16 | Remove unnecessary if branch | BonfaceKilz | |
* wqflask/utility/authentication_tools.py (check_resource_availability): Combine if statements into one boolean check in one if branch. | |||
2020-08-31 | Remove typo at beginning of line | BonfaceKilz | |
* wqflask/utility/authentication_tools.py: Remove accidental char at beginning of line. | |||
2020-08-31 | Fixed issue that was causing updating resource default privileges to not | zsloan | |
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-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 | zsloan | |
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 | |||
2020-08-27 | Add check for empty group_code when adding a new resource | BonfaceKilz | |
* 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)` | |||
2020-08-27 | Replace string arguments to "hmac.new" with bytearray | BonfaceKilz | |
See: <https://stackoverflow.com/questions/31848293/python3-and-hmac-how-to-handle-string-not-being-binary> | |||
2020-08-27 | Add global method to convert binary string to plain string | BonfaceKilz | |
* wqflask/utility/db_tools.py: escape_string returns a binary string which introduces a bug when composing sql query string. The escaped strings have to be converted to plain text. | |||
2020-08-27 | Replace "string.split" & "string.join" with python's inbuilt methods | BonfaceKilz | |
2020-08-26 | Remove "from __future__ import new_feature" statements | BonfaceKilz | |
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-future> |