Skip to content

Align JS API between commands that accept multiple projects #2902

@andreiborza

Description

@andreiborza

Problem Statement

Today, only releases.new and releases.uploadSourcemaps support supplying multiple projects via the getProjectFlagsFromOptions helper:

async new(release, options) {
const args = ['releases', 'new', release].concat(helper.getProjectFlagsFromOptions(options));
return this.execute(args, null);
}

const args = ['sourcemaps', 'upload']
.concat(helper.getProjectFlagsFromOptions(options))
.concat(['--release', release]);

Briefly looking over the rust code-base, it seems that more commands support passing multiple projects.

Solution Brainstorm

Align the JS API with the Rust API to allow passing multiple projects to all commands that have a JS counterpart and support passing multiple projects.

We should be able to use the same helper and approach as in the above mentioned apis.

Metadata

Metadata

Assignees

Labels

CLIProduct areaFeatureIssue typev3.0Breaking changes to include in version 3.0.0 of Sentry CLI

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions