Age | Commit message (Collapse) | Author |
|
* gn2/wqflask/templates/base.html: Replace TABS with white-space.
Fix hanging html tags. Format file.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
|
|
Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com>
|
|
Co-authored-by: Alexander Kabui <Alexanderkabua@gmail.com>
|
|
|
|
This reverts commit dde660453fc402b020178db41d136334a1b91b89.
|
|
This reverts commit 77af7c016749998d62b769bdd24069f511925ef9.
|
|
|
|
gn2.wqflask.resource_manager module does not have a `requests`
variable or function defined, leading to errors in the test.
|
|
This reverts commit 4539ef0297bb4b8c2954f250697c237069a16d64.
This commit was ignoring the historical context that led to the
changes in the schema of the `CaseAttribute*` tables, and leads to
errors when the database schema is updated.
|
|
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>
|
|
* gn2/wqflask/oauth2/client.py (no_token_post): "uri" does not exist.
Replace it with "uri_path."
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/oauth2/checks.py (require_oauth2): New function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Importing "user_logged_in" in the checks module just to export adds a
layer of indirection and makes the code hard to read.
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>
|
|
* gn2/wqflask/edit.py: Replace "login_required" import with
"require_oauth2".
(metadata_edit): Replace "login_required" with "require_oauth2".
(edit): Ditto.
(save): Ditto.
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>
|
|
* gn2/wqflask/edit.py: Import session_info.
(save_dataset_metadata): Add author as an argument. Reset repo and
pull then write changes before committing. Split strings before
__run_cmd is called.
(metadata_edit): Rename "metadata" -> "__metadata".
(save): Save the output to the correct path. Pass author to
"save_dataset_metadata".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
See:
<https://stackoverflow.com/questions/52019920/python3-sanitizing-user-input-passed-to-shell-as-parameter>
for more information.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
This is required to be able to pass __run_cmd through a pipeline.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/edit.py: Import urljoin.
(metadata_edit): Replace Path with urljoin.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/templates/metadata/dataset.html: Move this ...
* gn2/wqflask/templates/dataset.html: ... here.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/views.py (search_for_dataset): Delete.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/edit.py: Move GN3_LOCAL_URL ...
(metadata_edit): ... here.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/oauth2/groups.py: Remove unused "raise_unimplemented"
import.
* gn2/wqflask/oauth2/request_utils.py (raise_unimplemented): Delete function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/edit.py (save_dataset_metadata): New function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/templates/metadata/editor.html: Add "classified-under"
form element.
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>
|
|
* gn2/wqflask/decorators.py (required_access): Rename this to ...
(required_trait_access): ... this.
* gn2/wqflask/metadata_edits.py: Ditto.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/views.py (display_diffs_admin): Delete.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/decorators.py (edit_access_required): Delete.
* gn2/wqflask/resource_manager.py: Delete references to
"edit_access_required".
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
* gn2/wqflask/__init__.py: Register blueprint endpoint for metadata
edits.
* gn2/wqflask/edit.py (metadata_edit): New function.
(save): Ditto.
* gn2/wqflask/templates/metadata/dataset.html: New template.
* gn2/wqflask/templates/metadata/editor.html: New template.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
|
|
|