-
Notifications
You must be signed in to change notification settings - Fork 7
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
Deployment handling interface #60
Conversation
This looks like a good, flexible approach that will work well for our use case! 👍 |
Thanks for getting this work started Michael. I've been trying to wrap my head around where best to handle the decision to create a I appreciate the extension of the base view to have an extension point to override the response for inactive deployments on a per-project basis. Is there ever a case where we wouldn't want to create an Assuming the answer to that question is "Yes", we'd have to consider whether it's the right solution is to always create a record, or to make it switchable. I'm thinking of a flag on |
Thanks for taking a look @doreilly!
I share your hesitation, but landed in the same spot. I think deployment creation in the
I considered these questions while working on this, and didn't come up with much. Since the platform mints and manages deployments we don't have much of a basis not to record a deployment that is a part of a valid launch from a registered platform. Where my head is at now, I think creating a record of a deployment the first time it is seen (as we do with other launch objects) is probably "more correct" than the current behavior of raising an exception. The primary concern that did cross my mind was that this change may make it more likely that tool could mistakenly proceed with a launch that has an inactive deployment. I've tried to prevent/deter/mitigate this possibility in a few ways:
I also don't think this approach closes the door to adding some kind of swappable |
That all sounds good to me! Thanks @michaelwheeler! |
This is ready for a quick review when you're back @doreilly. |
@doreilly I'll go ahead and merge this, unless you have any changes you'd like to see. |
Looking for feedback on this approach to addressing #26. A few items to call out...
LtiDeployment
.handle_inactive_deployment
method ofLtiLaunchBaseView
. By default a slightly helpful message is returned (better than the previous behavior of raising an exception, I think). This also allows for more sophisticated behaviors, like redirecting to a page where the user could submit a deployment activation request or associate it with a paid license.launch_setup
method. Suggestions for a more appropriate name are welcome. This allows workflows like automatically activating all deployments for a specific registration (or for every registration).