From de90a2c5de45c1f9a39807e2a5f9db60a1964187 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Fri, 26 Jul 2024 20:01:23 +0000 Subject: [PATCH] initial report on keeping association with the remote --- ...xt_remote_after_all_urls_unregistered.mdwn | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/bugs/keeps_ext_remote_after_all_urls_unregistered.mdwn diff --git a/doc/bugs/keeps_ext_remote_after_all_urls_unregistered.mdwn b/doc/bugs/keeps_ext_remote_after_all_urls_unregistered.mdwn new file mode 100644 index 0000000000..35448a9709 --- /dev/null +++ b/doc/bugs/keeps_ext_remote_after_all_urls_unregistered.mdwn @@ -0,0 +1,28 @@ +### Please describe the problem. + +We used a script calling out to `reregisterurl` to move URLs from datalad to regular web remote: [https://github.com/dandi/dandisets/pull/387/files](https://github.com/dandi/dandisets/pull/387/files). + +Even after removing all urls, key is associated with the remote, and thus `annex find`able: + +```shell +dandi@drogon:/mnt/backup/dandi/dandisets/000897$ git annex whereis sub-amadeus/sub-amadeus_ses-08152019_behavior+ecephys.nwb +whereis sub-amadeus/sub-amadeus_ses-08152019_behavior+ecephys.nwb (2 copies) + 00000000-0000-0000-0000-000000000001 -- web + cf13d535-b47c-5df6-8590-0793cb08a90a -- datalad + + web: https://api.dandiarchive.org/api/assets/d3a96834-ee80-4afa-b985-82066817272c/download/ + web: https://dandiarchive.s3.amazonaws.com/blobs/a6e/c32/a6ec3274-ceeb-4d21-b091-1e991a512c7b?versionId=Vt7RKy0cgO1L82S7tqIQRQgNHBBZVtVh +ok + +``` + +I think that git-annex should have completely dissociated that remote from the key whenever the very last url was reregistered. + + +### What version of git-annex are you using? On what operating system? + + +10.20240430-1~ndall+1 + +[[!meta author=yoh]] +[[!tag projects/dandi]]