-
Notifications
You must be signed in to change notification settings - Fork 15
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
add version handling #103
base: main
Are you sure you want to change the base?
add version handling #103
Conversation
check for upload and remove not working
@@ -152,6 +161,8 @@ def checkpresent(self, key): | |||
return False | |||
|
|||
def transfer_store(self, key, local_file): | |||
if not self.dataset_version == ':latest': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and line 205 are not working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it seems to work. Only datalad push
is ignoring Exceptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When no exception is raised datalad push
actually works and a DRAFT is created on dataverse.
The log is exactly the same when it fails. It still says it succeeded but nothing changed on dataverse:
publish(ok): . (dataset) [refs/heads/git-annex->origin:refs/heads/git-annex 62d6084..a5c49a4]
publish(ok): . (dataset) [refs/heads/master->origin:refs/heads/master 424537b..37ed9ae]
action summary:
publish (ok: 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work when the files handled by annex are pushed
It does not work when it's a git remote.
Steps to reproduce:
git clone "datalad-annex::?type=external&externaltype=dataverse&encryption=none&url=http://localhost:8080/&doi=doi:10.5072/FK2/JSUZ6P" directory
cp filexy directory ``cd directory
datalad save && datalad push --to origin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that is misleading, because you pushed that before, right? Hence, git-annex knows the file is there already and doesn't even try to TRANSFER-STORE. Needs to be fresh and with no pushed content yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify: If you look and the results, it's only two: one for each branch pushed. No content pushed whatsoever, and no error reported from annex. Hence this push call didn't even try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that doesn't look right indeed. I'll have a look at it on Monday!
Thanks a ton so far!
Oh and this should be tested on a dataverse with a sibling created. I was only able to test it on dataverse datasets which is either used for the git files or the annex files. Not both |
Just to leave a note: I have resumed development and I am planing to look into this soon. I have also noticed the improper behavior of I have started to RF the code quite a bit, so I am not sure how easy it would be to simply reapply your changes. However, I will make sure to try and credit you nevertheless should I have to implement this in another way. |
check for upload and remove not working