Skip to content

[LTI Provider] Refactoring to remove the lti_run method - #8647

Merged
ormsbee merged 1 commit into
openedx:masterfrom
mcgachey:lti-view-refactoring
Jul 8, 2015
Merged

[LTI Provider] Refactoring to remove the lti_run method#8647
ormsbee merged 1 commit into
openedx:masterfrom
mcgachey:lti-view-refactoring

Conversation

@mcgachey

Copy link
Copy Markdown
Contributor

This change is a follow-up to the chages in PR #8347, which removed the
edX login page from the workflow for a new user. Where previously we
redirected a user to the login page, PR #8347 instead creates a new user
transparently and logs them in.

The initial reason for splitting the LTI view between lti_launch and
lti_run was so that there was a target for the GET request that
followed the login page. Since we no longer use the login page, we
no longer need the second view. We also don't need to store the LTI
parameters in the session any more, since they are not persisting
between calls. This simplifies the view logic significantly.

The other change here is to fetch the LtiConsumer object early in
the view, and pass it to the SignatureValidator and scoring system.
When the views were split, this required multiple DB hits for the
same data; we're now only fetching it once.

@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @mcgachey! I've created OSPR-670 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams.

Feel free to add as much of the following information to the ticket:

  • supporting documentation
  • edx-code email threads
  • timeline information ('this must be merged by XX date', and why that is)
  • partner information ('this is a course on edx.org')
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will still be done via the Github pull request interface. As a reminder, our process documentation is here.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U needs triage labels Jun 23, 2015
@sarina

sarina commented Jun 23, 2015

Copy link
Copy Markdown
Contributor

Makes sense to me. I'm passing off to Dave to review; please make sure your branch has been rebased since this morning (some failing tests got fixed) and that tests/quality all pass.

@sarina

sarina commented Jun 29, 2015

Copy link
Copy Markdown
Contributor

@mcgachey @ormsbee should this be merged to go out in the Cypress release?

@mcgachey

Copy link
Copy Markdown
Contributor Author

@sarina - it's not essential; if you're trying to reduce churn it could hold off until after the release is cut.

@sarina

sarina commented Jun 29, 2015

Copy link
Copy Markdown
Contributor

Churn is fine :) I'm just trying to make sure we have attention on
everything that needs to go into Cypress early in the week.

On Mon, Jun 29, 2015 at 4:20 PM, Phil McGachey notifications@github.com
wrote:

@sarina https://github.com/sarina - it's not essential; if you're
trying to reduce churn it could hold off until after the release is cut.


Reply to this email directly or view it on GitHub
https://github.com/edx/edx-platform/pull/8647#issuecomment-116829713.

@ormsbee

ormsbee commented Jul 1, 2015

Copy link
Copy Markdown
Contributor

👍 @mcgachey: if this is all set, I'll hit the merge button.

@openedx-webhooks openedx-webhooks added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed awaiting prioritization labels Jul 2, 2015
This change is a follow-up to the chages in PR 8347, which removed the
edX login page from the workflow for a new user. Where previously we
redirected a user to the login page, PR 8347 instead creates a new user
transparently and logs them in.

The initial reason for splitting the LTI view between lti_launch and
lti_run was so that there was a target for the GET request that
followed the login page. Since we no longer use the login page, we
no longer need the second view. We also don't need to store the LTI
parameters in the session any more, since they are not persisting
between calls. This simplifies the view logic significantly.

The other change here is to fetch the LtiConsumer object early in
the view, and pass it to the SignatureValidator and scoring system.
When the views were split, this required multiple DB hits for the
same data; we're now only fetching it once.
@mcgachey
mcgachey force-pushed the lti-view-refactoring branch from 6fd26e2 to 99fbf4d Compare July 8, 2015 13:45
@mcgachey

mcgachey commented Jul 8, 2015

Copy link
Copy Markdown
Contributor Author

@ormsbee: Sorry for the wait (I've been having some devstack issues). I rebased this morning and it all looks good to merge.

ormsbee pushed a commit that referenced this pull request Jul 8, 2015
[LTI Provider] Refactoring to remove the lti_run method
@ormsbee
ormsbee merged commit a27865a into openedx:master Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants