Skip to content

Commit

Permalink
add back engine versionselector for postgres (#4586)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Apr 29, 2024
1 parent 8d49131 commit 171bf19
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dashboard/src/main/home/database-dashboard/forms/DatastoreForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const DatastoreForm: React.FC = () => {
const watchWorkloadType = watch("workloadType", "unspecified");
const watchEngine = watch("engine", "UNKNOWN");
const watchInstanceClass = watch("config.instanceClass", "unspecified");
const watchEngineVersion = watch("config.engineVersion", "");

const { updateDatastoreButtonProps } = useDatastoreFormContext();

Expand Down Expand Up @@ -291,6 +292,26 @@ const DatastoreForm: React.FC = () => {
setCurrentStep(4);
}}
/>
{template === DATASTORE_TEMPLATE_AWS_RDS && (
<>
<Spacer y={0.5} />
<Selector<string>
activeValue={watchEngineVersion.toString()}
width="300px"
options={DATASTORE_TEMPLATE_AWS_RDS.supportedEngineVersions.map(
(v) => ({
value: v.name,
label: v.displayName,
key: v.name,
})
)}
setActiveValue={(value: string) => {
setValue("config.engineVersion", value);
}}
label={"Postgres version"}
/>
</>
)}
</>
)}
</>,
Expand Down

0 comments on commit 171bf19

Please sign in to comment.