Skip to content

Commit

Permalink
add column with entension name
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Nov 22, 2023
1 parent 530966c commit 0af904f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/analytics/list/block.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class BlockGridComponent implements OnInit {
path: "name",
filterable: false,
dataType: ColumnDataType.TextShort,
gridTrackSize: '15%',
gridTrackSize: '10%',
visible: true,
},
{
Expand All @@ -82,6 +82,15 @@ export class BlockGridComponent implements OnInit {
filterable: true,
sortable: true,
},
{
header: "Extension Name",
name: "extension",
path: "extension",
gridTrackSize: '15%',

filterable: true,
sortable: true,
},
];

pagination: Pagination = {
Expand Down
1 change: 1 addition & 0 deletions src/shared/analytics.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface CEP_Block {
producesOutput: string;
description: string;
custom: boolean;
extension: string;
name: string;
category: Category;
}
Expand Down
4 changes: 3 additions & 1 deletion src/shared/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ export class AnalyticsService {
const extension: CEP_Extension = await this.getCEP_Extension(
extensionName
);
const extensionNameAbbreviated = extensionName.match(/(.+?)(\.[^.]*$|$)/)[1];
extension.analytics.forEach((block) => {
//result.push({ name: block.name, category: block.category });
const cepBlock = block as CEP_Block;
//console.log(block.id);
cepBlock.custom = !block.id.startsWith('apama.analyticsbuilder.blocks') && !block.id.startsWith('apama.analyticskit.blocks.core') ;
cepBlock.custom = !block.id.startsWith('apama.analyticsbuilder.blocks') && !block.id.startsWith('apama.analyticskit.blocks.core');
cepBlock.extension = extensionNameAbbreviated;
result.push(cepBlock);
});
}
Expand Down

0 comments on commit 0af904f

Please sign in to comment.