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

Make dataset-lookup behavior of credentials identical to download #256

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

mih
Copy link
Member

@mih mih commented Feb 23, 2023

When called with dataset=None, credentials() would auto-locate
a dataset containing CWD (and use its configuration), whereas
download() would use the global configuration in this case.

This change makes the behavior uniform and chooses what download()
did as the model behavior.

This uniformatization is meaningful on its own.

However, due to datalad/datalad#7299 it is
also a necessity, because otherwise credentials deposited by
download() remain invisible to credentials() -- which is the
superficial trigger for #249

Closes #249

@mih mih force-pushed the explore-249 branch 11 times, most recently from 7ebfe10 to 0b48cae Compare February 23, 2023 12:00
When called with `dataset=None`, `credentials()` would auto-locate
a dataset containing CWD (and use its configuration), whereas
`download()` would use the global configuration in this case.

This change makes the behavior uniform and chooses what `download()`
did as the model behavior.

This uniformatization is meaningful on its own.

However, due to datalad/datalad#7299 it is
also a necessity, because otherwise credentials deposited by
`download()` remain invisible to `credentials()` -- which is the
superficial trigger for datalad#249

Closes datalad#249
@mih mih changed the title Figure out #249 Make dataset-lookup behavior of credentials identical to download Feb 23, 2023
@mih mih marked this pull request as ready for review February 23, 2023 12:47
@mih
Copy link
Member Author

mih commented Feb 23, 2023

Still failing in a myriad of way -- BUT NOT A SINGLE ONE IS #249 !!!

@mih mih merged commit ef39a7a into datalad:main Feb 23, 2023
@mih mih deleted the explore-249 branch February 23, 2023 13:37
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 this pull request may close these issues.

Credential type not saved in test
1 participant