Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F#1237 same data add in metadata when create a datasource #1559

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b795164
Deleting a data source type from the Generate Metadata modal
ninezero90hy Feb 11, 2019
92a30f8
#1237 sync. data modification between datasource with metadata
kyungtaak Feb 16, 2019
51401d2
#1237 Update polaris.v2.component.css and icon_info3.png
ninezero90hy Feb 18, 2019
ff8f566
#1237 Add guide statements to metadata information
ninezero90hy Feb 18, 2019
f9846f5
#1237 Fix typo
ninezero90hy Feb 18, 2019
357e9bf
#1237 Update polaris.v2.page.css
ninezero90hy Feb 18, 2019
3a0e612
#1237 Add the Move Datasource Details Page button
ninezero90hy Feb 18, 2019
befa2e8
#1237 Message Multilingual Processing
ninezero90hy Feb 18, 2019
7425e7a
#1237 Message Multilingual Processing
ninezero90hy Feb 18, 2019
22ef52e
#1237 Polishing
ninezero90hy Feb 18, 2019
708a3ca
#1237 Adding a condition check to show the Move Data Source button in…
ninezero90hy Feb 18, 2019
b3469b7
#1237 change datasource description
brandon-wonjune Feb 18, 2019
4a51d01
#1237 add source description blur event
brandon-wonjune Feb 19, 2019
3c4f716
#1245 export data source grid module
brandon-wonjune Feb 26, 2019
cdd1109
#1245 set service in source share module provider
brandon-wonjune Feb 26, 2019
86203e0
#1245 Update CSS and Icon
ninezero90hy Feb 26, 2019
32253d7
#1237 Update polaris.v2.component.css and icon_info3.png
ninezero90hy Feb 18, 2019
fa639a2
#1237 fix not exist alias in stagingDB select component
brandon-wonjune Feb 27, 2019
621ab30
#1237 fix not exist alias in hive select component
brandon-wonjune Feb 27, 2019
ff84951
#1237 add type filter in configure schema component
brandon-wonjune Feb 27, 2019
1246d65
#1237 fix not exist alias in stagingDB select component
ninezero90hy Feb 27, 2019
70b761b
#1237 Modify Metadata Source Domains
ninezero90hy Feb 27, 2019
adbcb62
#1245 Add Information to Metadata Column Schema Page
ninezero90hy Feb 27, 2019
d2a7c5a
#1237 Extract Metadata Information Message Component
ninezero90hy Feb 28, 2019
c3fce58
#1237 Polishing
ninezero90hy Feb 28, 2019
12abf2f
#1237 Modifying the metadata get service for a datasource
ninezero90hy Feb 28, 2019
d489dc3
#1237 Polishing
ninezero90hy Feb 28, 2019
e33056f
#1237 add master data link
brandon-wonjune Feb 28, 2019
ff94bae
#1237 change text 'master' to 'meta'
brandon-wonjune Feb 28, 2019
dde29ce
#1237 add modified guide message in information tab
brandon-wonjune Feb 28, 2019
eb983a2
#1237 Modify SourceType enumerate for metadata domains
ninezero90hy Feb 28, 2019
f7c56ed
#1237 Polishing
ninezero90hy Feb 28, 2019
6cbed17
#1237 Modifying the metadata page information message to show only if…
ninezero90hy Feb 28, 2019
1524d3f
#1237 Exposure of guide information message when corrective action is…
ninezero90hy Feb 28, 2019
9ec94f8
#1237 Polishing
ninezero90hy Feb 28, 2019
4cec946
#1237 Metadata detail column schema page refactoring
ninezero90hy Feb 28, 2019
19716e3
#1237 Polishing
ninezero90hy Mar 1, 2019
dee9c77
#1237 Deleting unused components from metadata
ninezero90hy Mar 1, 2019
fc18e0b
#1237 Exposure of guide information message when corrective action is…
ninezero90hy Mar 1, 2019
c4d09f8
#1237 Metadata detail column schema page refactoring
ninezero90hy Mar 1, 2019
c36032a
#1237 Metadata detail column schema page refactoring
ninezero90hy Mar 2, 2019
e6418a6
#1237 fix NPE when origin of metadata is not type of datasource
kyungtaak Mar 2, 2019
05a6143
#1237 Metadata detail column schema page refactoring
ninezero90hy Mar 2, 2019
0bb455f
#1237 merge file
brandon-wonjune Mar 4, 2019
826f946
#1237 Exposure of guide information message when corrective action is…
ninezero90hy Mar 4, 2019
9ac9cef
#1237 change alias to logicalName in edit config schema component
brandon-wonjune Mar 5, 2019
ff18827
#1237 For the metadata generated from the data source, we have change…
ninezero90hy Mar 5, 2019
9db6cef
#1237 If no matching datasource is found in the metadata, the "Go to …
ninezero90hy Mar 5, 2019
f1e10f0
#1237 Add modify mode change event when text is clicked
ninezero90hy Mar 6, 2019
414ef28
#1237 add description placeholder in datasource detail
brandon-wonjune Mar 6, 2019
f6c5e1b
#1237 Update polaris.v2.page.css
ninezero90hy Mar 6, 2019
b8fbbc8
#1237 Polishing
ninezero90hy Mar 6, 2019
3e060fb
#1237 Fixed an error that the chart was not drawn
Mar 6, 2019
7e46f42
#1237 change property 'alias' to 'logicalName' in field
brandon-wonjune Mar 6, 2019
3dc773d
#1245 add processing sequence in metadata columns
kyungtaak Mar 7, 2019
55c1ca5
Merge remote-tracking branch 'origin/master' into f#1237-same_data_ad…
ninezero90hy Mar 7, 2019
6eaa92b
#1237 add css class description in datasource detail
brandon-wonjune Mar 7, 2019
f39acb9
#1237 fix dictionary name in data preview
brandon-wonjune Mar 7, 2019
9e847c7
#1237 Update polaris.v2.page.css
ninezero90hy Mar 7, 2019
3396803
#1237 add nodata css
brandon-wonjune Mar 7, 2019
9108b04
#1237 fix missing description
kyungtaak Mar 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
{{'msg.metadata.th.dictionary' | translate}}
</th>
<td>
{{selectedField.dictionary?.name}}
{{selectedField.dictionary?.logicalName}}
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,24 +1015,10 @@ export class DataPreviewComponent extends AbstractPopupComponent implements OnIn
// 메타데이터가 존재한다면
if (this.isExistMetaData(source)) {
const fieldMetaData: MetadataColumn = _.find(source.uiMetaData.columns, {'physicalName': field.name});
// logical name
field['logicalName'] = fieldMetaData.name;
// code table
field['codeTable'] = fieldMetaData.codeTable;
// dictionary
field['dictionary'] = fieldMetaData.dictionary;
// type
if (fieldMetaData.type) {
field['metaType'] = fieldMetaData.type;
}
// description
if (fieldMetaData.description) {
field['description'] = fieldMetaData.description;
}
// format
if (fieldMetaData.format) {
field['format'] = fieldMetaData.format;
}
}
}

Expand Down Expand Up @@ -1237,8 +1223,7 @@ export class DataPreviewComponent extends AbstractPopupComponent implements OnIn
*/
public createMetaDataHeader(args: any): void {
// TODO 추후 그리드 자체에서 생성하도록 변경하기
$('<div class="slick-data">' + (_.find(this.columns, {'name': args.column.id}).logicalName || '') + '</div>')
.appendTo(args.node);
$('<div class="slick-data">' + (_.find(this.columns, {'name': args.column.id}).logicalName || '') + '</div>').appendTo(args.node);
}

/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '@angular/core';
import { DashboardService } from '../../service/dashboard.service';
import { CommonCode } from '../../../domain/code/common-code';
import { BIType, Field, FieldRole } from '../../../domain/datasource/datasource';
import { Field, FieldRole } from '../../../domain/datasource/datasource';
import { AbstractComponent } from '../../../common/component/abstract.component';
import { Alert } from '../../../common/util/alert.util';
import { BoardDataSource } from '../../../domain/dashboard/dashboard';
Expand Down Expand Up @@ -372,7 +372,7 @@ export class CustomFieldComponent extends AbstractComponent implements OnInit, O
} else {

let color = '#439fe5';
if (data.biType === BIType.DIMENSION) {
if (data.role === FieldRole.DIMENSION) {
color = '#5fd7a5';
}

Expand Down Expand Up @@ -506,7 +506,7 @@ export class CustomFieldComponent extends AbstractComponent implements OnInit, O
// 컬럼 클릭
public selecteColumn(column: Field) {
let color = '#439fe5';
if (column.biType === BIType.DIMENSION) {
if (column.role === FieldRole.DIMENSION) {
color = '#5fd7a5';
}
let inserColumn = '<span style="color: ' + color + '">';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
*/

import * as _ from 'lodash';
import { Component, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, Output, ViewChild } from '@angular/core';
import { AbstractFilterPopupComponent } from 'app/dashboard/filters/abstract-filter-popup.component';
import { Filter } from '../../domain/workbook/configurations/filter/filter';
import { Dashboard } from '../../domain/dashboard/dashboard';
import { Field, FieldRole, BIType, ConnectionType, Datasource } from '../../domain/datasource/datasource';
import { CustomField } from '../../domain/workbook/configurations/field/custom-field';
import { InclusionFilter } from '../../domain/workbook/configurations/filter/inclusion-filter';
import { ConfigureFiltersInclusionComponent } from './inclusion-filter/configure-filters-inclusion.component';
import { BoundFilter } from '../../domain/workbook/configurations/filter/bound-filter';
import { ConfigureFiltersBoundComponent } from './bound-filter/configure-filters-bound.component';
import { Widget } from '../../domain/dashboard/widget/widget';
import { StringUtil } from '../../common/util/string.util';
import { TimeFilter } from '../../domain/workbook/configurations/filter/time-filter';
import { ConfigureFiltersTimeComponent } from './time-filter/configure-filters-time.component';
import { FilterUtil } from '../util/filter.util';
import {Component, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, Output, ViewChild} from '@angular/core';
import {AbstractFilterPopupComponent} from 'app/dashboard/filters/abstract-filter-popup.component';
import {Filter} from '../../domain/workbook/configurations/filter/filter';
import {Dashboard} from '../../domain/dashboard/dashboard';
import {ConnectionType, Datasource, Field, FieldRole, LogicalType} from '../../domain/datasource/datasource';
import {CustomField} from '../../domain/workbook/configurations/field/custom-field';
import {InclusionFilter} from '../../domain/workbook/configurations/filter/inclusion-filter';
import {ConfigureFiltersInclusionComponent} from './inclusion-filter/configure-filters-inclusion.component';
import {BoundFilter} from '../../domain/workbook/configurations/filter/bound-filter';
import {ConfigureFiltersBoundComponent} from './bound-filter/configure-filters-bound.component';
import {Widget} from '../../domain/dashboard/widget/widget';
import {StringUtil} from '../../common/util/string.util';
import {TimeFilter} from '../../domain/workbook/configurations/filter/time-filter';
import {ConfigureFiltersTimeComponent} from './time-filter/configure-filters-time.component';
import {FilterUtil} from '../util/filter.util';
import {CommonConstant} from "../../common/constant/common.constant";

@Component({
Expand Down Expand Up @@ -200,7 +200,7 @@ export class ConfigureFiltersUpdateComponent extends AbstractFilterPopupComponen
public isTimestamp(): boolean {
return (
this.targetField
&& (<Field>this.targetField).biType === BIType.TIMESTAMP
&& this.targetField.type === 'TIMESTAMP'
&& this.targetField.role === FieldRole.TIMESTAMP
) || (
this.targetField == null && this.targetFilter.field === CommonConstant.COL_NAME_CURRENT_DATETIME
Expand Down Expand Up @@ -278,7 +278,7 @@ export class ConfigureFiltersUpdateComponent extends AbstractFilterPopupComponen

this._dashboard = _.cloneDeep(board);
this.targetFilter = targetFilter;
( this.targetFilter.ui ) || ( this.targetFilter.ui = {} );
(this.targetFilter.ui) || (this.targetFilter.ui = {});
this.targetField = this._getTargetField(targetFilter, board.configuration.fields, board.configuration.customFields);

this.dataSource = FilterUtil.getDataSourceForFilter(targetFilter, board);
Expand Down Expand Up @@ -316,7 +316,7 @@ export class ConfigureFiltersUpdateComponent extends AbstractFilterPopupComponen

// 글로벌 필터
if (fieldList && 0 < fieldList.length) {
return fieldList.find((field: Field | CustomField) => field.name === filter.field && field.dataSource === filter.dataSource );
return fieldList.find((field: Field | CustomField) => field.name === filter.field && field.dataSource === filter.dataSource);
} else {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
OnInit,
ViewChild
} from '@angular/core';
import { BIType, Field, FieldRole } from '../../../domain/datasource/datasource';
import {Field, FieldRole, LogicalType} from '../../../domain/datasource/datasource';
import { AbstractFilterPanelComponent } from '../abstract-filter-panel.component';
import { ByTimeUnit, TimeUnit } from '../../../domain/workbook/configurations/field/timestamp-field';
import { TimeListFilterComponent } from './time-list-filter.component';
Expand Down Expand Up @@ -309,8 +309,7 @@ export class TimeFilterPanelComponent extends AbstractFilterPanelComponent imple
if( this.dataSource ) {

// 타임스탬프인지 판단
if (this.field && this.field.biType === BIType.TIMESTAMP
&& this.field.role === FieldRole.TIMESTAMP) {
if (this.field && this.field.type === 'TIMESTAMP' && this.field.role === FieldRole.TIMESTAMP) {
this.isTimeStamp = true;
} else if (this.field == null && filter.field === CommonConstant.COL_NAME_CURRENT_DATETIME) {
this.isTimeStamp = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1108,23 +1108,23 @@ export class PageWidgetComponent extends AbstractWidgetComponent implements OnIn
this.widgetConfiguration.pivot.rows
.forEach((abstractField) => {
if (isNullOrUndefined(abstractField.field)
&& String(field.biType) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
&& String(field.type) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
abstractField.field = field;
}
});

this.widgetConfiguration.pivot.columns
.forEach((abstractField) => {
if (isNullOrUndefined(abstractField.field)
&& String(field.biType) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
&& String(field.type) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
abstractField.field = field;
}
});

this.widgetConfiguration.pivot.aggregations
.forEach((abstractField) => {
if (isNullOrUndefined(abstractField.field)
&& String(field.biType) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
&& String(field.type) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
abstractField.field = field;
}
});
Expand All @@ -1135,7 +1135,7 @@ export class PageWidgetComponent extends AbstractWidgetComponent implements OnIn
this.widgetConfiguration.shelf.layers[this.widgetConfiguration.chart['layerNum']]
.forEach((abstractField) => {
if (isNullOrUndefined(abstractField.field)
&& String(field.biType) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
&& String(field.type) == abstractField.type.toUpperCase() && field.name == abstractField.name) {
abstractField.field = field;
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="ddp-type-selectbox" [class.ddp-selected]="isListShow" (click)="isListShow = !isListShow">
<span class="ddp-txt-selectbox">{{selectedFilter.label}}</span>
<ul class="ddp-list-selectbox ddp-selectdown">
<li *ngFor="let filter of filterList">
<a href="javascript:" (click)="onChangedFilter(filter)">
{{filter.label}}
</a>
</li>
</ul>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import {Component, ElementRef, EventEmitter, Injector, Input, Output} from "@angular/core";
import {AbstractComponent} from "../../../common/component/abstract.component";

@Component({
selector: 'storage-filter-select-box',
templateUrl: 'storage-filter-select-box.component.html',
host: {
'(document:click)': 'onClickHost($event)',
},
})
export class StorageFilterSelectBoxComponent extends AbstractComponent {

@Output('changedFilter')
private _changedFilter: EventEmitter<any> = new EventEmitter();

@Input()
public filterList: any;

@Input()
public selectedFilter: any;

// select list show/hide flag
public isListShow: boolean;

// constructor
constructor(protected element: ElementRef,
protected injector: Injector) {
super(element, injector);
}

/**
* 컴포넌트 내부 host 클릭이벤트 처리
* @param event
*/
public onClickHost(event: MouseEvent) {
// 현재 element 내부에서 생긴 이벤트가 아닌경우 hide 처리
if (!this.elementRef.nativeElement.contains(event.target)) {
// close
this.isListShow = false;
}
}

public onChangedFilter(filter: any): void {
// change filter
this.selectedFilter = filter;
// event emit
this._changedFilter.emit(filter);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ export class StagingDbSelectDataComponent extends AbstractPopupComponent impleme
return fields.map((item) => {
// name
item.name = this._sliceTableName(item.name);
// alias
item.alias = this._sliceTableName(item.alias);
// if exist alias, convert alias
item.alias && (item.alias = this._sliceTableName(item.alias));
return item;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<div class="ddp-td-schema">
<!-- name -->
<div class="ddp-form-name ddp-type">
<span class="ddp-data-name" title="{{field['logicalName']}}"> {{field['logicalName']}}</span>
<span class="ddp-data-name" title="{{field.logicalName}}"> {{field.logicalName}}</span>
</div>
<!-- //name -->
</div>
Expand Down Expand Up @@ -323,7 +323,7 @@
{{'msg.metadata.th.dictionary' | translate}}
</th>
<td>
{{selectedField.dictionary?.name}}
{{selectedField.dictionary?.logicalName}}
</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,28 @@ export class ColumnDetailDataSourceComponent extends AbstractComponent implement
public filteredColumnList: any[];

// role type filter list
public roleTypeFilterList: any[];
public roleTypeFilterList: any[] = [
{ label: this.translateService.instant('msg.comm.ui.list.all'), value: 'ALL' },
{ label: this.translateService.instant('msg.comm.name.dim'), value: 'DIMENSION' },
{ label: this.translateService.instant('msg.comm.name.mea'), value: 'MEASURE' },
];
// selected role type filter
public selectedRoleTypeFilter: any;

// type filter list
public typeFilterList: any[];
public typeFilterList: any[] = [
{ label: this.translateService.instant('msg.comm.ui.list.all'), value: 'ALL' },
{ label: this.translateService.instant('msg.storage.ui.list.string'), value: 'STRING' },
{ label: this.translateService.instant('msg.storage.ui.list.boolean'), value: 'BOOLEAN' },
{ label: this.translateService.instant('msg.storage.ui.list.integer'), value: 'INTEGER', measure: true },
{ label: this.translateService.instant('msg.storage.ui.list.double'), value: 'DOUBLE', measure: true },
{ label: this.translateService.instant('msg.storage.ui.list.date'), value: 'TIMESTAMP' },
{ label: this.translateService.instant('msg.storage.ui.list.lnt'), value: 'LNT' },
{ label: this.translateService.instant('msg.storage.ui.list.lng'), value: 'LNG' },
{ label: this.translateService.instant('msg.storage.ui.list.geo.point'), value: 'GEO_POINT', derived: true },
{ label: this.translateService.instant('msg.storage.ui.list.geo.polygon'), value: 'GEO_POLYGON', derived: true },
{ label: this.translateService.instant('msg.storage.ui.list.geo.line'), value: 'GEO_LINE', derived: true },
];
// selected type filter
public selectedTypeFilter: any;
// type filter show | hide flag
Expand Down Expand Up @@ -519,7 +535,7 @@ export class ColumnDetailDataSourceComponent extends AbstractComponent implement
* Configure schema click event
*/
public onClickConfigureSchema(): void {
this._editConfigSchemaComp.init(this.datasource.id, this.datasource.fields);
this._editConfigSchemaComp.init(this.datasource.id, this.datasource.fields, this.roleTypeFilterList, this.typeFilterList);
// change markup position
$('#edit-config-schema').appendTo($('#layout-contents'));
}
Expand All @@ -529,25 +545,7 @@ export class ColumnDetailDataSourceComponent extends AbstractComponent implement
* @private
*/
private _initView(): void {
this.typeFilterList = [
{ label: this.translateService.instant('msg.comm.ui.list.all'), value: 'ALL' },
{ label: this.translateService.instant('msg.storage.ui.list.string'), value: 'STRING' },
{ label: this.translateService.instant('msg.storage.ui.list.boolean'), value: 'BOOLEAN' },
{ label: this.translateService.instant('msg.storage.ui.list.integer'), value: 'INTEGER', measure: true },
{ label: this.translateService.instant('msg.storage.ui.list.double'), value: 'DOUBLE', measure: true },
{ label: this.translateService.instant('msg.storage.ui.list.date'), value: 'TIMESTAMP' },
{ label: this.translateService.instant('msg.storage.ui.list.lnt'), value: 'LNT' },
{ label: this.translateService.instant('msg.storage.ui.list.lng'), value: 'LNG' },
{ label: this.translateService.instant('msg.storage.ui.list.geo.point'), value: 'GEO_POINT', derived: true },
{ label: this.translateService.instant('msg.storage.ui.list.geo.polygon'), value: 'GEO_POLYGON', derived: true },
{ label: this.translateService.instant('msg.storage.ui.list.geo.line'), value: 'GEO_LINE', derived: true },
];
this.selectedTypeFilter = this.typeFilterList[0];
this.roleTypeFilterList = [
{ label: this.translateService.instant('msg.comm.ui.list.all'), value: 'ALL' },
{ label: this.translateService.instant('msg.comm.name.dim'), value: 'DIMENSION' },
{ label: this.translateService.instant('msg.comm.name.mea'), value: 'MEASURE' },
];
this.selectedRoleTypeFilter = this.roleTypeFilterList[0];
// search
this.searchTextKeyword = '';
Expand Down Expand Up @@ -644,24 +642,10 @@ export class ColumnDetailDataSourceComponent extends AbstractComponent implement
*/
private _setMetaDataField(field: Field): void {
const fieldMetaData: MetadataColumn = _.find(this.metaData.columns, {'physicalName': field.name});
// logical name
field['logicalName'] = fieldMetaData.name;
// code table
field['codeTable'] = fieldMetaData.codeTable;
// dictionary
field['dictionary'] = fieldMetaData.dictionary;
// type
if (fieldMetaData.type) {
field['metaType'] = fieldMetaData.type;
}
// description
if (fieldMetaData.description) {
field['description'] = fieldMetaData.description;
}
// format
if (fieldMetaData.format) {
field['format'] = fieldMetaData.format;
}
}

/**
Expand Down
Loading