Skip to content

Commit

Permalink
fix(release): remove releaseplan strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinandan13jan committed Jun 21, 2024
1 parent 70bd317 commit cb49ba5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
export const releasesPlanAdmissionTableColumnClasses = {
name: 'pf-m-width-20 wrap-column',
application: 'pf-m-width-20',
application: 'pf-m-width-30',
source: 'pf-m-width-20',
releaseStrategy: 'pf-m-width-20',
autoRelease: 'pf-m-width-10',
autoRelease: 'pf-m-width-20',
kebab: 'pf-c-table__action',
};

Expand All @@ -21,10 +20,6 @@ const ReleasePlanAdmissionListHeader = () => {
title: 'Source Workspace',
props: { className: releasesPlanAdmissionTableColumnClasses.source },
},
{
title: 'Release Strategy',
props: { className: releasesPlanAdmissionTableColumnClasses.releaseStrategy },
},
{
title: 'Auto release',
props: { className: releasesPlanAdmissionTableColumnClasses.autoRelease },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ const ReleasePlanAdmissionListRow: React.FC<
{obj.metadata.name}
</TableData>
<TableData className={releasesPlanAdmissionTableColumnClasses.application}>
{obj.spec.application}
{obj.spec.application ?? '-'}
</TableData>
<TableData className={releasesPlanAdmissionTableColumnClasses.source}>
{obj.spec.origin}
</TableData>
<TableData className={releasesPlanAdmissionTableColumnClasses.releaseStrategy}>
{obj.spec.releaseStrategy}
{obj.spec.origin ?? '-'}
</TableData>
<TableData className={releasesPlanAdmissionTableColumnClasses.autoRelease}>
{capitalize(obj.metadata.labels?.['release.appstudio.openshift.io/auto-release'] ?? '-')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('ReleasePlanAdmissionListRow', () => {
expect(cells[0].innerHTML).toBe(mockReleasePlanAdmission.metadata.name);
expect(cells[1].innerHTML).toBe('my-app-1');
expect(cells[2].innerHTML).toBe('sbudhwar-1-tenant');
expect(cells[3].innerHTML).toBe('test-rs');
expect(cells[4].innerHTML).toBe('True');
expect(cells[3].innerHTML).toBe('True');
});
});
4 changes: 0 additions & 4 deletions src/components/ReleaseService/ReleaseService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useLocalStorage } from '../../hooks/useLocalStorage';
import { useWorkspaceInfo } from '../../utils/workspace-context-utils';
import ReleasePlanListView from './ReleasePlan/ReleasePlanListView';
import ReleasePlanAdmissionListView from './ReleasePlanAdmission/ReleasePlanAdmissionListView';
import ReleaseStrategyListView from './ReleaseStrategy/ReleaseStrategyListView';

const RELEASE_SERVICE_TAB_KEY = 'release-service-tab-key';

Expand Down Expand Up @@ -51,9 +50,6 @@ export const ReleaseService: React.FC<React.PropsWithChildren<unknown>> = () =>
>
<ReleasePlanAdmissionListView />
</Tab>
<Tab key="release-strategy" eventKey="release-strategy" title="Release Strategy">
<ReleaseStrategyListView />
</Tab>
</Tabs>
);
};

0 comments on commit cb49ba5

Please sign in to comment.