Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ORCID member API for authentication #2728

Merged
merged 9 commits into from
Jul 10, 2024
Prev Previous commit
fix(worker): Prevent access to undefined author variable
  • Loading branch information
nellh committed Jul 9, 2024
commit 33f9ebef8b44566367bb95f8186d85c0142f7b48
4 changes: 3 additions & 1 deletion services/datalad/datalad_service/handlers/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
os.path.join(dataset_path, os.path.relpath(filename, start=upload_path)))]
gevent.sleep()
move_files(upload_path, dataset_path)
if name and email:
author = pygit2.Signature(name, email)
hexsha = git_commit(repo, unlock_files, author).hex
hexsha = git_commit(repo, unlock_files, author).hex

Check warning on line 34 in services/datalad/datalad_service/handlers/upload.py

View check run for this annotation

Codecov / codecov/patch

services/datalad/datalad_service/handlers/upload.py#L32-L34

Added lines #L32 - L34 were not covered by tests
else:
hexsha = git_commit(repo, unlock_files).hex

Check warning on line 36 in services/datalad/datalad_service/handlers/upload.py

View check run for this annotation

Codecov / codecov/patch

services/datalad/datalad_service/handlers/upload.py#L36

Added line #L36 was not covered by tests
update_head(dataset_id, dataset_path, hexsha, cookies)


Expand Down
Loading