Skip to content

VuedaHistoryMiddleware

Overview

Record stable request metadata on the pghistory context.

pghistory's own middleware records the acting user and the request path. VUEDA adds the request method, which is what separates a create from an update or a delete when one action writes to several tables, and the action kind request, which separates a request from a task or a command once the events are read back.

This decides what VUEDA records, not what the history API exposes.

get_context

Signature

get_context(self, request)

Parameters

NameTypeRequiredDescription
selfyes
requestyes

Source

server/vueda/history/middleware.py:19

Source

server/vueda/history/middleware.py:8

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2