Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit c774782

Browse files
authored
Merge pull request #131 from International-Data-Spaces-Association/develop
Version 9.0.0
2 parents 4c70652 + 555b3ff commit c774782

File tree

17 files changed

+179
-198
lines changed

17 files changed

+179
-198
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
All notable changes to this project will be documented in this file.
33
(Skipped major version 1, 2 and 3 to match versioning of IDS DataSpaceConnector)
44

5+
## [9.0.0] - 2022-02-07 (compatible with DSC 7.0.0)
6+
7+
### Added
8+
- Data Offering: Add local file
9+
10+
### Changes
11+
- Use new DSC v.7 API
12+
- Brokers / App Stores: On edit show URL as label (instead of textfield)
13+
14+
### Fixes
15+
- Data Consumption: No validation on resource meta data dialog
16+
- Data Consumption: Show correct rules in contract dialog
17+
518
## [8.8.1] - 2022-02-03 (compatible with DSC 6.5.3)
619

720
### Fixes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dataspaceconnector-ui",
3-
"version": "8.8.1",
3+
"version": "9.0.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve --open --port 8082",

src/datamodel/clientDataModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export default {
282282
let id = dataUtils.getIdOfConnectorResponse(genericEndpoint);
283283
let accessUrl = undefined;
284284
accessUrl = genericEndpoint.location;
285-
let dataSourceId = dataUtils.getIdOfLink(genericEndpoint, "dataSource");
285+
let dataSourceId = dataUtils.getIdOfLink(genericEndpoint, "datasource");
286286
let username = undefined;
287287
let password = undefined;
288288
let apiKey = undefined;

src/pages/PageStructure.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import DashboardPage from "@/pages/dashboard/DashboardPage.vue";
22
import IDSResourcesPage from "@/pages/dataoffering/resources/IDSResourcesPage.vue";
33
import AddResourcePage from "@/pages/dataoffering/resources/addresource/AddResourcePage.vue";
4-
import RoutesPage from "@/pages/dataoffering/routes/RoutesPage.vue";
5-
import AddRoutePage from "@/pages/dataoffering/routes/addroute/AddRoutePage.vue";
64
import IDSDataConsumptionPage from "@/pages/dataconsumption/dataconsumption/IDSDataConsumptionPage.vue";
75
import IDSResourcesPageConsumption from "@/pages/dataconsumption/resources/IDSResourcesPageConsumption.vue";
86
import BrokersPage from "@/pages/brokers/BrokersPage.vue";
@@ -46,21 +44,6 @@ export default {
4644
path: "backendconnectionsoffering",
4745
name: "Backend Connections (Offering)",
4846
component: BackendConnectionsPage
49-
}, {
50-
path: "routesoffering",
51-
name: "Routes (Offering)",
52-
component: RoutesPage,
53-
subpages: [{
54-
path: "addroute",
55-
name: "Add Route",
56-
component: AddRoutePage,
57-
subpages: []
58-
}, {
59-
path: "showroute",
60-
name: "Show Route",
61-
component: AddRoutePage,
62-
subpages: []
63-
}]
6447
}, {
6548
path: "catalogsoffering",
6649
name: "Catalogs (Offering)",
@@ -86,10 +69,6 @@ export default {
8669
path: "backendconnectionsconsumption",
8770
name: "Backend Connections (Consumation)",
8871
component: null
89-
}, {
90-
path: "routesconsumption",
91-
name: "Routes (Consumation)",
92-
component: null
9372
}]
9473
}, {
9574
path: "brokers",

src/pages/appstores/dialog/AddAppStoreDialog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
<v-card-text>
1515
<v-text-field label="Title" v-model="appstoreTitle" :rules="defaultRule"> </v-text-field>
16-
<v-text-field label="URL" v-model="url" :rules="urlRule" :readonly="urlReadOnly">
16+
<p v-if="urlReadOnly">URL: {{url}}</p>
17+
<v-text-field label="URL" v-model="url" :rules="urlRule" :readonly="urlReadOnly" v-if="!urlReadOnly">
1718
</v-text-field>
1819
</v-card-text>
1920

src/pages/brokers/dialog/AddBrokerDialog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
<v-card-text>
1515
<v-text-field label="Title" v-model="brokerTitle" :rules="defaultRule"> </v-text-field>
16-
<v-text-field label="URL" v-model="url" :rules="urlRule" :readonly="urlReadOnly">
16+
<p v-if="urlReadOnly">URL: {{url}}</p>
17+
<v-text-field label="URL" v-model="url" :rules="urlRule" v-if="!urlReadOnly">
1718
</v-text-field>
1819
</v-card-text>
1920

src/pages/dataconsumption/dataconsumption/IDSDataConsumptionPage.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ export default {
225225
}
226226
},
227227

228-
showRepresentations(item) {
229-
this.$data.resources.forEach(element => {
228+
async showRepresentations(item) {
229+
for (let element of this.$data.resources) {
230230
if (element.id == item.id) {
231231
let idsResource = element.idsResource;
232232
this.$data.selectedRepresentations = [];
@@ -240,12 +240,15 @@ export default {
240240
}
241241
this.$data.selectedResource = idsResource;
242242
for (let ruleJson of this.$data.selectedResource["ids:contractOffer"][0]["ids:permission"]) {
243-
let ruleDescription = ruleJson["ids:description"][0]["@value"];
244-
let ruleName = dataUtils.convertDescriptionToPolicyName(ruleDescription);
245-
ruleJson.type = dataUtils.convertPolicyNameToType(ruleName);
243+
ruleJson["@context"] = {
244+
"xsd": "http://www.w3.org/2001/XMLSchema#",
245+
"ids": "https://w3id.org/idsa/core/",
246+
"idsc": "https://w3id.org/idsa/code/"
247+
};
248+
ruleJson.type = await dataUtils.getPolicyNameByPattern(JSON.stringify(ruleJson));
246249
}
247250
}
248-
});
251+
}
249252
this.$data.selectedRepresentation = {};
250253
this.$data.selectedArtifacts = [];
251254
this.$data.selectedIdsArtifact = {};

src/pages/dataconsumption/dataconsumption/artifactdialog/ArtifactDialog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
<v-card-text>
88
<h4 class="data-consumption-page-dialog-title">Rules:</h4>
9-
<policy-line v-for='rule in rules' :ruleJson="rule" :policyName="rule.type" :readonly=true>
9+
<policy-line v-for='rule in rules' :key="rule['@id']" :ruleJson="rule" :policyName="rule.type"
10+
:readonly=true>
1011
</policy-line>
1112
<h4 class="data-consumption-page-dialog-title">License:</h4>
1213
{{ license }}

src/pages/dataconsumption/dataconsumption/artifactdialog/ArtifactDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export default {
1616
mounted: function () { },
1717
methods: {
1818
show(rules, license, artifact, callback) {
19-
this.$data.dialog = true;
2019
this.$data.rules = rules;
2120
this.$data.license = license;
2221
this.$data.artifact = artifact;
2322
this.$data.callback = callback;
23+
this.$data.dialog = true;
2424
},
2525
clickAcceptContract() {
2626
this.$data.dialog = false;

src/pages/dataoffering/backendconnections/dialog/AddBackendConnectionDialog.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
<v-form v-model="valid" ref="form">
1616
<v-text-field ref="tfURL" label="URL" v-model="url" :rules="urlRule"> </v-text-field>
1717
<v-select label="Source Type" v-model="sourceType" :items="sourceTypes"></v-select>
18+
<v-text-field v-if="sourceType === 'Database'" label="Driver class name" v-model="driverClassName"
19+
:rules="requiredRule">
20+
</v-text-field>
1821
<v-tabs class="pagestab" v-model="active_tab" ref="pagestab">
1922
<v-tab>Basic</v-tab>
20-
<v-tab>API-Key</v-tab>
23+
<v-tab v-if="sourceType === 'REST'">API-Key</v-tab>
2124
<v-tab-item :eager="true">
2225
<v-text-field label="Username" v-model="username"> </v-text-field>
2326
<v-text-field label="Password" v-model="password" :type="showPassword ? 'text' : 'password'"
@@ -26,7 +29,8 @@
2629
</v-text-field>
2730
</v-tab-item>
2831
<v-tab-item :eager="true">
29-
<v-text-field label="API-Key" v-model="apiKey"> </v-text-field>
32+
<v-text-field label="Header name" v-model="authHeaderName"> </v-text-field>
33+
<v-text-field label="Header value" v-model="authHeaderValue"> </v-text-field>
3034
</v-tab-item>
3135
</v-tabs>
3236

0 commit comments

Comments
 (0)