Switch to use Action Provider Tools Blueprint #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋 Hi, Globus developer here!
We have some changes the team has been working on to improve Action Provider Tools, in particular to improve the ways in which it interacts with the Globus Auth and Groups services.
As a result, we're removing
add_action_routes_to_blueprint
in favor of only supporting theActionProviderBlueprint
path -- this gives all of us (library maintainers and users) a handle on some specific object or abstraction which the library is providing, and will allow us to expose the coming changes more cleanly.The latest release (0.19.1) still provides
add_action_routes_to_blueprint
, but it will be removed in the next one (probably v0.20.0).I'm suggesting this change to try to help you update, but I wasn't able to run the testsuite in this repo, as it appears to require credentials.
Please let me know if there's more we can do to assist!
'add_action_routes_to_blueprint' is being removed in an upcoming release. The activities which it performed are better encapsulated by 'ActionProviderBlueprint', which is available in all recent versions of Action Provider Tools.
The blueprint provides registration methods which can be used as decorators, but to preserve the semantics of the current application as much as possible, I have refrained from using them as such.
The registration calls are made imperatively in the app factory, similar to how the
add_action_routes_to_blueprint
function behaved.The ActionProviderBlueprint looks up client credentials from app config based on the name of the blueprint, so the client credential names are set appropriately in app config to match.