Skip to content

Allow specifying projects for release deploys #33648

Closed
@BYK

Description

@BYK

Problem Statement

We have a monorepo that houses 4+ projects. They are versioned by the common git SHA so they share the same release id. That said we don't necessarily deploy them all at the same time.

I was trying to create a deploy per each project but seems like the create deploy API endpoint does not support passing individual projects (unlike the create release endpoint).

I'd love to be able to specify which projects the deploy was made for.

Solution Brainstorm

Seems like under the hood, Sentry supports this. Only missing thing is accepting an array of project slugs/ids in the API endpoint and respecting them here:

for project in projects:
ReleaseProjectEnvironment.objects.create_or_update(
release=release,
environment=env,
project=project,
values={"last_deploy_id": deploy.id},
)

Happy to submit a PR if this sounds good to the team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions