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

Exploration on the implementation of remove #183

Closed
mih opened this issue Feb 28, 2023 · 2 comments · Fixed by #207
Closed

Exploration on the implementation of remove #183

mih opened this issue Feb 28, 2023 · 2 comments · Fixed by #207

Comments

@mih
Copy link
Member

mih commented Feb 28, 2023

Maybe this can provide insight into an RF strategy.

It comes in two flavors

    def remove(self, key):
        remote_file = Path(key)
        self._remove_file(key, remote_file)

    def removeexport(self, key, remote_file):
        remote_file = mangle_directory_names(remote_file)
        self._remove_file(key, remote_file)

So it is really just _remove_file(), called with two different values for remote_file.

Strangely, that parameter is not used inside the method, except for getting the ID of DATALAD_ANNEX_SPECIAL_KEYS (a special casing that I believe should not be happening at all: #180).

So its seems the implementation ignores what git-annex knows about the remote-file location. This is likely due to the impossibility of performing reliable lookup-file-by-path actions on dataverse.

@mih
Copy link
Member Author

mih commented Mar 1, 2023

With #184 the only usage of remote_file would be gone.

@mih
Copy link
Member Author

mih commented Mar 6, 2023

mih#1 brought more info on the side-effects of _remove_file()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant