Skip to content

Commit

Permalink
v2.9.2 hotfix to fix token freeze crash and timeouts (#1728)
Browse files Browse the repository at this point in the history
* aggregate documents by custom fields

Signed-off-by: artembuslaev <[email protected]>

* update Dovu policy (fix schemas)

* update validation errors

Signed-off-by: Stepan Kiryakov <[email protected]>

* update validation errors

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* GitBook: [#213] Added GroupByFields property in aggregateBlock

* GitBook: [#214] Setting up local IPFS Node

* Setting Local IPFS node updated in ReadMe

* GitBook: [#215] Added Multi Policy APIs

* update Dovu policy (fix schemas)

* update validation errors

Signed-off-by: Stepan Kiryakov <[email protected]>

* update validation errors

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* GitBook: [#213] Added GroupByFields property in aggregateBlock

* GitBook: [#214] Setting up local IPFS Node

* Setting Local IPFS node updated in ReadMe

* GitBook: [#215] Added Multi Policy APIs

* MBP projects

* bump version

Signed-off-by: simvalery <[email protected]>

* change hedera explorer

Signed-off-by: artembuslaev <[email protected]>

* always display delete action on selected block

Signed-off-by: artembuslaev <[email protected]>

* update hedera-sdk

Signed-off-by: simvalery <[email protected]>

* GitBook: [#220] Multi Policy UI

* GitBook: [#221] corrected local node files

* added message chunk setting

Signed-off-by: artembuslaev <[email protected]>

* #1014 MBP projects

* update schemas

* rename

* Updated Verra Timestamp

* added settings to change body request size

Signed-off-by: artembuslaev <[email protected]>

* add demo policy

* GitBook: [#224] Changed DragonGlass to Ledger Works in FAQs

* GitBook: [#225] how to change Explorer URL

* add additional events

* update lint

* GitBook: [#227] ImpactAddon block added

* GitBook: [#228] UI Automation Tests

* GitBook: [#229] added AddiitonalMintEvent

* GitBook: [#230] Added Impacts section in ReportBlock

* fix display token type

* fix dependency

Signed-off-by: simvalery <[email protected]>

* added IREC 8.1,8.2 in ReadMe

* GitBook: [#231] Added IREC and Verra Intro

* policy comparison

* GitBook: [#232] Remote GHG Policy added

* GitBook: [#233] Remote GHG Policy Demo images

* GitBook: [#234] Artifacts APIs added

* update

* http request block config

Signed-off-by: simvalery <[email protected]>

* update

* update

* http-request-block

Signed-off-by: simvalery <[email protected]>

* fix lint

Signed-off-by: simvalery <[email protected]>

* add validation

Signed-off-by: simvalery <[email protected]>

* fix

Signed-off-by: simvalery <[email protected]>

* update

* custom logic worker

Signed-off-by: simvalery <[email protected]>

* tokens retirement

Signed-off-by: artembuslaev <[email protected]>

* fixed endpoints, changed labels

Signed-off-by: artembuslaev <[email protected]>

* tokens retirement fixes

Signed-off-by: artembuslaev <[email protected]>

* up version

Signed-off-by: simvalery <[email protected]>

* fix

Signed-off-by: artembuslaev <[email protected]>

* fixed issue with double publishing retire schema

Signed-off-by: artembuslaev <[email protected]>

* fix deps

Signed-off-by: simvalery <[email protected]>

* GitBook: [#235] Retirement UI and APIs added

* The worker-service now operates on the network specified by guardian-service.

Signed-off-by: Giuseppe Bertone <[email protected]>

* fix updating token balance in retirement process

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#236] corrected typo in retirement

* added max transaction fee setting to worker

Signed-off-by: artembuslaev <[email protected]>

* update default max fee

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#237] Updated env parameters in installation

* up version

Signed-off-by: simvalery <[email protected]>

* GitBook: [#239] UI Properties of Interface step Block deprecated

* updated retirement docs, added some checks

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#240] Updated Contract APIs

* fix preset and readonly fields in condition section

Signed-off-by: artembuslaev <[email protected]>

* remove setImmidiate

Signed-off-by: simvalery <[email protected]>

* update string formats ui validation

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#241] HTTP Request Block added

* GitBook: [#242] Added blocks to available blocks

* remove redundant logs

Signed-off-by: simvalery <[email protected]>

* CVE-2022-25878

Signed-off-by: simvalery <[email protected]>

* disable autocomplete on tokens count

Signed-off-by: artembuslaev <[email protected]>

* change placeholder for url type field

Signed-off-by: artembuslaev <[email protected]>

* added retirement contract code

Signed-off-by: artembuslaev <[email protected]>

* update

* Changed the iREC User Guide URL in ReadMe

* Updated Verra User Guide link

* fix lint

Signed-off-by: simvalery <[email protected]>

* fix tests

Signed-off-by: simvalery <[email protected]>

* GitBook: [#243] Corrected Creation of Root API in API Demo Guide of iREC

* compare tokens

* compare conditions

* update

* update

* update

* export in csv

* update tymlez policies

Signed-off-by: artembuslaev <[email protected]>

* update

* update

* fix

* fix

* update

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* GitBook: [#244] Corrected time tracking format in GHG

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* GitBook: [#245] No subject

* GitBook: [#247] Policy Differentiation UI

* GitBook: [#248] No subject

* GitBook: [#250] No subject

* GitBook: [#251] Policy Differentiation UI

* GitBook: [#252] Policy Differentiation APIs

* GitBook: [#253] Schema Differentiation UI

* GitBook: [#254] Schema Diff APIs

* added possibility to include incomplete pairs

Signed-off-by: artembuslaev <[email protected]>

* added contract code, fix

Signed-off-by: artembuslaev <[email protected]>

* fix incomplete retire request for nft opposite token

Signed-off-by: artembuslaev <[email protected]>

* fix custom logic block error handling

Signed-off-by: artembuslaev <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix

Signed-off-by: Stepan Kiryakov <[email protected]>

* policy service

Signed-off-by: simvalery <[email protected]>

* fixes

Signed-off-by: simvalery <[email protected]>

* fix build

Signed-off-by: simvalery <[email protected]>

* fix build

Signed-off-by: simvalery <[email protected]>

* fix tests

Signed-off-by: simvalery <[email protected]>

* add title

* fix

Signed-off-by: artembuslaev <[email protected]>

* fix select user role
fix block updates

Signed-off-by: simvalery <[email protected]>

* refactor runner

Signed-off-by: simvalery <[email protected]>

* fix docker build

Signed-off-by: simvalery <[email protected]>

* GitBook: [#255] Updated Retirement screens

* add package lock

Signed-off-by: simvalery <[email protected]>

* updated contract file id

Signed-off-by: artembuslaev <[email protected]>

* update transmute

Signed-off-by: simvalery <[email protected]>

* update transmute

Signed-off-by: simvalery <[email protected]>

* Temp fix

Signed-off-by: simvalery <[email protected]>

* fix

Signed-off-by: simvalery <[email protected]>

* fixes

Signed-off-by: simvalery <[email protected]>

* fix available block for interfaceDocumentSourceBlock

Signed-off-by: artembuslaev <[email protected]>

* fix trustchain

Signed-off-by: simvalery <[email protected]>

* GitBook: [#257] Updated timestamps

* Updated iREC Timestamps

* Updated Verra Timestamps

* Updated GHG timestamp

* GitBook: [#258] Updated Topic ID and Contract ID

* fix lint

Signed-off-by: simvalery <[email protected]>

* fix deps

Signed-off-by: simvalery <[email protected]>

* refactor

Signed-off-by: simvalery <[email protected]>

* fix lint

Signed-off-by: simvalery <[email protected]>

* fix receive external data

Signed-off-by: simvalery <[email protected]>

* refactor
Signed-off-by: simvalery <[email protected]>

Signed-off-by: simvalery <[email protected]>

* add .env

Signed-off-by: simvalery <[email protected]>

* remove api key

Signed-off-by: simvalery <[email protected]>

* fix versions

Signed-off-by: simvalery <[email protected]>

* fix policy init

Signed-off-by: simvalery <[email protected]>

* fix lint

Signed-off-by: simvalery <[email protected]>

* initialization messages

Signed-off-by: simvalery <[email protected]>

* optiomize docker builds

Signed-off-by: simvalery <[email protected]>

* GitBook: [#259] Added Mongo-admin-panel, target deployment

* fix builds

Signed-off-by: simvalery <[email protected]>

* fix name

Signed-off-by: simvalery <[email protected]>

* fix duplicate retire requests

Signed-off-by: artembuslaev <[email protected]>

* fix contract query transaction fee

Signed-off-by: artembuslaev <[email protected]>

* production builds

Signed-off-by: simvalery <[email protected]>

* up version

Signed-off-by: simvalery <[email protected]>

* GitBook: [#261] library of policy

* fix draft policy requests

Signed-off-by: simvalery <[email protected]>

* up version

Signed-off-by: simvalery <[email protected]>

* fix task callback undefined

Signed-off-by: simvalery <[email protected]>

* update retire requests in swagger

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#262] Role Library Policy

* GitBook: [#263] Creation of forms library example

* fix update json;
fix check aggregate block props

Signed-off-by: Stepan Kiryakov <[email protected]>

* fix validation

Signed-off-by: simvalery <[email protected]>

* fix validation

Signed-off-by: simvalery <[email protected]>

* fix validation

Signed-off-by: simvalery <[email protected]>

* up version

Signed-off-by: simvalery <[email protected]>

* fix transaction response callback

Signed-off-by: artembuslaev <[email protected]>

* GitBook: [#264] Data input via forms example

* GitBook: [#265] Token Policy Example

* fix worker events

Signed-off-by: simvalery <[email protected]>

* fix destroy model

Signed-off-by: simvalery <[email protected]>

* GitBook: [#266] MRV Document Operations Example

* GitBook: [#267] TrustChain Report Library Example

* fix

Signed-off-by: simvalery <[email protected]>

* up version

Signed-off-by: simvalery <[email protected]>

* kill destroyed policy instance

Signed-off-by: simvalery <[email protected]>

* fix timeout error

Signed-off-by: simvalery <[email protected]>

---------

Signed-off-by: artembuslaev <[email protected]>
Signed-off-by: Stepan Kiryakov <[email protected]>
Signed-off-by: simvalery <[email protected]>
Signed-off-by: Giuseppe Bertone <[email protected]>
Co-authored-by: artembuslaev <[email protected]>
Co-authored-by: artembuslaev <[email protected]>
Co-authored-by: Stepan Kiryakov <[email protected]>
Co-authored-by: prernaa.agarwal <[email protected]>
Co-authored-by: prernaadev01 <[email protected]>
Co-authored-by: Stepan Kirjakov <[email protected]>
Co-authored-by: Giuseppe Bertone <[email protected]>
  • Loading branch information
8 people authored Feb 2, 2023
1 parent a9516f5 commit 20d16e3
Show file tree
Hide file tree
Showing 46 changed files with 159 additions and 51 deletions.
2 changes: 1 addition & 1 deletion api-docs/api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
title: "Guardian"
description: "The Guardian is a modular open-source solution that includes best-in-class identity management and decentralized ledger technology (DLT) libraries. At the heart of the Guardian solution is a sophisticated Policy Workflow Engine (PWE) that enables applications to offer a requirements-based tokenization implementation."
version: "2.9.1"
version: "2.9.2"
contact:
name: "API developer"
url: "https://envisionblockchain.com"
Expand Down
2 changes: 1 addition & 1 deletion api-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-docs",
"version": "2.9.1",
"version": "2.9.2",
"description": "Swagger Documentation",
"main": "dist/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@types/express-fileupload": "^1.4.1",
"dotenv": "^16.0.0",
"express": "^4.17.1",
Expand Down Expand Up @@ -52,5 +52,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.9.1"
"version": "2.9.2"
}
2 changes: 1 addition & 1 deletion api-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-tests",
"version": "2.9.1",
"version": "2.9.2",
"description": "API Tests",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions auth-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -47,5 +47,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/ui-service.xml"
},
"version": "2.9.1"
"version": "2.9.2"
}
4 changes: 2 additions & 2 deletions common/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/interfaces": "^2.9.1",
"@guardian/interfaces": "^2.9.2",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/migrations-mongodb": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
Expand Down Expand Up @@ -35,5 +35,5 @@
"prepack": "npm run build:prod",
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.9.1"
"version": "2.9.2"
}
6 changes: 6 additions & 0 deletions common/src/helpers/do-nothing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Do nothing
*/
// tslint:disable-next-line:no-empty
export function doNothing() {
}
1 change: 1 addition & 0 deletions common/src/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export * from './migration';
export * from './settings-container';
export * from './service-requests-base';
export * from './run-function-async'
export * from './do-nothing'
Binary file added docs/.gitbook/assets/0 (3).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 docs/.gitbook/assets/1 (3).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 docs/.gitbook/assets/10 (3).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 docs/.gitbook/assets/11 (5).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 docs/.gitbook/assets/12 (4).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 docs/.gitbook/assets/13 (4).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 docs/.gitbook/assets/14 (3).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 docs/.gitbook/assets/15 (2).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 docs/.gitbook/assets/16 (2).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 docs/.gitbook/assets/17 (2).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 docs/.gitbook/assets/18 (2).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 docs/.gitbook/assets/19 (3).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 docs/.gitbook/assets/2 (4).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 docs/.gitbook/assets/3 (4).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 docs/.gitbook/assets/4 (3).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 docs/.gitbook/assets/5 (2) (1).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 modified docs/.gitbook/assets/5 (2).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 docs/.gitbook/assets/6 (3).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 docs/.gitbook/assets/7 (3).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 docs/.gitbook/assets/8 (4).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 docs/.gitbook/assets/9 (3).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@
* [🔢 Data input via Forms, using Roles to partition user activities.](guardian/standard-registry/policies/library-of-policy-examples/data-input-via-forms-using-roles-to-partition-user-activities..md)
* [🪙 Token Operations](guardian/standard-registry/policies/library-of-policy-examples/token-operations.md)
* [🔎 MRV Document Operations](guardian/standard-registry/policies/library-of-policy-examples/mrv-document-operations.md)
* [⛓ TrustChain reports](guardian/standard-registry/policies/library-of-policy-examples/trustchain-reports.md)
* [📔 Retirement Contract](guardian/standard-registry/retirement-contract/README.md)
* [💻 Creating / Importing Contract UI](guardian/standard-registry/retirement-contract/creating-importing-contract-ui.md)
* [💻 Creating Token Pair UI](guardian/standard-registry/retirement-contract/creating-token-pair-ui.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ For this ‘**interfaceStepBlock**’ is required with ‘**Cyclic**’ option e

2.3 Then select the previously created Schema

![Selecting already created Schema](<../../../../.gitbook/assets/5 (2).png>)
![Selecting already created Schema](<../../../../.gitbook/assets/5 (2) (1).png>)

2.4 Select ‘New UUID’ to configure automatic generation of unique IDs for each document

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# ⛓ TrustChain reports

**Task**

Create a report to check a chain of documents.

## **Preparation**

We will use [example 4](mrv-document-operations.md) to assemble multiple documents to build a realistic-looking _Trustchain_.

Let’s add several additional attributes into the documents to simplify the document search.

![Adding Entity](<../../../../.gitbook/assets/0 (3).png>)

![Adding Status](<../../../../.gitbook/assets/1 (3).png>)

![Adding Entity ](<../../../../.gitbook/assets/2 (4).png>)

![Adding Entity](<../../../../.gitbook/assets/3 (4).png>)

![Adding Type Attribute](<../../../../.gitbook/assets/4 (3).png>)

## **Building the trustchain report:**

1. Using the ‘_**reportBlock**_

1.1 Add new container

![Adding new container](<../../../../.gitbook/assets/5 (2).png>)

1.2 Add ‘_**reportBlock**_

![Adding reportBlock](<../../../../.gitbook/assets/6 (3).png>)

In Guardian policy ‘**reportBlock**’ finds VP documents based on their _id_ or _hash_ and displays document information, related policy and token information. To retrieve the linked information ‘**reportItemBlock**’ must be used.

1.3 We will build the following chain in this example: **mint **_**VP – MRV Report – Project (approved and signed the the Approver) – Approver document – Project (created and signed by the user) – User document.**_

We will need 6 ‘**reportItemBlock**’ items correspondingly, 1 per each document.

![Adding 6 reportItemBlocks ](<../../../../.gitbook/assets/7 (3).png>)

The ‘**reportItemBlock**’ items are executed sequentially, thus in the filter for each consecutive ‘**reportItemBlock**’ we can use values from the previous blocks/documents.

1.3.1 ‘**mint\_document**’. To find this document which described the token mint operation we will use one of the **Common Variables** - _actionId_

![Using actionId value](<../../../../.gitbook/assets/8 (4).png>)

1.3.2 ’**report\_document**__. To find the MRV report (i.e. data document which was the basis of the decision to mint tokens) we will also use one of the **Common Variables**_documentId_

![Adding documentId value](<../../../../.gitbook/assets/9 (3).png>)

To find further documents we will need to use values from the **Ref** variable which point to the previous document. Let’s save in a new variable:

![Using Ref variable](<../../../../.gitbook/assets/10 (3).png>)

1.3.3 ’**project\_document(approver)**__ - Lets use the previously defined variable alongside the static filtration parameters.

![Using previously defined variables](<../../../../.gitbook/assets/11 (5).png>)

Save the author of the document signature so we can display the information about the user later

![Saving document signature](<../../../../.gitbook/assets/12 (4).png>)

**Use the same approach to continue the chain until the end.**

1.3.4 _****_**approver\_document**_****_

![defining approver\_document block](<../../../../.gitbook/assets/13 (4).png>)

1.3.5 ’**project\_document(user)**__

![defining project\_document(user) block](<../../../../.gitbook/assets/14 (3).png>)

1.3.6 ’**user\_document**__

![defining user\_document block](<../../../../.gitbook/assets/15 (2).png>)

2. To activate the ‘**reportBlock**’ an id or a hash of the VP document is needed, we will add the grid containing the list of the VP documents and links to the trustchain.

2.1 Add ‘**interfaceContainerBlock**’, ‘**interfaceDocumentsSourceBlock**’ and ‘**documentsSourceAddon**

![Adding 3 Blocks](<../../../../.gitbook/assets/16 (2).png>)

2.2 Add new column with the type **BUTTON**

![Adding type Button](<../../../../.gitbook/assets/17 (2).png>)

Setting the **Action** to LINK will cause the Policy Engine to attempt to switch the display to the target policy block upon the user clicking the link (if possible).

## **Demo**

### VPs:

<figure><img src="../../../../.gitbook/assets/18 (2).png" alt=""><figcaption></figcaption></figure>

### Trustchain:

<figure><img src="../../../../.gitbook/assets/19 (3).png" alt=""><figcaption></figcaption></figure>
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@
"test": "ng test",
"watch": "ng build --watch --configuration development --output-path ../www-data"
},
"version": "2.9.1"
"version": "2.9.2"
}
6 changes: 3 additions & 3 deletions guardian-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@hashgraph/sdk": "^2.19.2",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
Expand Down Expand Up @@ -76,5 +76,5 @@
"test:local": "mocha tests/**/*.test.js",
"test:stability": "mocha tests/stability.test.js"
},
"version": "2.9.1"
"version": "2.9.2"
}
4 changes: 2 additions & 2 deletions guardian-service/src/helpers/workers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Singleton } from '@helpers/decorators/singleton';
import { GenerateUUIDv4, IActiveTask, ITask, IWorkerRequest, WorkerEvents } from '@guardian/interfaces';
import { ServiceRequestsBase } from '@helpers/service-requests-base';
import { MessageResponse } from '@guardian/common';
import { doNothing, MessageResponse } from '@guardian/common';
import { Environment } from '@hedera-modules';

/**
Expand Down Expand Up @@ -134,7 +134,7 @@ export class Workers extends ServiceRequestsBase {

this.channel.response(WorkerEvents.PUSH_TASK, async (msg: any) => {
const { task, priority, isRetryableTask, attempts } = msg;
this.addTask(task, priority, isRetryableTask, attempts);
this.addTask(task, priority, isRetryableTask, attempts).then(doNothing, doNothing);
return new MessageResponse(null);
})
}
Expand Down
2 changes: 1 addition & 1 deletion interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"prepack": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.9.1"
"version": "2.9.2"
}
6 changes: 3 additions & 3 deletions logger-service/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
"@web-std/fetch": "3.0.0",
Expand Down Expand Up @@ -37,5 +37,5 @@
"start": "node dist/index.js",
"watch": "nodemon src/index.ts"
},
"version": "2.9.1"
"version": "2.9.2"
}
4 changes: 2 additions & 2 deletions mrv-sender/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/common": "^2.9.2",
"@transmute/credentials-context": "0.7.0-unstable.80",
"@transmute/did-context": "0.7.0-unstable.80",
"@transmute/ed25519-signature-2018": "0.7.0-unstable.80",
Expand Down Expand Up @@ -30,5 +30,5 @@
"dev:docker": "nodemon .",
"start": "node dist/index.js"
},
"version": "2.9.1"
"version": "2.9.2"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"worker-service",
"policy-service"
],
"version": "2.9.1"
"version": "2.9.2"
}
6 changes: 3 additions & 3 deletions policy-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@hashgraph/sdk": "^2.19.2",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
Expand Down Expand Up @@ -75,5 +75,5 @@
"test:local": "mocha tests/**/*.test.js",
"test:stability": "mocha tests/stability.test.js"
},
"version": "2.9.1"
"version": "2.9.2"
}
2 changes: 1 addition & 1 deletion policy-service/src/api/policy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function stopPolicyProcess(policyId: string, policyServiceName: string): void {
const logger = new Logger();

if (models.has(policyServiceName)) {
models.get(policyServiceName).kill(0);
models.get(policyServiceName).kill(9);
models.delete(policyServiceName);

logger.info(`Policy process killed`, ['POLICY-SERVICE', policyId]);
Expand Down
3 changes: 2 additions & 1 deletion policy-service/src/helpers/workers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Singleton } from '@helpers/decorators/singleton';
import { GenerateUUIDv4, IActiveTask, ITask, WorkerEvents } from '@guardian/interfaces';
import { ServiceRequestsBase } from '@helpers/service-requests-base';
import { Environment } from '@hedera-modules';
import { doNothing } from '@guardian/common';

/**
* Workers helper
Expand Down Expand Up @@ -76,7 +77,7 @@ export class Workers extends ServiceRequestsBase {
}
});
});
this.request(WorkerEvents.PUSH_TASK, {task, priority, isRetryableTask, attempts});
this.request(WorkerEvents.PUSH_TASK, {task, priority, isRetryableTask, attempts}).then(doNothing, doNothing);
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion topic-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"dev": "tsc -w",
"start": "node dist/index.js"
},
"version": "2.9.1"
"version": "2.9.2"
}
2 changes: 1 addition & 1 deletion tree-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"dev": "tsc -w",
"start": "node dist/index.js"
},
"version": "2.9.1"
"version": "2.9.2"
}
6 changes: 3 additions & 3 deletions worker-service/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"author": "Envision Blockchain Solutions <[email protected]>",
"dependencies": {
"@guardian/common": "^2.9.1",
"@guardian/interfaces": "^2.9.1",
"@guardian/common": "^2.9.2",
"@guardian/interfaces": "^2.9.2",
"@hashgraph/sdk": "^2.19.2",
"@transmute/credentials-context": "^0.7.0-unstable.80",
"@transmute/did-context": "^0.7.0-unstable.80",
Expand Down Expand Up @@ -48,5 +48,5 @@
"start": "node dist/index.js",
"test": "mocha tests/**/*.test.js --reporter mocha-junit-reporter --reporter-options mochaFile=../test_results/worker-service.xml --exit"
},
"version": "2.9.1"
"version": "2.9.2"
}
Loading

0 comments on commit 20d16e3

Please sign in to comment.