Skip to content

Refactor tenant lookup to use slug instead of id #579

Closed

Description

@busbyk

We currently use the tenant id for our multi tenancy functionality (i.e. determining the tenant scoping of the admin panel and for routing in the middleware).

This is mainly due to the fact that the Payload multi tenant plugin defaulted to using a number ID.

We built an Edge Config tenant lookup to make tenant id lookups really fast in our middleware.

Since we're moving off / have moved off of the Payload multi tenant plugin, we could potentially get rid of that entire Edge Config integration and hard code all of the avalanche center slugs.

This would simplify our codebase in many ways but would require updating tenant references in many places and doing thorough regression testing.

Activity

  1. added this to the Start of 25/26 Season milestone on Oct 15, 2025
  2. self-assigned this
    on Jan 12, 2026
  3. busbyk commented on Jan 29, 2026

    @busbyk
    CollaboratorAuthor

    Closed by #897

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions