Skip to content
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

Question about state management #97

Open
isConic opened this issue Sep 24, 2020 · 2 comments
Open

Question about state management #97

isConic opened this issue Sep 24, 2020 · 2 comments

Comments

@isConic
Copy link

isConic commented Sep 24, 2020

I've been looking into the code for both this and the underlying PYLTI Library.

I've run into issues in understanding how state is managed.

When I open the Edx platform. It makes a post request with some information about OAuth and some stuff about LTI to /index .
The backend, upon verifying the OAuth stuff, returns a web-page tailored to my student that is displayed on the Edx platform.

My question is... Let's say 4 users are using this LTI tool simultaneously. When they submit their answers, where does /grade get the information that tells me which student submitted their solution? Is LTI state passed to the add form, then submitted back to the /grade? Or does the pyLTI flask component just magically store user state and disambiguates one user's request from anothers?

@isConic
Copy link
Author

isConic commented Sep 24, 2020

I guess an supporting question might be... does this example actually interface with edx to report grading?

@pdpinch
Copy link
Member

pdpinch commented Sep 24, 2020

I don't think I can answer your question in detail, but we have had folks use this library to develop apps that track learner state and push grades back into edX (and MITx).

It's possible that the example app doesn't demonstrate that type of feature.

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

No branches or pull requests

2 participants