Skip to content

Data persistence between requests #7

Closed
@BenjamenMeyer

Description

@BenjamenMeyer

StackInABox is designed to only last for the length of a test. Loaded into StackInAWSGI that likely means that the data in a normal StackInABox model would be destroyed between requests or at a minimum not reliably retrieved. To handle this StackInAWSGI needs to be able to have a type of session that can be created using the admin functionality. The session maintains the StackInABox services for itself, and should keep all the data alive until the session is closed.

Note: Normally the session is the thread in a normal unit test scenario. Here we need to make it part of the WSGI scenario.

  • Session to manage a StackInABox instance
    • create a Session object to manage sessions
    • create a session
    • remove a session
    • keep the session alive between WSGI requests
  • Ability to create a StackInABox instance from scratch when creating a session
    • instantiate a session-specific StackInABox instance
    • instantiate the various StackInABoxServices for the session

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions