Skip to content

Commit

Permalink
Additional fixes and documentation update for 2.7.0 release (#1554)
Browse files Browse the repository at this point in the history
* fix

* fix

* force unseal hashicorp vault

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

* fix unseal

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

* fix mistype

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

* GitBook: [#199] Restore Data functionality added

* database default vault provider

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

* #1326

* Create README.md

* Create README.md

* added tymlez guardian-policies

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

* fix import tokens without key

* Delete README.md

* Updating git ignore to remove IDE and OSX nonsense files

Signed-off-by: Matt Smithies <[email protected]>

* Adding Carbon Space MRV

Signed-off-by: Matt Smithies <[email protected]>

* Adding Geotree MRV

Signed-off-by: Matt Smithies <[email protected]>

* Adding Grain Data Solution MRV

Signed-off-by: Matt Smithies <[email protected]>

* Adding Soil Carbon Coalition MRV

Signed-off-by: Matt Smithies <[email protected]>

* Update README.md

Signed-off-by: Matt Smithies <[email protected]>

* Update readme.md

Signed-off-by: Matt Smithies <[email protected]>

* Updated Tymlez in ReadMe

* Delete Demo Artifacts/Dovu/policies/Grain Data Solution MRV  directory

* fixed condition required fields

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

* restore

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

* fix image build

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

* fix mint ft tokens

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

* fix user id in dry run

* fix update step block

* Create README.md

* Add files via upload

* Delete readme.md

* Delete README.md

* Create README.md

* GitBook: [#200] split Block add and diagram updated

* set version 2.6.0

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

* Update README.md

* Updated ReadMe of Improved Cookstove

* Updated Tolam Earth ReadMe

* Create README.md

* Delete README.md

* Create README.md

* Update readme.md

* restore readme.md

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

* #1465

* added create token block

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

* fixed tokens visible

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

* added validation for token template in token action/confirmation blocks

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

* #995

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

* fix

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

* fixes in create token block and validation

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

* update doc

* update filters

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

* fix

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

* fix

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

* remove console.log

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

* moved keys from topic and token to vault

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

* Create readme.md

Policy for cynk.io

* fix

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

* update topic keys

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

* Added Agricultural soils of Western Australia MRV

Signed-off-by: Matt Smithies <[email protected]>

* Update artifacts readme

Signed-off-by: Matt Smithies <[email protected]>

* Add Rothc MRV

Signed-off-by: Matt Smithies <[email protected]>

* Update DOVU readme

Signed-off-by: Matt Smithies <[email protected]>

* Add MIMICS MRV

Signed-off-by: Matt Smithies <[email protected]>

* Add GHG MRV

Signed-off-by: Matt Smithies <[email protected]>

* Updated number of MRVs from DOVU

Signed-off-by: Matt Smithies <[email protected]>

* using custom context url in vcs

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

* Updated Demo Artifacts ReadMe

* Create README.md

* added policy + process overview

Signed-off-by: Gerhard Seuchter <[email protected]>

* changed cynk io folder

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

* GitBook: [#201] Policy created token

* GitBook: [#202] create token using UI

* fixing moving block issues in policy configuration

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

* Create README.md

* Tolam Earth Policy

* Delete README.md

* added readme, small fixed in policy

Signed-off-by: Gerhard Seuchter <[email protected]>

* add events

* added get file from ipfs endpoint

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

* exclude ipfs-client from required services

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

* fixed editing for ipfs key setting

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

* added spinner for loading remote enum values in schema form

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

* fix error handling

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

* update settings in worker

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

* Create README.md

* Delete Demo Artifacts/GHG Methodology/GHG Scope II directory

* Updated ReadMe

* fix after merge

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

* fix typo

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

* #1476

* fix

* fix freeze token

* update api

* update error message

* fix migrations

* fix migrations

* fix error message

* fix

* disabled  external event

* fix

* update test

* fix save keys

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

* added move actions to policy configuration

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

* #1506 fixed work with strings

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

* update draw events

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

* fix move action displaying in dryrun/publish status

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

* fix dry run

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

* fix import keys from DB

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

* fix import keys from DB

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

* #1505

* add doc

* Updated iREC ReadMe

* Updated iREC ReadMe

* always use mongodb version 6

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

* replace ipfs url

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

* fix migrations, code version in schema message

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

* fix dry run

* fix duration type validation

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

* fix schema migrations

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

* fix restored vcs validation

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

* update external events

* fix

* add event

* disabled chance policyId in schemas

* update env docker files

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

* #1508

* fix

* GitBook: [#204] Restoring from DB and Hashicorp vault

* GitBook: [#205] updated ipfs url in schema type

* GitBook: [#206] added iREC 5 demo

* GitBook: [#208] iREC 7 UI Demo

* update block actions visibility

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

* updating package versions

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

* #228

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

* GitBook: [#209] Updated high res image of splitting logic

* update topic tonfig

* preset readonly fields validation

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

* publishing utility services

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

* added api-docs service

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

* add message

* Bump engine.io and socket.io in /frontend

Bumps [engine.io](https://github.com/socketio/engine.io) and [socket.io](https://github.com/socketio/socket.io). These dependencies needed to be updated together.

Updates `engine.io` from 6.1.3 to 6.2.1
- [Release notes](https://github.com/socketio/engine.io/releases)
- [Changelog](https://github.com/socketio/engine.io/blob/main/CHANGELOG.md)
- [Commits](socketio/engine.io@6.1.3...6.2.1)

Updates `socket.io` from 4.4.1 to 4.5.3
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](socketio/socket.io@4.4.1...4.5.3)

---
updated-dependencies:
- dependency-name: engine.io
  dependency-type: indirect
- dependency-name: socket.io
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* add messages

* fix unexciting did

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

* remove console.log

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

* fix unexisting vc

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

* fixed displaying demo account in development

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

* fix user topic restore

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

* fix lint

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

* add job

* restore topic keys

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

* restore tokens

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

* GitBook: [#210] rearranging the pages

* GitBook: [#211] creating token using UI

* Updated Timestamp of Remote Workflow Policy

* add user topic select

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

* fix lint

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

* fix validation

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

* fix lint

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

* fix validation

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

* update messages

* update

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

* fix typo

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

* tmp

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

* implement local ipfs node
remove ipfs client

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

* update moment.js version

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

* update message format

* fix readonly fields in request block

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

* fix

* fix

* update log

* fix readonly fields
fix save topic keys

* fix lint

* GitBook: [#212] added description to token parameters

* fix save key

* fix

* update swagger

* bump version

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

* 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

* bump version

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

Signed-off-by: simvalery <[email protected]>
Signed-off-by: artembuslaev <[email protected]>
Signed-off-by: Matt Smithies <[email protected]>
Signed-off-by: Stepan Kiryakov <[email protected]>
Signed-off-by: Gerhard Seuchter <[email protected]>
Signed-off-by: dependabot[bot] <[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: artembuslaev <[email protected]>
Co-authored-by: Matt Smithies <[email protected]>
Co-authored-by: artembuslaev <[email protected]>
Co-authored-by: Stepan Kirjakov <[email protected]>
Co-authored-by: jacopostrada-tamu <[email protected]>
Co-authored-by: Atma Dev <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
11 people authored Nov 30, 2022
1 parent ac642b6 commit 7567e14
Show file tree
Hide file tree
Showing 37 changed files with 295 additions and 113 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Demo Artifacts/Dovu/policies/RothC MRV/v1/dovu_mrv_rothc.policy
Binary file not shown.
Binary file not shown.
40 changes: 22 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,32 +62,36 @@ If you build with docker [MongoDB](https://www.mongodb.com), [NodeJS](https://no
```

**Note**. You can use the Schema Topic ID (`INITIALIZATION_TOPIC_ID`) already present in the configuration files, or you can specify your own.

3. Now, we have two options to setup IPFS node : 1. Local node 2. IPFS Web3Storage node.

3. Update the following files with your Web3.Storage API KEY. Please follow the steps from <https://web3.storage/docs/#quickstart> to obtain it.To know complete information on generating API Key please check [How to Create Web3.Storage API Key](https://docs.hedera.com/guardian/getting-started/getting-started/how-to-create-web3.storage-api-key).

For example:
**3.1 Setting up IPFS Local node:**

in `ipfs-client/.env`:
3.1.1 We need to install and configure any IPFS node.

```plaintext
IPFS_STORAGE_API_KEY=""
```
For example: https://github.com/yeasy/docker-ipfs

or in `ipfs-client/.env.docker`:
3.1.2 For setup IPFS local node you need to set variables in `worker-service` folder

```plaintext
IPFS_STORAGE_API_KEY=""
```
in `worker-service/.env`:

```plaintext
IPFS_STORAGE_API_KEY=""
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_PUBLIC_GATEWAY="..." # Default IPFS_PUBLIC_GATEWAY="https://localhost:8080/ipfs/${cid}"
IPFS_PROVIDER="local"
```
in `worker-service/.env.docker`:

```plaintext
IPFS_STORAGE_API_KEY=""
**Note**
1. Default IPFS_NODE_ADDRESS="http://localhost:5002"
2. Default IPFS_PUBLIC_GATEWAY="https://localhost:8080/ipfs/${cid}"

**3.2 Setting up IPFS Web3Storage node:**

3.2.1 For setup IPFS web3storage node you need to set variables in `worker-service` folder:

```
IPFS_STORAGE_API_KEY="..."
IPFS_PROVIDER="web3storage"
```

To generate Web3.Storage API KEY. Please follow the steps from <https://web3.storage/docs/#quickstart> to obtain it.To know complete information on generating API Key please check [How to Create Web3.Storage API Key](https://docs.hedera.com/guardian/getting-started/getting-started/how-to-create-web3.storage-api-key).

4. Build and launch with Docker. Please note that this build is meant to be used in production and will not contain any debug information. From the project's root folder:

Expand Down
5 changes: 2 additions & 3 deletions api-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "api-docs",
"version": "2.7.0-prerelease",
"version": "2.7.0",
"description": "Swagger Documentation",
"main": "dist/index.js",
"scripts": {
Expand All @@ -23,6 +23,5 @@
"@types/swagger-ui-express": "^4.1.3",
"tslint": "^6.1.3",
"typescript": "^4.6.3"
},
"stableVersion": "2.6.1"
}
}
7 changes: 3 additions & 4 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.7.0-prerelease",
"@guardian/interfaces": "^2.7.0-prerelease",
"@guardian/common": "^2.7.0",
"@guardian/interfaces": "^2.7.0",
"@types/express-fileupload": "^1.4.1",
"dotenv": "^16.0.0",
"express": "^4.17.1",
Expand Down Expand Up @@ -51,6 +51,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.7.0-prerelease",
"stableVersion": "2.6.1"
"version": "2.7.0"
}
7 changes: 3 additions & 4 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.7.0-prerelease",
"@guardian/interfaces": "^2.7.0-prerelease",
"@guardian/common": "^2.7.0",
"@guardian/interfaces": "^2.7.0",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -46,6 +46,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.7.0-prerelease",
"stableVersion": "2.6.1"
"version": "2.7.0"
}
5 changes: 2 additions & 3 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.7.0-prerelease",
"@guardian/interfaces": "^2.7.0",
"@mikro-orm/core": "~5.3.0",
"@mikro-orm/migrations-mongodb": "~5.3.0",
"@mikro-orm/mongodb": "~5.3.0",
Expand Down Expand Up @@ -34,6 +34,5 @@
"prepare": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.7.0-prerelease",
"stableVersion": "2.6.1"
"version": "2.7.0"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
* [Sends Data to specified Block by Tag](policy-creation-using-the-guardian-apis/sends-data-to-specified-block-by-tag.md)
* [Returns list of Groups of a particular user](policy-creation-using-the-guardian-apis/returns-list-of-groups-of-a-particular-user.md)
* [Make the selected Group active](policy-creation-using-the-guardian-apis/make-the-selected-group-active.md)
* [Creating link between policies](guardian/standard-registry/policies/creating-a-policy-using-apis/creating-link-between-policies.md)
* [Requesting Multi Policy Config](guardian/standard-registry/policies/creating-a-policy-using-apis/requesting-multi-policy-config.md)
* [💻 Dry Run Mode using UI](dry-run-demo/demo-guide-on-dry-run-operations.md)
* [⚙ Dry Run Mode using APIs](guardian/standard-registry/policies/dry-run-mode-using-apis/README.md)
* [Running Policy without making any changes](dry-run-apis/running-policy-without-making-any-changes.md)
Expand All @@ -167,6 +169,7 @@
* [Importing a Policy from file](policy-related-apis-for-asynchronous-execution/importing-a-policy-from-file.md)
* [Policy Review](policy-related-apis-for-asynchronous-execution/policy-review.md)
* [💻 Creating Roles and Groups using Policy Configurator UI](multi-user-roles/roles-and-groups.md)
* [Page 1](guardian/standard-registry/policies/page-1.md)
* [📒 Artifacts](guardian/standard-registry/artifacts/README.md)
* [💻 Importing/Deleting Artifacts using UI](artifacts-demo/how-to-import-delete-artifacts.md)
* [⚙ TrustChain APIs](guardian/standard-registry/trustchain-apis/README.md)
Expand Down
19 changes: 10 additions & 9 deletions docs/available-policy-workflow-blocks/aggregatedocumentblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ Input - a document or an array of documents which will be aggregated

Output - an array of documents, after the reporting period expired or the condition is met

| Block Property | Definition | Example Input | Status |
| ---------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------ |
| tag | Unique name for the logic block. | aggregateDocumentBlock | |
| permissions | Which entity has rights to interact at this part of the workflow. | Standard Registry. | |
| defaultActive | Shows whether this block is active at this time and whether it needs to be shown. | Checked or unchecked. | |
| dependencies | Establish workflow dependancies that need to be completed prior. | Select the appropriate block from the dropdown. | <mark style="color:red;">Deprecated</mark> |
| On errors | Called if the system error has occurs in the Block | <ul><li>No action</li><li>Retry</li><li>Go to step</li><li>Go to tag</li></ul> | |
| stop Propagation | End processing here, don't pass control to the next block. | Checked or unchecked. | |
| AggregateType | Type of Aggregate | <ul><li>Cumulative Dimension</li><li>Period</li></ul> | |
| Block Property | Definition | Example Input | Status |
| ---------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------ |
| tag | Unique name for the logic block. | aggregateDocumentBlock | |
| permissions | Which entity has rights to interact at this part of the workflow. | Standard Registry. | |
| defaultActive | Shows whether this block is active at this time and whether it needs to be shown. | Checked or unchecked. | |
| dependencies | Establish workflow dependancies that need to be completed prior. | Select the appropriate block from the dropdown. | <mark style="color:red;">Deprecated</mark> |
| On errors | Called if the system error has occurs in the Block | <ul><li>No action</li><li>Retry</li><li>Go to step</li><li>Go to tag</li></ul> | |
| stop Propagation | End processing here, don't pass control to the next block. | Checked or unchecked. | |
| GroupByFields | We can set additional fields to group documents. Also documents are always grouped by user. | Field Path | |
| AggregateType | Type of Aggregate | <ul><li>Cumulative Dimension</li><li>Period</li></ul> | |



Expand Down
2 changes: 1 addition & 1 deletion docs/demo-guide/demo-using-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ capacity

![](../.gitbook/assets/Sensor.png)

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

### 3.4 Refresh the Blocks

Expand Down
34 changes: 20 additions & 14 deletions docs/getting-started/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,40 @@ in `guardian-service/.env.docker`:
**Note:** You can use the Schema Topic ID (`INITIALIZATION_TOPIC_ID`) already present in the configuration files, or you can specify your own.
{% endhint %}
3\. Update the following files with your Web3.Storage API KEY. Please follow the steps from [https://web3.storage/docs/#quickstart](https://web3.storage/docs/#quickstart) to obtain it. To know complete information on generating API Key please check : [how-to-generate-web3.storage-api-key.md](how-to-generate-web3.storage-api-key.md "mention")
3\. Now, we have two options to setup IPFS node : 1. Local node 2. IPFS Web3Storage node.
For example:
#### 3.1 Setting up IPFS Local node:
in `ipfs-client/.env`:
3.1.1 We need to install and configure any IPFS node.&#x20;
```
IPFS_STORAGE_API_KEY=""
```
For example: [https://github.com/yeasy/docker-ipfs](https://github.com/yeasy/docker-ipfs)
or in `ipfs-client/.env.docker`:
3.1.2 For setup IPFS local node you need to set variables in `worker-service` folder
```
IPFS_STORAGE_API_KEY=""
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_PUBLIC_GATEWAY="..." # Default IPFS_PUBLIC_GATEWAY="https://localhost:8080/ipfs/${cid}"
IPFS_PROVIDER="local"
```
in `worker-service/ .env`:
{% hint style="info" %}
Note:
1. Default IPFS\_NODE\_ADDRESS="[http://localhost:5002](http://localhost:5002/)"
2. Default IPFS\_PUBLIC\_GATEWAY="[https://localhost:8080/ipfs/${cid}](https://localhost:8080/ipfs/$%7Bcid%7D)"
{% endhint %}
```
IPFS_STORAGE_API_KEY=""
```
#### 3.2 Setting up IPFS Web3Storage node:
or in `worker-service/ .env.docker`:
3.2.1 For setup IPFS web3storage node you need to set variables in `worker-service`:
```
IPFS_STORAGE_API_KEY=""
IPFS_STORAGE_API_KEY="..."
IPFS_PROVIDER="web3storage"
```
To generate Web3.Storage API KEY. Please follow the steps from [https://web3.storage/docs/#quickstart](https://web3.storage/docs/#quickstart) to obtain it. To know complete information on generating API Key please check : [how-to-generate-web3.storage-api-key.md](how-to-generate-web3.storage-api-key.md "mention")
4\. Build and launch with Docker. Please note that this build is meant to be used in production and will not contain any debug information. From the project's root folder:
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Creating link between policies

{% swagger method="post" path="" baseUrl="/policies/{policyId}/multiple" summary="Requests Multi policy config" %}
{% swagger-description %}
Creates a link between the current policy and the main policy. Or creates a group making the current policy the main one.
{% endswagger-description %}

{% swagger-parameter in="path" name="policyId" type="String" required="true" %}
Policy ID
{% endswagger-parameter %}

{% swagger-parameter in="body" required="true" type="String" name="id" %}
mainPolicyTopicId
{% endswagger-parameter %}

{% swagger-parameter in="body" type="String" name="id" required="true" %}
synchronizationTopicId
{% endswagger-parameter %}

{% swagger-response status="200: OK" description="Successful Operation" %}
```javascript
{
content:
application/json:
schema:
$ref: '#/components/schemas/MultiPolicyConfig'
}
```
{% endswagger-response %}

{% swagger-response status="401: Unauthorized" description="Unauthorized" %}
```javascript
{
// Response
}
```
{% endswagger-response %}

{% swagger-response status="403: Forbidden" description="Forbidden" %}
```javascript
{
// Response
}
```
{% endswagger-response %}

{% swagger-response status="500: Internal Server Error" description="Internal Server Error" %}
```javascript
{
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
}
```
{% endswagger-response %}
{% endswagger %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Requesting Multi Policy Config

{% swagger method="get" path="" baseUrl="/policies/{policyId}/multiple" summary="Requests Multi policy config" %}
{% swagger-description %}
Requests Multi policy config
{% endswagger-description %}

{% swagger-parameter in="path" name="policyId" type="String" required="true" %}
Policy ID
{% endswagger-parameter %}

{% swagger-response status="200: OK" description="Successful Operation" %}
```javascript
{
content:
application/json:
schema:
$ref: '#/components/schemas/MultiPolicyConfig'
}
```
{% endswagger-response %}

{% swagger-response status="401: Unauthorized" description="Unauthorized" %}
```javascript
{
// Response
}
```
{% endswagger-response %}

{% swagger-response status="403: Forbidden" description="Forbidden" %}
```javascript
{
// Response
}
```
{% endswagger-response %}

{% swagger-response status="500: Internal Server Error" description="Internal Server Error" %}
```javascript
{
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
}
```
{% endswagger-response %}
{% endswagger %}
2 changes: 2 additions & 0 deletions docs/guardian/standard-registry/policies/page-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Page 1

3 changes: 1 addition & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@
"test": "ng test",
"watch": "ng build --watch --configuration development --output-path ../www-data"
},
"version": "2.7.0-prerelease",
"stableVersion": "2.6.1"
"version": "2.7.0"
}
14 changes: 10 additions & 4 deletions frontend/src/app/policy-engine/policies/policies.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ export class PoliciesComponent implements OnInit, OnDestroy {
const block = invalidBlocks[i];
for (let j = 0; j < block.errors.length; j++) {
const error = block.errors[j];
text.push(`<div>${block.id}: ${error}</div>`);
if(block.id) {
text.push(`<div>${block.id}: ${error}</div>`);
} else {
text.push(`<div>${error}</div>`);
}
}
}
this.informService.errorMessage(text.join(''), 'The policy is invalid');
Expand Down Expand Up @@ -427,9 +431,11 @@ export class PoliciesComponent implements OnInit, OnDestroy {
j++
) {
const error = block.errors[j];
text.push(
`<div>${block.id}: ${error}</div>`
);
if(block.id) {
text.push(`<div>${block.id}: ${error}</div>`);
} else {
text.push(`<div>${error}</div>`);
}
}
}
this.informService.errorMessage(text.join(''), 'The policy is invalid');
Expand Down
Loading

0 comments on commit 7567e14

Please sign in to comment.