• 
      

    Add support for arbitrary extra data in a PageState.

    Review Request #14799 — Created Feb. 5, 2026 and submitted

    Information

    Djblets
    release-5.x

    Reviewers

    This change adds PageState.extra_data, which is an arbitrary
    string-to-Any dictionary that callers can use to store whatever data
    they need. This works well as an alternative to the pattern of trying to
    attach data as an attribute to an HttpRequest, helping keep it nicely
    contained and easier to work with.

    PageState does absolutely nothing with this field other than
    initializing it to an empty dictionary.

    Unit tests pass.

    Made use of this in some in-progress code in Review Board.

    Summary ID
    Add support for arbitrary extra data in a PageState.
    This change adds `PageState.extra_data`, which is an arbitrary string-to-Any dictionary that callers can use to store whatever data they need. This works well as an alternative to the pattern of trying to attach data as an attribute to an `HttpRequest`, helping keep it nicely contained and easier to work with. `PageState` does absolutely nothing with this field other than initializing it to an empty dictionary.
    c884f1af0d52ee43df093ecdea46ae92ef935d61
    maubin
    1. Ship It!
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.x (7ffe424)