Age | Commit message (Collapse) | Author |
|
|
|
Authentication should be handled by the auth server (gn-auth) and thus, this
commit removes code handling user authentication from the GN3 system.
|
|
|
|
Make the `base_dir` argument mandatory to force it to be passed in from the
point the function is called.
|
|
The default settings in `gn3.settings` are meant to be overridden thus the
code should not be importing the setting from there, rather, the code should
get its configurations settings from `flask.current_app.config`.
|
|
|
|
To avoid reliance of `flask.current_app.config` or on `gn3.settings` modules
globally, this commit passes in the appropriate configurations as arguments to
the relevant functions.
|
|
|
|
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* setup_commands/run_tests.py: Delete sys.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* .pylintrc: Add VCS and migrations to ignore and ignore-paths respectively.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn3/auth/authentication/oauth2/models/oauth2token.py
(introspect_token, check_permission): Delete "pylint:
disable=[no-self-use]". R0022: Useless option value for 'disable',
'no-self-use' was moved to an optional extension, see
https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.
* gn3/auth/authentication/oauth2/grants/authorisation_code_grant.py
(delete_authorization_code): Ditto.
* tests/unit/test_heatmaps.py (test_cluster_traits):
Delete "pylint: disable=R0201". R0022: Useless option value for
'disable', 'no-self-use' was moved to an optional extension, see
https://pylint.pycqa.org/en/latest/whatsnew/2/2.14/summary.html#removed-checkers.
* tests/unit/computations/test_partial_correlations.py
(test_tissue_correlation): Ditto.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/unit/test_file_utils.py: Delete gn3.cache_ipfs_file
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/unit/test_file_utils.py (test_cache_ipfs_file_cache_hit,
test_cache_ipfs_file_cache_miss): Delete.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn3/db/sample_data.py (update_sample_data, delete_sample_data,
insert_sample_data): Remove type hints for "none_case_attrs".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Currently there's a lot of duplicated code, so I need to ask how best to simplify it later
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assay resources, and change their naming accordingly
|
|
The authentication/authorisation stuff is being moved to a separate
repository. This commit removes the documentation for how to run migrations
from this repository since it has been moved over to the new repository.
|
|
|
|
|
|
|
|
Add a deprecation notice to discourage other devs from using the deprecated
`update` function.
|
|
Remove the object-relation-mapping dependent `insert` function to prevent it
being used in the code down the line.
|
|
Remove Object-Relational Mapping dependent function, `fetchall` and `fetchone`
so as to prevent theirs use in the code moving forward.
|
|
Temporary traits are not saved to the database, and have no attached
resource (at this time). As such, make them all simply public-read to enable
access for users.
This might change after more information on usage of temporary traits is
collected and considered.
|
|
After copying the calls to assign appropriate roles to the admin in the
script, I forgot to update the variable name. This commit fixes that.
|