Skip to content
Snippets Groups Projects
Commit b5006617 authored by Steve Reis's avatar Steve Reis
Browse files

feat: Added config property : ontology url

parent 33d78348
No related branches found
No related tags found
No related merge requests found
export const ENGINE_MODULE_OPTIONS = 'EngineModuleOption'; export const ENGINE_MODULE_OPTIONS = 'EngineModuleOption';
export const ENGINE_SERVICE = 'EngineService'; export const ENGINE_SERVICE = 'EngineService';
export const ENGINE_SKIP_TOS = 'TOS_SKIP'; export const ENGINE_SKIP_TOS = 'TOS_SKIP';
export const ENGINE_ONTOLOGY_URL = 'ONTOLOGY_URL';
...@@ -6,6 +6,7 @@ import { GQLRequest } from '../common/decorators/gql-request.decoractor'; ...@@ -6,6 +6,7 @@ import { GQLRequest } from '../common/decorators/gql-request.decoractor';
import { Md5 } from 'ts-md5'; import { Md5 } from 'ts-md5';
import { import {
ENGINE_MODULE_OPTIONS, ENGINE_MODULE_OPTIONS,
ENGINE_ONTOLOGY_URL,
ENGINE_SERVICE, ENGINE_SERVICE,
ENGINE_SKIP_TOS, ENGINE_SKIP_TOS,
} from './engine.constants'; } from './engine.constants';
...@@ -55,6 +56,7 @@ export class EngineResolver { ...@@ -55,6 +56,7 @@ export class EngineResolver {
true, true,
), ),
matomo, matomo,
ontologyUrl: this.configSerivce.get(ENGINE_ONTOLOGY_URL),
}; };
const version = Md5.hashStr(JSON.stringify(data)); const version = Md5.hashStr(JSON.stringify(data));
......
...@@ -25,4 +25,7 @@ export class Configuration { ...@@ -25,4 +25,7 @@ export class Configuration {
@Field(() => Matomo, { nullable: true }) @Field(() => Matomo, { nullable: true })
matomo?: Matomo; matomo?: Matomo;
@Field({ nullable: true })
ontologyUrl?: string;
} }
...@@ -40,6 +40,7 @@ type Configuration { ...@@ -40,6 +40,7 @@ type Configuration {
skipTos: Boolean skipTos: Boolean
enableSSO: Boolean enableSSO: Boolean
matomo: Matomo matomo: Matomo
ontologyUrl: String
} }
type Dataset { type Dataset {
......
...@@ -18,6 +18,7 @@ description: >- ...@@ -18,6 +18,7 @@ description: >-
| GATEWAY\_PORT | number | 8081 | Indicate the port that should be used by the gateway | | GATEWAY\_PORT | number | 8081 | Indicate the port that should be used by the gateway |
| NODE\_ENV | string | dev | Value can be `prod` or `dev` | | NODE\_ENV | string | dev | Value can be `prod` or `dev` |
| BASE\_URL\_CONTEXT | string | null | Define context of the gateway. E.g. `api` if the api is under `http://127.0.0.1/api/` | | BASE\_URL\_CONTEXT | string | null | Define context of the gateway. E.g. `api` if the api is under `http://127.0.0.1/api/` |
| ONTOLOGY\_URL | string | null | Define ontology's url |
#### Authentication #### Authentication
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment