8000 [cleanup] refactor session usage by anthonygego · Pull Request #1102 · INGInious/INGInious · GitHub
[go: up one dir, main page]

Skip to content

[cleanup] refactor session usage#1102

Open
anthonygego wants to merge 4 commits intomainfrom
user_manager1
Open

[cleanup] refactor session usage#1102
anthonygego wants to merge 4 commits intomainfrom
user_manager1

Conversation

@anthonygego
Copy link
Member

This PR aims at doing a first cleanup of the huge UserManager file by relying on Flask session proxy and MongoEngine models.

  • It dissociates the Session and User models and removes the UserManager session wrappers to rely on the Flask session proxy only. Keeping those wrappers in a session controller class would not be very useful.
  • It relies on the new MongoEngine model LTIData to populate the LTI session instead of a simple dictionary.
  • It eases code reading as the code becomes more concise.

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.

1 participant

0