-
Notifications
You must be signed in to change notification settings - Fork 2
Add support for ATRIS #59
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
Conversation
Per the blessing from @matrss we are cleared to go ahead to index ATRIS. Moreover, there is apparently no need for the token, so let's make it work anonymously for ATRIS (if no token, do not authenticate). #58 was just merged |
8788c1e
to
cbb9320
Compare
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 hope that code could be generalized a little more to avoid duplication and CLI options minting for each host.
src/find_datalad_repos/diff.py
Outdated
@@ -76,6 +77,9 @@ def main( | |||
for hubr in to_record.hub_datalad_org: | |||
if hubr.id not in old_hub_repos: | |||
new_record.hub_datalad_org.append(hubr) | |||
for atrisr in to_record.atris: | |||
if atrisr.id not in old_atris_repos: | |||
new_record.atris.append(atrisr) |
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.
could data structure of RepoRecord and code here be made more generic and just be done "per each RepoHost" and avoid code duplication for each possible repo?
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.
a003ea8 is the best I can come up with without upsetting mypy.
c12b307
to
9719a91
Compare
@yarikoptic So, can this PR be merged now? |
yes, good from my perspective, THANK YOU! |
For #47.
This PR includes updates to
datalad-repos.json
and the READMEs for ATRIS. Fetching all of the repositories took 26 seconds.