Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Merging CustomPartitionLimit & TimePartitionLimit into one component #364

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions src/pages/Stream/Views/Manage/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import classes from '../../styles/Management.module.css';
import { useStreamStore } from '../../providers/StreamProvider';
import _ from 'lodash';
import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
import UpdateTimePartitionLimit from './UpdateTimePartitionLimit';
import UpdateCustomPartitionField from './UpdateCustomPartitionField';
import timeRangeUtils from '@/utils/timeRangeUtils';
import ErrorView from './ErrorView';
import UpdateStreamInfo from './UpdateStreamInfo';
praveen5959 marked this conversation as resolved.
Show resolved Hide resolved

const { formatDateWithTimezone } = timeRangeUtils;

Expand Down Expand Up @@ -76,16 +75,10 @@ const InfoData = (props: { isLoading: boolean }) => {
<Stack gap={0} style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
<InfoItem title="Schema Type" value={staticSchemaFlag} />
<InfoItem title="Time Partition Field" value={timePartition} />
<UpdateTimePartitionLimit
timePartition={timePartition}
currentStream={currentStream ? currentStream : ''}
/>
<UpdateStreamInfo currentStream={currentStream ? currentStream : ''} timePartition={timePartition} />
</Stack>
<Stack gap={0} style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
<UpdateCustomPartitionField
currentStream={currentStream ? currentStream : ''}
timePartition={timePartition}
/>
<UpdateStreamInfo currentStream={currentStream ? currentStream : ''} timePartition={timePartition} />
</Stack>
</Stack>
)}
Expand Down
147 changes: 0 additions & 147 deletions src/pages/Stream/Views/Manage/UpdateCustomPartitionField.tsx

This file was deleted.

138 changes: 0 additions & 138 deletions src/pages/Stream/Views/Manage/UpdateTimePartitionLimit.tsx

This file was deleted.

Loading