Skip to content

Create data model for User/Organization settings #19269

@miketheman

Description

@miketheman

Users currently do not have much capabilities to express desired behaviors on PyPI.

This could further expand into Organization settings to further create some more control for Organization Admins.

A User use case is setting a language preference, which could control both the web UI (currently a cookie), and which language emails are sent to a user - see #7583 for more context.

Another use case could be "disallow creating/using API Tokens" - similar to #14300

Implementation could be either a JSONB (flexible) column on user/org models, or having another table with a one-to-many table association. I'm leaning towards exploring the JSONB approach first over another table and join.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions