Skip to content

Commit

Permalink
support hidden in fetch_table
Browse files Browse the repository at this point in the history
  • Loading branch information
neindochoh committed Oct 9, 2023
1 parent 75ebe6e commit 99dd6ff
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
9 changes: 9 additions & 0 deletions src/client/models/Column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ export interface Column {
* @memberof Column
*/
optional: boolean;
/**
*
* @type {boolean}
* @memberof Column
*/
hidden: boolean;
/**
*
* @type {string}
Expand Down Expand Up @@ -77,6 +83,7 @@ export function instanceOfColumn(value: object): boolean {
isInstance = isInstance && 'name' in value;
isInstance = isInstance && 'editable' in value;
isInstance = isInstance && 'optional' in value;
isInstance = isInstance && 'hidden' in value;
isInstance = isInstance && 'role' in value;
isInstance = isInstance && 'values' in value;

Expand All @@ -95,6 +102,7 @@ export function ColumnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Co
name: json['name'],
editable: json['editable'],
optional: json['optional'],
hidden: json['hidden'],
role: json['role'],
values: json['values'],
description: !exists(json, 'description') ? undefined : json['description'],
Expand All @@ -114,6 +122,7 @@ export function ColumnToJSON(value?: Column | null): any {
name: value.name,
editable: value.editable,
optional: value.optional,
hidden: value.hidden,
role: value.role,
values: value.values,
description: value.description,
Expand Down
14 changes: 7 additions & 7 deletions src/client/models/DataIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ export interface DataIssue {
* @type {string}
* @memberof DataIssue
*/
severity?: DataIssueSeverityEnum;
title: string;
/**
*
* @type {string}
* @type {Array<number>}
* @memberof DataIssue
*/
title: string;
rows: Array<number>;
/**
*
* @type {Array<number>}
* @type {string}
* @memberof DataIssue
*/
rows: Array<number>;
severity?: DataIssueSeverityEnum;
/**
*
* @type {Array<string>}
Expand Down Expand Up @@ -85,9 +85,9 @@ export function DataIssueFromJSONTyped(
return json;
}
return {
severity: !exists(json, 'severity') ? undefined : json['severity'],
title: json['title'],
rows: json['rows'],
severity: !exists(json, 'severity') ? undefined : json['severity'],
columns: !exists(json, 'columns') ? undefined : json['columns'],
description: !exists(json, 'description') ? undefined : json['description'],
};
Expand All @@ -101,9 +101,9 @@ export function DataIssueToJSON(value?: DataIssue | null): any {
return null;
}
return {
severity: value.severity,
title: value.title,
rows: value.rows,
severity: value.severity,
columns: value.columns,
description: value.description,
};
Expand Down
1 change: 1 addition & 0 deletions src/stores/dataset/columnFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function makeColumn(column: Column, index: number): DataColumn {
type: makeDatatype(column),
editable: column.editable,
optional: column.optional,
hidden: column.hidden,
description: column.description ?? '',
tags: _.uniq(column.tags),
};
Expand Down
1 change: 1 addition & 0 deletions src/types/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface DataColumn {
type: datatypes.DataType;
editable: boolean;
optional: boolean;
hidden: boolean;
description: string;
tags: string[];
}
Expand Down

0 comments on commit 99dd6ff

Please sign in to comment.