Skip to content

Commit

Permalink
fix(frontend): backend availability error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Brunkow Moser committed May 13, 2024
1 parent 8a3ffa9 commit ed565a7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
15 changes: 14 additions & 1 deletion charts/digital-product-pass/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ backend:
- action: "USE"
logicalConstraint: "odrl:and"
constraints:
- leftOperand: "Membership"
- leftOperand: "cx-policy:Membership"
operator: "odrl:eq"
rightOperand: "active"
- leftOperand: "cx-policy:FrameworkAgreement"
Expand All @@ -207,6 +207,19 @@ backend:
rightOperand: "cx.circular.dpp:1"
prohibition: []
obligation: []
- permission:
- action: "USE"
logicalConstraint: "odrl:and"
constraints:
- leftOperand: "cx-policy:Membership"
operator: "odrl:eq"
rightOperand: "active"
- leftOperand: "cx-policy:FrameworkAgreement"
operator: "odrl:eq"
rightOperand: "circulareconomy:1.0"
prohibition: [ ]

Check failure on line 220 in charts/digital-product-pass/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

220:25 [brackets] too many spaces inside empty brackets
obligation: [ ]

Check failure on line 221 in charts/digital-product-pass/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

221:24 [brackets] too many spaces inside empty brackets

digitalTwinRegistry:
endpoints:
search: "/lookup/shells"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ configuration:
- action: "USE"
logicalConstraint: "odrl:and"
constraints:
- leftOperand: "Membership"
- leftOperand: "cx-policy:Membership"
operator: "odrl:eq"
rightOperand: "active"
- leftOperand: "cx-policy:FrameworkAgreement"
Expand Down
5 changes: 1 addition & 4 deletions dpp-frontend/src/services/BackendService.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ export default class BackendService {
try {
processResponse = await this.createProcess(ids["discoveryId"], authentication);
} catch (e) {
console.log("CATCH")
console.log(processResponse);
return processResponse;
}
console.log("PROCESS RESPONSE")
console.log(processResponse);

// Check if the process is successful or if the data is not retrieved
if (!processResponse || (jsonUtil.exists("status", processResponse) && processResponse["status"] != 200) || !jsonUtil.exists("data", processResponse)) {
return processResponse;
Expand Down

0 comments on commit ed565a7

Please sign in to comment.