
On 7 Feb 2018, at 23:46, Luis Alfonso Parra wrote:
Is it possible to push a package to a different index from the on_upload hook code?
I'd like to have a pivot index that does some classification and then pushes to the right index.
No, the event handler only has read access to the database. You would either need to trigger an external (micro)service to do that or use http from the hook. The devpiserver_on_upload_sync hook is better for that use case, as it provides you with the URL.
We are currently thinking about replacing devpiserver_on_upload_sync and devpiserver_on_upload with a single new one. As soon as I have written something, I will send a link to an issue with use cases and thoughts for comments.
Regards, Florian Schulze
devpi-dev mailing list devpi-dev@python.org https://mail.python.org/mm3/mailman3/lists/devpi-dev.python.org/ _______________________________________________ devpi-dev mailing list devpi-dev@python.org https://mail.python.org/mm3/mailman3/lists/devpi-dev.python.org/