Skip to content

Commit

Permalink
Revert "feat(releases): allow resolving in an upcoming release ui (#7…
Browse files Browse the repository at this point in the history
…6377)"

This reverts commit f88a05d.

Co-authored-by: roggenkemper <46740234+roggenkemper@users.noreply.github.com>
  • Loading branch information
getsentry-bot and roggenkemper committed Sep 3, 2024
1 parent abc5627 commit ceb1d49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion static/app/components/actions/resolve.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ describe('ResolveActions', function () {
});

it('does render in upcoming release', async function () {
const organization = OrganizationFixture({});
const organization = OrganizationFixture({
features: ['resolve-in-upcoming-release'],
});
const onUpdate = jest.fn();
MockApiClient.addMockResponse({
url: '/projects/org-slug/project-slug/releases/',
Expand Down
5 changes: 5 additions & 0 deletions static/app/components/actions/resolve.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ function ResolveActions({
});
};

const hasUpcomingRelease = organization.features.includes(
'resolve-in-upcoming-release'
);

const isSemver = latestRelease ? isSemverRelease(latestRelease.version) : false;
const items: MenuItemProps[] = [
{
Expand All @@ -215,6 +219,7 @@ function ResolveActions({
? actionTitle
: t('The next release that is not yet released'),
onAction: () => onActionOrConfirm(handleUpcomingReleaseResolution),
hidden: !hasUpcomingRelease,
},
{
key: 'next-release',
Expand Down

0 comments on commit ceb1d49

Please sign in to comment.