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

Upload endpoint does not trigger index update #590

Closed
simonbohnen opened this issue Feb 8, 2023 · 0 comments · Fixed by #597
Closed

Upload endpoint does not trigger index update #590

simonbohnen opened this issue Feb 8, 2023 · 0 comments · Fixed by #597

Comments

@simonbohnen
Copy link
Collaborator

The /channels/{channel_name}/upload/{filename} endpoint doesn't seem to trigger an index update, like the standard package upload does:

quetz/quetz/main.py

Lines 1335 to 1337 in 6cdf96e

wrapped_bg_task = background_task_wrapper(indexing.update_indexes, logger)
# Background task to update indexes
background_tasks.add_task(wrapped_bg_task, dao, pkgstore, package.channel_name)

Because of that, trying to install an uploaded package (e.g. using mamba) fails as the package cannot be found. This seems to have happened because this endpoint (as opposed to the /channels/{channel_name}/packages/{package_name}/files/ endpoint) is untested.

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