Skip to content

[catalog-server] Ensure DB partitioning for tests and staging purposes #1351

Open
@justinfagnani

Description

@justinfagnani

We want to be able to partition the Firestore database for running multiple tests agains the same database in parallel, and to potentially support multi-tenancy, different environments in the same GCP project, etc.

To do this we need to ensure that each collection has a unique name per environment. We do this now with a namespace suffix on the packages collection, but this isn't quite good enough because collection group queries could be performed on other collections. So we need to make sure that .collection() and .collectionGroup() are never called directly, but called through utility methods that add the namespace suffix.

We also need to update the design doc to describe this pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    New SiteIssues for the rewrite of the site and catalog.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions