diff --git a/api/src/engine/connectors/datashield/datashield.connector.ts b/api/src/engine/connectors/datashield/datashield.connector.ts index 62249ee5dadccdae77ab9c07d9a6e6ab15fdd8e5..fa37309223f4fe26624c84986524ab06b9b80365 100644 --- a/api/src/engine/connectors/datashield/datashield.connector.ts +++ b/api/src/engine/connectors/datashield/datashield.connector.ts @@ -46,6 +46,7 @@ export default class DataShieldConnector implements Connector { return { hasGalaxy: false, hasGrouping: false, + hasFilters: false, }; } diff --git a/api/src/engine/interfaces/connector-configuration.interface.ts b/api/src/engine/interfaces/connector-configuration.interface.ts index 240e98e5379ea8ede66ffad30e0f667ed6fc7729..64d3d2aa9defb14eed45565aab623f709ffa689e 100644 --- a/api/src/engine/interfaces/connector-configuration.interface.ts +++ b/api/src/engine/interfaces/connector-configuration.interface.ts @@ -1,5 +1,8 @@ import { Configuration } from '../models/configuration.model'; -type ConnectorConfiguration = Pick<Configuration, 'hasGalaxy' | 'hasGrouping'>; +type ConnectorConfiguration = Pick< + Configuration, + 'hasGalaxy' | 'hasGrouping' | 'hasFilters' +>; export default ConnectorConfiguration; diff --git a/api/src/engine/models/configuration.model.ts b/api/src/engine/models/configuration.model.ts index 08aef511c2459530f1e1b222d1db8509cba5ebc9..e18ed9e5b5f4108be440669be83c360c8bd334ab 100644 --- a/api/src/engine/models/configuration.model.ts +++ b/api/src/engine/models/configuration.model.ts @@ -18,6 +18,13 @@ export class Configuration { }) hasGrouping?: boolean; + @Field({ + nullable: true, + defaultValue: true, + description: 'Indicates if filters and formula are enabled', + }) + hasFilters?: boolean; + @Field({ nullable: true }) contactLink?: string; diff --git a/api/src/schema.gql b/api/src/schema.gql index 340c9b61c5f3fd9655ba6d158ce62aeb049ee177..065098a92c369abe157f9c279509fff2d244c45e 100644 --- a/api/src/schema.gql +++ b/api/src/schema.gql @@ -32,6 +32,9 @@ type Configuration { """Indicates if histograms can handle grouping""" hasGrouping: Boolean + + """Indicates if filters and formula are enabled""" + hasFilters: Boolean contactLink: String version: String! skipAuth: Boolean