Skip to content

Commit

Permalink
feat(releases): allow resolving in an upcoming release ui (#76377)
Browse files Browse the repository at this point in the history
  • Loading branch information
scefali committed Aug 29, 2024
1 parent d87aacd commit f88a05d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions static/app/components/actions/resolve.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@ describe('ResolveActions', function () {
});

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

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

const isSemver = latestRelease ? isSemverRelease(latestRelease.version) : false;
const items: MenuItemProps[] = [
{
Expand All @@ -219,7 +215,6 @@ 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 f88a05d

Please sign in to comment.