Skip to content

Cache resolved project info after create and init #745

@betegon

Description

@betegon

After sentry project create or sentry init, the resolved project and DSN data isn't saved to the local DB. The next command (e.g. sentry issue list) has to re-scan files for the DSN and hit the API to resolve the project — even though all that info was just known.

Should seed project_cache and dsn_cache the same way resolveFromDsn and detectDsn do on their slow paths, so subsequent commands get cache hits.

Key places where the data is available:

  • createProjectWithDsn in src/lib/api/projects.ts — has orgSlug, project (id/slug/name), DSN
  • createSentryProject in src/lib/init/local-ops.ts — has directory context for dsn_cache keying

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions