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

docs: Update code for documentation

parent 34b217ec
No related branches found
No related tags found
No related merge requests found
......@@ -14,3 +14,8 @@ AUTH_JWT_SECRET=SecretForDevPurposeOnly
AUTH_JWT_TOKEN_EXPIRES_IN=2d
AUTH_COOKIE_SAME_SITE=strict
AUTH_COOKIE_SECURE=true
# Cache
CACHE_ENABLED=true
CACHE_TTL=1800 # 1800 == 30 minutes
CACHE_MAX_ITEMS=100
\ No newline at end of file
......@@ -66,7 +66,6 @@ export default class ExaremeConnector implements Connector {
getConfiguration(): ConnectorConfiguration {
return {
contactLink: 'https://ebrains.eu/support/',
hasGalaxy: true,
hasGrouping: true,
};
......
export const ENGINE_MODULE_OPTIONS = 'EngineModuleOption';
export const ENGINE_SKIP_TOS = 'TOS_SKIP';
export const ENGINE_ONTOLOGY_URL = 'ONTOLOGY_URL';
export const ENGINE_CONTACT_LINK = 'CONTACT_LINK';
import { Inject, UseGuards, UseInterceptors } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Args, Query, Resolver } from '@nestjs/graphql';
import { Query, Resolver } from '@nestjs/graphql';
import { Request } from 'express';
import { Public } from 'src/auth/decorators/public.decorator';
import { GlobalAuthGuard } from 'src/auth/guards/global-auth.guard';
......@@ -9,6 +9,7 @@ import { Md5 } from 'ts-md5';
import { authConstants } from '../auth/auth-constants';
import { GQLRequest } from '../common/decorators/gql-request.decoractor';
import {
ENGINE_CONTACT_LINK,
ENGINE_MODULE_OPTIONS,
ENGINE_ONTOLOGY_URL,
ENGINE_SKIP_TOS,
......@@ -52,6 +53,7 @@ export class EngineResolver {
),
matomo,
ontologyUrl: this.configSerivce.get(ENGINE_ONTOLOGY_URL),
contactLink: this.configSerivce.get(ENGINE_CONTACT_LINK),
};
const version = Md5.hashStr(JSON.stringify(data));
......
import { Configuration } from '../models/configuration.model';
type ConnectorConfiguration = Pick<
Configuration,
'contactLink' | 'hasGalaxy' | 'hasGrouping'
>;
type ConnectorConfiguration = Pick<Configuration, 'hasGalaxy' | 'hasGrouping'>;
export default ConnectorConfiguration;
......@@ -5,7 +5,11 @@ export class Configuration {
@Field()
connectorId: string;
@Field({ nullable: true, defaultValue: false })
@Field({
nullable: true,
defaultValue: false,
deprecationReason: 'Only used for legacy reason should be avoided',
})
hasGalaxy?: boolean;
@Field({
......
......@@ -33,7 +33,7 @@ type Matomo {
type Configuration {
connectorId: String!
hasGalaxy: Boolean
hasGalaxy: Boolean @deprecated(reason: "Only used for legacy reason should be avoided")
"""Indicates if histograms can handle grouping"""
hasGrouping: Boolean
......
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