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

feat: dhis2 persistent storage #462

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions src/views/instances/new-dhis2/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Dhis2StackPrimaryParameters } from './parameter-fieldset'

export const DHIS2_STACK_ID = 'dhis2'
export const ENABLE_PERSISTENT_STORAGE = 'ENABLE_PERSISTENT_STORAGE'
export const DATABASE_ID = 'DATABASE_ID'
export const FLYWAY_MIGRATE_OUT_OF_ORDER = 'FLYWAY_MIGRATE_OUT_OF_ORDER'
export const FLYWAY_REPAIR_BEFORE_MIGRATION = 'FLYWAY_REPAIR_BEFORE_MIGRATION'
Expand Down
12 changes: 11 additions & 1 deletion src/views/instances/new-dhis2/fields/parameter-field.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import type { FC } from 'react'
import { IMAGE_TAG, IMAGE_REPOSITORY, DATABASE_ID, IMAGE_PULL_POLICY, FLYWAY_MIGRATE_OUT_OF_ORDER, FLYWAY_REPAIR_BEFORE_MIGRATION, INSTALL_REDIS } from '../constants'
import {
IMAGE_TAG,
IMAGE_REPOSITORY,
DATABASE_ID,
IMAGE_PULL_POLICY,
FLYWAY_MIGRATE_OUT_OF_ORDER,
FLYWAY_REPAIR_BEFORE_MIGRATION,
INSTALL_REDIS,
ENABLE_PERSISTENT_STORAGE
} from '../constants'
import { IntergrationParameterSelect } from './intergration-parameter-select'
import { ImageRepositorySelect } from './image-repository-select'
import { ImageTagSelect } from './image-tag-select'
Expand All @@ -22,6 +31,7 @@ export const ParameterField: FC<ParameterFieldProps> = ({ stackId, displayName,
case DATABASE_ID:
case IMAGE_PULL_POLICY:
return <IntergrationParameterSelect stackId={stackId} parameterName={parameterName} displayName={displayName} />
case ENABLE_PERSISTENT_STORAGE:
case FLYWAY_MIGRATE_OUT_OF_ORDER:
case FLYWAY_REPAIR_BEFORE_MIGRATION:
case INSTALL_REDIS:
Expand Down
Loading