Skip to content

Datasette --get --actor option #2153

@simonw

Description

@simonw

I experimented with a prototype of this here:

Which lets me run requests as if they belonged to a specific actor like this:

datasette fixtures.db --get '/fixtures/facetable.json' --actor '{
    "_r": {
        "r": {
            "fixtures": {
                "facetable": [
                    "vt"
                ]
            }
        }
    },
    "a": "user"
}'

Really useful for testing actors an _r options. Is this worth adding as a feature?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions