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

1503 - Support new DataEntityType - VECTOR_STORE and new DatasetField… #1507

Merged
merged 3 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
spring-webflux = '6.0.9'
reactor-extra = '3.5.1'
micrometer-registry-prometheus = '1.9.0'
ingestion-contract-server = '0.1.24'
ingestion-contract-server = '0.1.28'
oddrn-generator-java = '0.1.20'
odd-integration-manifests = '0.0.4'
apache-collections = '4.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
import static org.opendatadiscovery.oddplatform.dto.DataEntityTypeDto.ML_MODEL_INSTANCE;
import static org.opendatadiscovery.oddplatform.dto.DataEntityTypeDto.ML_MODEL_TRAINING;
import static org.opendatadiscovery.oddplatform.dto.DataEntityTypeDto.TABLE;
import static org.opendatadiscovery.oddplatform.dto.DataEntityTypeDto.VECTOR_STORE;
import static org.opendatadiscovery.oddplatform.dto.DataEntityTypeDto.VIEW;

@Getter
public enum DataEntityClassDto {
DATA_SET(1, Set.of(TABLE, FILE, FEATURE_GROUP, KAFKA_TOPIC, VIEW, GRAPH_NODE)),
DATA_SET(1, Set.of(TABLE, FILE, FEATURE_GROUP, KAFKA_TOPIC, VIEW, GRAPH_NODE, VECTOR_STORE)),
DATA_TRANSFORMER(2, Set.of(JOB, ML_MODEL_TRAINING, ML_MODEL_INSTANCE, VIEW, MICROSERVICE)),
DATA_TRANSFORMER_RUN(3, JOB_RUN),
DATA_QUALITY_TEST(4, JOB),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public enum DataEntityTypeDto {
DATABASE_SERVICE(19),
API_SERVICE(20),
KAFKA_SERVICE(21),
DOMAIN(22);
DOMAIN(22),
VECTOR_STORE(23);

private static final Map<Integer, DataEntityTypeDto> MAP = Arrays
.stream(DataEntityTypeDto.values())
Expand Down
2 changes: 2 additions & 0 deletions odd-platform-specification/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ components:
- API_SERVICE
- KAFKA_SERVICE
- DOMAIN
- VECTOR_STORE
required:
- id
- name
Expand Down Expand Up @@ -1748,6 +1749,7 @@ components:
- TYPE_DURATION
- TYPE_REFERENCE
- TYPE_UNKNOWN
- TYPE_VECTOR
logical_type:
type: string
is_nullable:
Expand Down
1 change: 1 addition & 0 deletions odd-platform-ui/src/redux/interfaces/datasetStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const DatasetTypeLabelMap: Record<
TYPE_DURATION: { short: 'Dur', plural: 'durations' },
TYPE_UNKNOWN: { short: 'Unk', plural: 'unknowns' },
TYPE_REFERENCE: { short: 'Ref', plural: 'references' },
TYPE_VECTOR: { short: 'Vec', plural: 'vectors' },
};

export type DataSetFormattedStatsKeys = keyof Required<DataSetFormattedStats>;
Expand Down
1 change: 1 addition & 0 deletions odd-platform-ui/src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export const palette = createPalette({
TYPE_DURATION: { border: colors.blue40 },
TYPE_UNKNOWN: { border: colors.black10 },
TYPE_REFERENCE: { border: colors.purple40 },
TYPE_VECTOR: { border: colors.orange40 },
},
datasetFieldKey: {
primary: { background: colors.black30, color: colors.white, border: colors.blue30 },
Expand Down