Skip to content

Commit

Permalink
Merge pull request #535 from Digital-Engineering/development
Browse files Browse the repository at this point in the history
1.5.0
  • Loading branch information
DnOberon authored and GitHub Enterprise committed Sep 6, 2023
2 parents d0b0eb5 + cc1febf commit 1454151
Show file tree
Hide file tree
Showing 163 changed files with 15,157 additions and 27,472 deletions.
12 changes: 12 additions & 0 deletions .docker-env
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ SAML_ADFS_CALLBACK=
SAML_ADFS_PRIVATE_CERT_PATH=
# x509 certificate extracted from ADFS metadata file
SAML_ADFS_PUBLIC_CERT_PATH=
# Algorithm used for signing requests (default is sha256)
SAML_ADFS_SIGNATURE_ALGORITHM=

# SAML audience to validate with IDP (defaults to false, no validation)
SAML_ADFS_AUDIENCE=

# Additional SAML flags (default is true)
SAML_ADFS_DISABLE_REQUESTED_AUTHN_CONTEXT=

# Additional SAML flags (default is false)
SAML_ADFS_WANT_AUTHN_RESPONSE_SIGNED=
SAML_ADFS_WANT_ASSERTIONS_SIGNED=

SAML_ADFS_CLAIMS_EMAIL=
SAML_ADFS_CLAIMS_NAME=
Expand Down
12 changes: 12 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ SAML_ADFS_CALLBACK=
SAML_ADFS_PRIVATE_CERT_PATH=
# x509 certificate extracted from ADFS metadata file
SAML_ADFS_PUBLIC_CERT_PATH=
# Algorithm used for signing requests (default is sha256)
SAML_ADFS_SIGNATURE_ALGORITHM=

# SAML audience to validate with IDP (defaults to 'false' which causes no validation)
SAML_ADFS_AUDIENCE=

# Additional SAML flags (default is true)
SAML_ADFS_DISABLE_REQUESTED_AUTHN_CONTEXT=

# Additional SAML flags (default is false)
SAML_ADFS_WANT_AUTHN_RESPONSE_SIGNED=
SAML_ADFS_WANT_ASSERTIONS_SIGNED=

SAML_ADFS_CLAIMS_EMAIL=
SAML_ADFS_CLAIMS_NAME=
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-deploy-acc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ jobs:
CI_COMMIT_SHA: $GITHUB_SHA
NODE_EXTRA_CA_CERTS: ${{ secrets.NODE_EXTRA_CA_CERTS }}
RUN_JOBS: ${{ secrets.RUN_JOBS }}
JAZZ_HOST: ${{ secrets.JAZZ_HOST }}
JAZZ_IP: ${{ secrets.JAZZ_IP }}
ELM_HOST: ${{ secrets.ELM_HOST }}
ELM_IP: ${{ secrets.ELM_IP }}
NETWORKING_HOST: ${{ secrets.NETWORKING_HOST }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ jobs:
CI_COMMIT_SHA: $GITHUB_SHA
NODE_EXTRA_CA_CERTS: ${{ secrets.NODE_EXTRA_CA_CERTS }}
RUN_JOBS: ${{ secrets.RUN_JOBS }}
JAZZ_HOST: ${{ secrets.JAZZ_HOST }}
JAZZ_IP: ${{ secrets.JAZZ_IP }}
ELM_HOST: ${{ secrets.ELM_HOST }}
ELM_IP: ${{ secrets.ELM_IP }}
NETWORKING_HOST: ${{ secrets.NETWORKING_HOST }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ jobs:
CI_COMMIT_SHA: $GITHUB_SHA
NODE_EXTRA_CA_CERTS: ${{ secrets.NODE_EXTRA_CA_CERTS }}
RUN_JOBS: ${{ secrets.RUN_JOBS }}
JAZZ_HOST: ${{ secrets.JAZZ_HOST }}
JAZZ_IP: ${{ secrets.JAZZ_IP }}
ELM_HOST: ${{ secrets.ELM_HOST }}
ELM_IP: ${{ secrets.ELM_IP }}
NETWORKING_HOST: ${{ secrets.NETWORKING_HOST }}
Expand Down
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,23 @@ profile-logs
/AdminWebApp/src/**/*.js
/AdminWebApp/src/**/*.js.map
/NodeLibraries/dl-fast-load/build-output.txt
/NodeLibraries/deeplynx-timeseries/
/NodeLibraries/redis-graph-loader/

# Devenv
.devenv*
devenv.local.nix

# direnv
.direnv

# pre-commit
.pre-commit-config.yaml

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
File renamed without changes.
2 changes: 1 addition & 1 deletion API Documentation/Core.swagger_collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ paths:
tags:
- Data Sources
summary: Create Data Source
description: 'Create new datasource. Supported data source types are `http`, `standard` (or `manual`), `jazz`, `p6`, `aveva`, and `timeseries`.'
description: 'Create new datasource. Supported data source types are `http`, `standard` (or `manual`), `p6`, `aveva`, and `timeseries`.'
operationId: CreateDataSource
parameters:
- name: container_id
Expand Down
6 changes: 3 additions & 3 deletions AdminWebApp/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ export class Client {
return this.get<MetatypeRelationshipPairT[] | number>(`/containers/${containerID}/metatype_relationship_pairs`, query);
}

createMetatype(containerID: string, name: string, description: string, ontologyVersion?: string): Promise<MetatypeT[]> {
return this.post<MetatypeT[]>(`/containers/${containerID}/metatypes`, {name, description, ontology_version: ontologyVersion});
createMetatype(containerID: string, name: string, description: string, ontologyVersion?: string, parentID?: string): Promise<MetatypeT[]> {
return this.post<MetatypeT[]>(`/containers/${containerID}/metatypes`, {name, description, ontology_version: ontologyVersion, parent_id: parentID});
}

retrieveMetatype(containerID: string, metatypeID: string): Promise<MetatypeT> {
Expand Down Expand Up @@ -1620,7 +1620,7 @@ export class Client {
if (queryParams) {
url = buildURL(this.config?.rootURL!, {path: uri, queryParams: queryParams!});
} else {
url = buildURL(this.config?.rootURL!, {path: uri})
url = buildURL(this.config?.rootURL!, {path: uri});
}

const formData = new FormData();
Expand Down
58 changes: 22 additions & 36 deletions AdminWebApp/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export type NodeT = {
metatype?: MetatypeT;
properties: PropertyT[] | object;
metadata_properties?: object;
metadata?: MetadataT[];
raw_properties?: string; // JSON string with the raw properties
container_id: string;
original_data_id?: string;
Expand All @@ -175,13 +176,29 @@ export type NodeT = {
modified_at: string;
incoming_edges?: EdgeT[];
outgoing_edges?: EdgeT[];
import_data_id?: string;
type_mapping_transformation_id?: string;
data_staging_id?: string;
};

export type MetadataT = {
conversions?: ConversionT[];
failed_conversions?: ConversionT[];
};

export type ConversionT = {
original_value: any;
converted_value?: any;
errors?: string;
};

export type EdgeT = {
selected_edge?: boolean;
id: string;
container_id: string;
relationship_pair_id?: string;
data_source_id: string;
relationship: MetatypeRelationshipT;
metatype_relationship: MetatypeRelationshipT;
destination_node?: NodeT;
origin_node?: NodeT;
origin_id?: string;
Expand All @@ -190,8 +207,12 @@ export type EdgeT = {
relationship_id?: string;
properties: PropertyT[] | object;
metadata_properties?: object;
metadata?: MetadataT[];
created_at: string;
modified_at: string;
data_staging_id: string;
import_data_id: string;
type_mapping_transformation_id: string;
};

export type PropertyT = {
Expand All @@ -211,7 +232,6 @@ export type DataSourceT = {
| StandardDataSourceConfig
| HttpDataSourceConfig
| AvevaDataSourceConfig
| JazzDataSourceConfig
| TimeseriesDataSourceConfig
| P6DataSourceConfig
| undefined;
Expand Down Expand Up @@ -279,22 +299,6 @@ export type HttpDataSourceConfig = {
raw_retention_enabled?: boolean;
};

export type JazzDataSourceConfig = {
kind: 'jazz';
endpoint: string;
secure: boolean;
project_name: string;
artifact_types: string[]; // artifact types to retrieve, everything else is ignored
limit: number;
poll_interval: number; // in minutes
timeout: number; // milliseconds
token: string; // security token for http authentication
stop_nodes?: string[];
value_nodes?: string[];
data_retention_days?: number;
raw_retention_enabled?: boolean;
};

export type AvevaDataSourceConfig = {
kind: 'aveva';
ignore_dbs: string[];
Expand Down Expand Up @@ -747,24 +751,6 @@ export function DefaultAvevaDataSourceConfig(): AvevaDataSourceConfig {
};
}

// Like the AvevaDefaultConfig we're including functions for all default configs for data source types, easier to
// change when they're in one place.
export function DefaultJazzDataSourceConfig(): JazzDataSourceConfig {
return {
kind: 'jazz',
endpoint: '',
secure: true,
project_name: '',
artifact_types: [],
poll_interval: 10,
token: '',
timeout: 30000,
limit: 10,
data_retention_days: 30,
raw_retention_enabled: false,
};
}

export function DefaultP6DataSourceConfig(): P6DataSourceConfig {
return {
kind: 'p6',
Expand Down
Loading

0 comments on commit 1454151

Please sign in to comment.