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

merge channeldata from all urls #3611

Merged
merged 1 commit into from Jul 18, 2019
Merged

merge channeldata from all urls #3611

merged 1 commit into from Jul 18, 2019

Conversation

jjhelmus
Copy link
Contributor

Merge channeldata from all urls associated with a channel. Previously
only the channeldata from the last url examined was returned.

closes #3610

Merge channeldata from all urls associated with a channel. Previously
only the channeldata from the last url examined was returned.

closes conda#3610
merge_or_update_dict(channeldata, data)
channeldata_cache[channel_url] = channeldata
new_channeldata = {}
merge_or_update_dict(data, new_channeldata)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is key, the order is switched so that the collection of all url data comes first (the base argument to merge_or_update) and the channeldata for the URL in the current iteration second.

Copy link
Contributor

@msarahan msarahan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to add a test, but this is fine for now. Thanks!

@github-actions
Copy link

Hi there, thank you for your contribution!

This pull request has been automatically locked because it has not had recent activity after being closed.

Please open a new issue or pull request if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 25, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run_exports from channeldata.json not always applied
2 participants