Skip to content

Commit

Permalink
raise version
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Mar 1, 2024
1 parent fab1b34 commit d082b39
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,16 @@ The provided block is an example of the adding the two inputs.

## Troubleshooting
> **Note**
In order to check if an extension is deployed look in the log file of the analytics engine for a relevant message:
In order to check if an extension is deployed look for a relevant message in the log file of the analytics engine:
`[correlator] 2023-12-04 12:29:43.752 INFO [139659199286272] - Applying extension "/config/extensions/Sample_AB_Extension.zip"`

The log file can be accessed: Administration> Ecosystem>Microservices>apama-ctrl-1c-4g>Logs

> **Note**
When a warning `Microservice: analytics-ext-service not subscribed. Please subscribe this service before using the analytics plugin!`appears please deploy the missing backend microservice.

![Backend microservice missing](resources/images/missing-microsevice.png)

------------------------------

These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
Expand Down
4 changes: 2 additions & 2 deletions analytics-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion analytics-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analytics-extension",
"version": "2.3.2",
"version": "2.3.3",
"description": "Extends the standard Cumulocity administration web application with a dialog to add Analytics Builder extensions.",
"repository": {
"type": "git",
Expand Down
25 changes: 22 additions & 3 deletions analytics-ui/src/shared/analytics-navigation.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ import { Injectable } from '@angular/core';
import { ApplicationService } from '@c8y/client';

import {
AlertService,
gettext,
NavigatorNode,
NavigatorNodeFactory,
NavigatorNodeFactory
} from '@c8y/ngx-components';
import { APPLICATION_ANALYTICS_BUILDER_SERVICE } from './analytics.model';

@Injectable()
export class AnalyticsNavigationFactory implements NavigatorNodeFactory {
constructor(private applicationService: ApplicationService) {}
constructor(
private applicationService: ApplicationService,
private alertService: AlertService
) {}

get() {
const navs: NavigatorNode[] = [];
Expand All @@ -22,6 +27,20 @@ export class AnalyticsNavigationFactory implements NavigatorNodeFactory {
preventDuplicates: true
});
navs.push(extensionsNode);
return navs;

return this.applicationService
.isAvailable(APPLICATION_ANALYTICS_BUILDER_SERVICE)
.then((data) => {
if (!data.data ) {
this.alertService.add({
text: 'Microservice: <code>analytics-ext-service</code> not subscribed. Please subscribe this service before using the analytics plugin!',
allowHtml: true,
type: 'warning'
});
console.error('analytics-ext-service not subscribed!');
return [];
}
return navs;
});
}
}
Binary file added resources/images/missing-microsevice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/images/safe-mode-complete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d082b39

Please sign in to comment.