Skip to content

Commit

Permalink
#725 remove test code in information tab
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-wonjune committed Jan 7, 2019
1 parent f2d11b2 commit 8c60cf3
Showing 1 changed file with 5 additions and 33 deletions.
Expand Up @@ -460,46 +460,18 @@ export class InformationDataSourceComponent extends AbstractPopupComponent imple
* @returns {string}
*/
public getPartitionKeys(): string {
const test = [
{
"ym":"201704",
"dd":"20"
},
{
"ym":"201704",
"dd":"21",
"mm":"3131",
},
{
"ym":"201704",
}
]
// data range 가 있다면
// if (this.getIngestion.partitions && this.getIngestion.partitions.length !== 0) {
// return this.getIngestion.partitions.reduce((acc, partition) => {
// acc = acc === '' ? Object.keys(partition).reduce((line, key) => {
// line = line === '' ? `${key}=${partition[key]}` : `/${key}=${partition[key]}`;
// return line;
// }, '') : '<br>' + Object.keys(partition).reduce((line, key) => {
// line = line === '' ? `${key}=${partition[key]}` : `/${key}=${partition[key]}`;
// return line;
// }, '');
// return acc;
// }, '');
// } else {
// return this.translateService.instant('msg.storage.ui.set.false');
// }
if (test && test.length !== 0) {
return test.reduce((acc, partition) => {
if (this.getIngestion.partitions && this.getIngestion.partitions.length !== 0) {
return this.getIngestion.partitions.reduce((acc, partition) => {
acc += acc === ''
? Object.keys(partition).reduce((line, key) => {
line += line === '' ? `${key}=${partition[key]}` : `/${key}=${partition[key]}`;
return line;
}, '')
: '<br>' + Object.keys(partition).reduce((line, key) => {
line += line === '' ? `${key}=${partition[key]}` : `/${key}=${partition[key]}`;
return line;
}, '');
line += line === '' ? `${key}=${partition[key]}` : `/${key}=${partition[key]}`;
return line;
}, '');
return acc;
}, '');
} else {
Expand Down

0 comments on commit 8c60cf3

Please sign in to comment.