Skip to content

Commit

Permalink
RC fixes (#268)
Browse files Browse the repository at this point in the history
* feat: hide retention copies for pg

* chore: change welcome message

* feat: add backupSource

* fix: backup source name

* fix: try new creds
  • Loading branch information
fabio-silva committed May 3, 2024
1 parent f22fd85 commit f0e7c37
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev-fe-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ jobs:
- name: Run integration tests
env:
EVEREST_LOCATION_BUCKET_NAME: '${{ secrets.EVEREST_LOCATION_BUCKET_NAME }}'
EVEREST_LOCATION_ACCESS_KEY: '${{ secrets.EVEREST_LOCATION_ACCESS_KEY }}'
EVEREST_LOCATION_SECRET_KEY: '${{ secrets.EVEREST_LOCATION_SECRET_KEY }}'
EVEREST_LOCATION_REGION: '${{ secrets.EVEREST_LOCATION_REGION }}'
EVEREST_LOCATION_URL: '${{ secrets.EVEREST_LOCATION_URL }}'
EVEREST_LOCATION_BUCKET_NAME: '${{ secrets.BACKUP_LOCATION_BUCKET_NAME }}'
EVEREST_LOCATION_ACCESS_KEY: '${{ secrets.BACKUP_LOCATION_ACCESS_KEY }}'
EVEREST_LOCATION_SECRET_KEY: '${{ secrets.BACKUP_LOCATION_SECRET_KEY }}'
EVEREST_LOCATION_REGION: '${{ secrets.BACKUP_LOCATION_REGION }}'
EVEREST_LOCATION_URL: '${{ secrets.BACKUP_LOCATION_URL }}'
MONITORING_USER: 'admin'
MONITORING_PASSWORD: 'admin'
run: |
Expand Down
22 changes: 13 additions & 9 deletions ui/apps/everest/src/components/schedule-form/schedule-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type ScheduleFormProps = {
storageLocationFetching: boolean;
storageLocationOptions: BackupStorage[];
showTypeRadio: boolean;
hideRetentionCopies?: boolean;
};
export const ScheduleForm = ({
allowScheduleSelection,
Expand All @@ -42,6 +43,7 @@ export const ScheduleForm = ({
storageLocationFetching,
storageLocationOptions,
showTypeRadio,
hideRetentionCopies,
}: ScheduleFormProps) => {
const schedulesNamesList =
(schedules && schedules.map((item) => item?.name)) || [];
Expand Down Expand Up @@ -87,15 +89,17 @@ export const ScheduleForm = ({
enableFillFirst={autoFillLocation}
disabled={disableStorageSelection}
/>
<TextInput
name={ScheduleFormFields.retentionCopies}
textFieldProps={{
type: 'number',
label: Messages.retentionCopies.label,
helperText: Messages.retentionCopies.helperText,
}}
isRequired
/>
{!hideRetentionCopies && (
<TextInput
name={ScheduleFormFields.retentionCopies}
textFieldProps={{
type: 'number',
label: Messages.retentionCopies.label,
helperText: Messages.retentionCopies.helperText,
}}
isRequired
/>
)}
<LabeledContent label={Messages.repeats}>
<TimeSelection showInfoAlert />
</LabeledContent>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const Messages = {
header: 'Welcome to Everest Beta!',
subHead: `We're excited to announce that Percona Everest is now in Beta!
Under development for the past five months and in testing since October 2023, we're now taking Percona Everest public, making it open for anyone who wants to explore our Cloud Native database platform.
During this Beta phase, we will be fine-tuning the functionality based on feedback we receive from you via `,
subHead: `We are excited to announce that Percona Everest is now in Beta!
We are now taking Percona Everest public, making it open to anyone who wants to explore our Cloud Native database platform.
During this Beta phase, we will be fine-tuning the functionality based on feedback we receive from you via `,
githubIssues: 'GitHub issues',
subHead2: 'Ready to get started?',
card1: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const useDbClusterRestores = (
endTime: item.status.completed,
state: item.status.state,
type: item.spec.dataSource.pitr ? 'pitr' : 'full',
backupSource: item.spec.dataSource.dbClusterBackupName || '',
})),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const ScheduleBackupSection = ({
mode === 'edit' && schedules.length === 1 && dbType === DbType.Mongo
}
showTypeRadio={dbType === DbType.Mongo}
hideRetentionCopies={dbType === DbType.Postresql}
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ export const ScheduledBackupModalForm = () => {
trigger(ScheduleFormFields.storageLocation);
}
}, [dbClusterActiveStorage]);

console.log(dbCluster.spec.engine.type);
return (
<ScheduleForm
showTypeRadio={dbCluster.spec.engine.type === DbEngineType.PSMDB}
hideRetentionCopies={
dbCluster.spec.engine.type === DbEngineType.POSTGRESQL
}
allowScheduleSelection={mode === 'edit'}
disableStorageSelection={!!dbClusterActiveStorage}
autoFillLocation={mode === 'new'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ const Restores = () => {
accessorKey: 'type',
Cell: ({ cell }) => (cell.getValue() === 'pitr' ? 'PITR' : 'Full'),
},
{
header: 'Backup Source',
accessorKey: 'backupSource',
},
];
}, []);

Expand Down
2 changes: 2 additions & 0 deletions ui/apps/everest/src/shared-types/restores.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type GetRestorePayload = {
spec: {
dataSource: {
pitr?: object;
dbClusterBackupName?: string;
};
};
status: {
Expand Down Expand Up @@ -54,6 +55,7 @@ export type Restore = {
endTime?: string;
type: 'full' | 'pitr';
state: string;
backupSource: string;
};

export enum PXC_STATUS {
Expand Down

0 comments on commit f0e7c37

Please sign in to comment.