Skip to content

Commit

Permalink
1503 - Support new DataEntityType - VECTOR_STORE and new DatasetField… (
Browse files Browse the repository at this point in the history
#1507)

Co-authored-by: Andrey Nenashev <[email protected]>
  • Loading branch information
Vladysl and AndreyNenashev authored Nov 13, 2023
1 parent 7a49ed0 commit ed33451
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
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.27'
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 @@ -234,6 +234,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

0 comments on commit ed33451

Please sign in to comment.