From dcd3ee09772cf5cb9a14c0bfcc396695d174de71 Mon Sep 17 00:00:00 2001
From: Richard Treier
Date: Thu, 31 Aug 2023 13:23:21 +0200
Subject: [PATCH] fix: broker bugfixes for MDS 1.2 (#463)
* fix: popularity not logged
* feat: add missing name to mds legal page
* chore: CHANGELOG.md
---
CHANGELOG.md | 2 ++
.../catalog-page/catalog-page.component.ts | 10 ++++++++++
.../legal-notice-page/legal-notice-page.component.html | 4 +++-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8d14d6d98..dcf872e95 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,8 @@ the detailed section referring to by linking pull requests or issues.
#### Fixed
- Removed 404-causing login polling from broker UI
+- Broker: Fixed popularity not logged when clicking on a data offer.
+- Broker: Fixed missing name in legal notice
#### Removed
diff --git a/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts b/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts
index ddf10861b..b84dc3bca 100644
--- a/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts
+++ b/src/app/routes/broker-ui/catalog-page/catalog-page/catalog-page.component.ts
@@ -9,6 +9,7 @@ import {CatalogPageSortingItem} from '@sovity.de/broker-server-client';
import {AssetDetailDialogDataService} from '../../../../component-library/catalog/asset-detail-dialog/asset-detail-dialog-data.service';
import {AssetDetailDialogResult} from '../../../../component-library/catalog/asset-detail-dialog/asset-detail-dialog-result';
import {AssetDetailDialogComponent} from '../../../../component-library/catalog/asset-detail-dialog/asset-detail-dialog.component';
+import {BrokerServerApiService} from '../../../../core/services/api/broker-server-api.service';
import {FilterValueSelectItem} from '../filter-value-select/filter-value-select-item';
import {FilterValueSelectVisibleState} from '../filter-value-select/filter-value-select-visible-state';
import {CatalogActiveFilterPill} from '../state/catalog-active-filter-pill';
@@ -36,6 +37,7 @@ export class CatalogPageComponent implements OnInit, OnDestroy {
constructor(
private assetDetailDialogDataService: AssetDetailDialogDataService,
private matDialog: MatDialog,
+ private brokerServerApiService: BrokerServerApiService,
private store: Store,
) {}
@@ -82,6 +84,14 @@ export class CatalogPageComponent implements OnInit, OnDestroy {
}
onDataOfferClick(dataOffer: BrokerDataOffer) {
+ // Call the detail dialog endpoint so the view count is increased
+ this.brokerServerApiService
+ .dataOfferDetailPage({
+ assetId: dataOffer.assetId,
+ connectorEndpoint: dataOffer.connectorEndpoint,
+ })
+ .subscribe();
+
const data =
this.assetDetailDialogDataService.brokerDataOfferDetails(dataOffer);
const ref = this.matDialog.open(AssetDetailDialogComponent, {data});
diff --git a/src/app/routes/broker-ui/legal-notice-page/legal-notice-page/legal-notice-page.component.html b/src/app/routes/broker-ui/legal-notice-page/legal-notice-page/legal-notice-page.component.html
index 0224594fd..67af40fb3 100644
--- a/src/app/routes/broker-ui/legal-notice-page/legal-notice-page/legal-notice-page.component.html
+++ b/src/app/routes/broker-ui/legal-notice-page/legal-notice-page/legal-notice-page.component.html
@@ -14,6 +14,8 @@ DRM Datenraum Mobilität GmbH
>contact@mobility-dataspace.eu
-Represented by:
Manfred Rauhmeier, Michael Schäfer
+
+ Represented by:
Manfred Rauhmeier, Michael Schäfer, Dr. Tobias Miethaner
+
Registered with
Munich Local Court
under HRB 267003
VAT identification number
DE 345960882