Skip to content

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

Merged
merged 7 commits into from
Feb 24, 2025
Merged

Add support for ATRIS #59

merged 7 commits into from
Feb 24, 2025

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Feb 19, 2025

For #47.

This PR includes updates to datalad-repos.json and the READMEs for ATRIS. Fetching all of the repositories took 26 seconds.

@jwodder jwodder added host:atris blocked Cannot be implemented until something else happens labels Feb 19, 2025
@yarikoptic
Copy link
Member

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

@yarikoptic yarikoptic removed the blocked Cannot be implemented until something else happens label Feb 21, 2025
@jwodder jwodder force-pushed the gh-47b branch 2 times, most recently from 8788c1e to cbb9320 Compare February 21, 2025 13:45
@jwodder jwodder marked this pull request as ready for review February 21, 2025 13:55
@jwodder jwodder requested a review from yarikoptic February 21, 2025 13:55
Copy link
Member

@yarikoptic yarikoptic left a 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.

@@ -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)
Copy link
Member

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?

Copy link
Member Author

@jwodder jwodder Feb 24, 2025

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.

@jwodder
Copy link
Member Author

jwodder commented Feb 24, 2025

@yarikoptic So, can this PR be merged now?

@yarikoptic
Copy link
Member

yes, good from my perspective, THANK YOU!

@yarikoptic yarikoptic merged commit 8e18ef6 into master Feb 24, 2025
2 checks passed
@yarikoptic yarikoptic deleted the gh-47b branch February 24, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants