| Age | Commit message (Collapse) | Author |
|
|
|
|
|
The BCRYPT_SALT setting is not used anywhere in GN3 or GN2
|
|
|
|
|
|
This commit has no functional change it implements. It is purely a
aesthetics change to please Frederick.
|
|
Update the database URI parsing to allow setting of extra connection
option on the URI string.
|
|
configure
|
|
gn3.auth
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn3/db/rdf/wiki.py: Delete datetime import. Import sparql_query.
[RIF_CONTEXT]: Delete.
(get_rif_entries_by_symbol): Replace CONSTRUCT with SELECT.
* tests/unit/db/rdf/test_wiki.py (test_get_rif_entries_by_symbol):
Update tests.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/unit/db/rdf/data.py: [LPL_RIF_ENTRIES]: Update "@context".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn3/api/metadata.py: Register "wiki.rif_blueprint".
* gn3/api/metadata_api/wiki.py: Import "get_rif_entries_by_symbol".
[rif_blueprint]: New blueprint.
(get_ncbi_rif_entries): New endpoint: "metadata/rif/<symbol>".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn3/db/rdf/wiki.py: Import datetime.
[RIF_CONTEXT]: New global variable defining the json-ld context for
NCBI rif data.
(get_rif_entries_by_symbol): New function.
* tests/unit/db/rdf/data.py: New file containing expected NCBI test
data.
* tests/unit/db/rdf/test_wiki.py (test_update_wiki_comment): New test
case.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/fixtures/rdf.py: import pathlib.
(rdf_setup): Use pathlib to get the dir name for the tests folder.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/fixtures/rdf.py (rdf_setup): Fix C0301.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
We want to strictly keep secrets in the secret file.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
tests/fixtures/virtuoso.py: New file.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* tests/fixtures/rdf.py: Import config.
(get_sparql_auth_conf): Load GN3 config from GN3_SECRETS and GN3_CONF
if the respective envs are set. Set sane defaults for sparql_conf.
(rdf_setup): Remove "fxtr_app_config".
* tests/unit/db/rdf/test_wiki.py (test_get_wiki_entries_by_symbol): Ditto.
(test_get_comment_history): Ditto.
(test_update_wiki_comment): Ditto.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|
|
|
|
SQL queries fail because we get bytes instead of strings which cannot be
decoded. We decode results from DictCursor to fix this. For RDF, we cast
`?symbol` to a string.
|
|
|
|
|
|
|
|
|
|
Similar issue to commit 11d543eeca08fe0df4bf2be7222234fadb516a51
|
|
Related to 4940195460008192b6ca6269e1fb8c172ada4f17c
|
|
|
|
|
|
Prior to this commit, an assumption is made that the application is
invoked with the root of the repository being the current working
directory. If this assumption is not met, then the system will not
find the appropriate path.
This commit forces the use of an absolute path, which should help
avoid issues with misplaced relative paths.
|
|
|
|
The script now takes the --outdir parameter as the output directory, only using TMPDIR if nothing is passed
"output" in the output directory was also changed to "gn3" to be consistent with recent changes to GN3's code
|
|
This reverts commit f6d9b0cfb842b53e8777e9918549f1ed1ee5892e. Failing
tests because of how we run tests using guix.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
This makes sure that all the test correctly run in CD.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|