Skip to content

Replace Galaxy interactor galaxy_requests_post with make_post_request from BioBlend#1201

Merged
mvdbeek merged 3 commits intogalaxyproject:masterfrom
simonbray:post-request-fix
Nov 3, 2021
Merged

Replace Galaxy interactor galaxy_requests_post with make_post_request from BioBlend#1201
mvdbeek merged 3 commits intogalaxyproject:masterfrom
simonbray:post-request-fix

Conversation

@simonbray
Copy link
Member

Planemo tests are currently failing here (bgruening/galaxytools#1173) with

planemo test --galaxy_python_version 3.7 --no_conda_auto_init --galaxy_source https://github.com/galaxyproject/galaxy --galaxy_branch release_21.05 /tmp/tmp.Uk4Nu5LXyy
Problem loading command test, exception cannot import name 'galaxy_requests_post' from 'galaxy.tool_util.verify.interactor' (/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/galaxy/tool_util/verify/interactor.py)

It seems to be because the galaxy_requests_post method was removed in Galaxy. Hopefully replacing it with BioBlend's make_post_request method will fix it.

Copy link
Member

@mvdbeek mvdbeek left a comment

Choose a reason for hiding this comment

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

That seems like a good idea. mvdbeek/galaxy@b7ab45d#diff-06835be1d1943ebce8373e2cd1f8e86c7b7813b720398850c978b734dd29e2da is where galaxy_requests_post was dropped.

@davelopez
Copy link

Wow, sorry I didn't find any other reference in the codebase and didn't consider this method may be used in external projects.

Thanks for fixing it @simonbray!

@simonbray
Copy link
Member Author

@davelopez no worries, I think it isn't realistic to check all dependent projects every time you refactor some code.

@mvdbeek
Copy link
Member

mvdbeek commented Nov 3, 2021

We should IMO pin requirements for releases of planemo. That is a common technique when you release applications (as opposed to libraries, where you should not pin). I think planemo's use as a library is not that common, so I don't think there are many downsides.

@martenson
Copy link
Member

martenson commented Nov 3, 2021

thanks for fixing this @simonbray !

@davelopez when dropping an exposed method you can do sanity check by entering something like this in a github search: org:galaxyproject galaxy_requests_post

edit: that said, the method had this as docs 🤣

This is admittedly kind of hacky, so the interface may change frequently - be
careful on reuse.

martenson added a commit to RECETOX/galaxytools that referenced this pull request Nov 3, 2021
@mvdbeek mvdbeek merged commit 2e74467 into galaxyproject:master Nov 3, 2021
@mvdbeek
Copy link
Member

mvdbeek commented Nov 3, 2021

Thanks everyone, I'll cut a new release in the 0.74 version range. If/when we merge #1203 we should probably jump to 0.75

@simonbray simonbray deleted the post-request-fix branch November 3, 2021 12:08
@mvdbeek
Copy link
Member

mvdbeek commented Nov 3, 2021

New release is on PyPI: https://pypi.org/project/planemo/0.74.9/

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 this pull request may close these issues.

4 participants