Age | Commit message (Expand) | Author |
2021-04-23 | Apply PEP-8 | BonfaceKilz |
2021-04-23 | Move looped sql query into one statement in "get_species_groups"...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.
| BonfaceKilz |
2021-04-23 | Remove stale comments | BonfaceKilz |
2021-03-16 | Fixed encoding in load_json_from_redis to account for the first that column v... | zsloan |
2021-03-16 | Fixed encoding to make get_user_groups work properly, since the user IDs for ... | zsloan |
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 deal... | zsloan |
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 missi... | zsloan |
2020-11-02 | Created function for encoding the column value as bytes when fetching from th......* 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
| zsloan |
2020-10-28 | Use latin-1 encoding when converting hmac secret to bytes...* 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.
| BonfaceKilz |
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...Same as:
https://github.com/genenetwork/genenetwork2/pull/422/commits/46443ec8d2cdfd7c60358a889d90a90e4f7daaf4
| BonfaceKilz |
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-17 | Apply pep8...* wqflask/utility/hmac.py: Apply pep8 and fix typo.
| 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 | Fixed issue that was causing updating resource default privileges to not...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).
| zsloan |
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-27 | Replace string arguments to "hmac.new" with bytearray...See: <https://stackoverflow.com/questions/31848293/python3-and-hmac-how-to-handle-string-not-being-binary>
| BonfaceKilz |
2020-08-27 | Add global method to convert binary string to plain string...* 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.
| BonfaceKilz |
2020-08-27 | Replace "string.split" & "string.join" with python's inbuilt methods | 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-26 | Replace calls to "basestring with "str""...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-basestring>
| BonfaceKilz |
2020-08-26 | Update corestats import...* wqflask/utility/Plot.py: import corestats from the utility module.
| BonfaceKilz |
2020-08-26 | Merge branch 'testing' into build/python3-migration | BonfaceKilz |
2020-08-24 | Remove unused imports...* wqflask/utility/Plot.py: Remove unused imports like "numarray". "numarray" is
does not have py3 support so it's important to remove references to it.
| BonfaceKilz |
2020-08-24 | The function draw_rotated_text_ was writing an image to /tmp, which GN2...user apparently doesn't have access to, so I replaced it with a link to
the dynamically set TEMPDIR
* wqflask/utility/pillow_utils.py - Replaced "/tmp/" in image location
with TEMPDIR
| zsloan |
2020-08-23 | Use Python3 string methods...* wqflask/utility/webqtlUtil.py (genRandStr): Replace "string.letters" with
"string.ascii_letters".
| BonfaceKilz |
2020-08-20 | Handle module renames in the standard library...Run:
```
2to3-3.8 -f imports -w . && \
2to3-3.8 -f imports2 -w .
```
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-imports> and
<https://docs.python.org/2/library/2to3.html#2to3fixer-imports2>
| BonfaceKilz |
2020-08-19 | Remove extra whitespace(or add it) from comma separated items...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
| 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-08-19 | Rename xrange() to range() and wrap existing range() calls with list...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-xrange>
| BonfaceKilz |
2020-08-19 | Wrap `raise` statements in parenthesis...Run `2to3-3.8 -f raise -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise>
| BonfaceKilz |
2020-08-19 | Convert the old not-equal syntax, <>, to !=...Run `2to3-3.8 -f ne -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-ne>
| BonfaceKilz |
2020-08-19 | Fix dictionary iteration methods...Run `2to3-3.8 -f dict -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and
<https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list>
| BonfaceKilz |
2020-08-19 | Remove erroneous `if .. else` branch...* wqflask/utility/svg.py [roct, ellipse, SVGelement]: Raise only a single value error
if either height or width is not defined. Fixes parsing error when running
`2to3-3.8 -f apply -w .`
| BonfaceKilz |
2020-08-19 | Wrap `map()` in a `list` call...Run `2to3-3.8 -f map -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map>
| BonfaceKilz |
2020-08-18 | Apply pep8...* wqflask/utility/svg.py: Apply pep8 to fix indentation error when running
`2to3-3.8 -w .`:
````
RefactoringTool: Can't parse ./wqflask/utility/svg.py: IndentationError: unindent does not match any outer indentation level (<tokenize>, line 403)
````
| BonfaceKilz |
2020-08-18 | Replace "<>" with "!="...* wqflask/utility/svg.py: Use "!=". The operator, "<>" is removed in Python3
| BonfaceKilz |
2020-08-18 | Wrap print statements in parentheses | BonfaceKilz |
2020-08-18 | Fix malformed docstring...* wqflask/utility/Plot.py: Update docstring.
| BonfaceKilz |
2020-08-08 | Add draw_open_polygon() utility...* wqflask/utility/pillow_utils.py: New method.
| Muriithi Frederick Muriuki |