Skip to content

Commit

Permalink
Merging Develop into Main for 2.21.0 release (#3184)
Browse files Browse the repository at this point in the history
* bump version

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

* [skip ci] Add swagger.yaml

* fix "image-size" package version

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

* update menu

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

* fix

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

* fix merge

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

* fix merge

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

* fix budget

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

* fix budget

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

* GITBOOK-60: updated roadmap

* GITBOOK-61: removed import section

* update

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

* test nodejs lts

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

* test nodejs lts

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

* fix tokens page

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

* fix icons

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

* remove project comparation

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

* fix analytics

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

* GITBOOK-62: updated project comparison screenshots

* GITBOOK-64: Updated video links

* GITBOOK-65: Replaced ESG with Environmental

* GITBOOK-66: Changing ESG to Environmental

* update versions

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

* move worker-service to ems

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

* remove w3s-file-uploader

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

* add tsc-alias

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

* update Dockerfile

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

* GITBOOK-67: change request with no subject merged in GitBook

* GITBOOK-67: change request with no subject merged in GitBook

* GITBOOK-68: change request with no subject merged in GitBook

* save keys to vault

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

* fix big schemas issue

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

* Update tsconfig.production.json

* fix retirement and token dialog

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

* redirect with publish errors

Signed-off-by: Artem Buslaev <[email protected]>

* fixes

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

* fix docker-compose.yml

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

* fixes

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

* fix branding

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

* [skip ci] Add swagger.yaml

* fix attributes

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

* fix develop conflicts

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

* fix attributes page

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

* fix logs redirect

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

* fix docker build

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

* add xlsx converter

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

* [skip ci] Add swagger.yaml

* GITBOOK-69: corrected grammar

* fix build application-events service

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

* update

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

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

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

* fix subschemas dropdown set value
Signed-off-by: simvalery <[email protected]>

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

* fix schemas

* fix

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

* fix

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

* fix ai start

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

* update

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

* [skip ci] Add swagger.yaml

* update

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

* fix ai service

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

* [skip ci] Add swagger.yaml

* update

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

* GITBOOK-70: change request with no subject merged in GitBook

* added policy discontinuing

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

* [skip ci] Add swagger.yaml

* fix build

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

* fix docker-compose.yml

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

* more informative discontinue tooltip

Signed-off-by: Artem Buslaev <[email protected]>

* fix interfaces docker build

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

* added migration errors

Signed-off-by: Artem Buslaev <[email protected]>

* added contracts gas settings

Signed-off-by: Artem Buslaev <[email protected]>

* fix selecting wipe contracts

Signed-off-by: Artem Buslaev <[email protected]>

* update

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

* fix properties dropdown

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

* fix update schema id

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

* fix displaying schemas, groups, roles

Signed-off-by: Artem Buslaev <[email protected]>

* fix resigning documents errors

Signed-off-by: Artem Buslaev <[email protected]>

* fix  Cannot find name 'ReadableStream' error

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

* fix

* fix ui issue with mappings

Signed-off-by: Artem Buslaev <[email protected]>

* fix bugs

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

* fix migration

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

* fix error

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

* fix

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

* fix system schemas mapping

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

* fix swagger config [skip ci]

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

* GITBOOK-71: change request with no subject merged in GitBook

* [skip ci] Add swagger.yaml

* fix global types

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

* fix lists

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

* fix

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

* fix

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

* GITBOOK-72: change request with no subject merged in GitBook

* fix typo

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

* fix policy change status

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

* sentinel hub

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

* fix

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

* fix vc format

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

* fix

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

* sentinel hub field format

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

* [skip ci] Add swagger.yaml

* Dockerfile

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

* fix test

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

* fix lint

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

* added new gold standard policy [skip ci]

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

* fix test

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

* update

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

* rename

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

* Add files via upload

* fix

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

* fix topicId validation

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

* fix invalid fields

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

* guardian about

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

* fix build

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

* GITBOOK-73: change request with no subject merged in GitBook

* fix roles block description

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

* add create client exception

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

* add projects button

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

* publish ai-service

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

* fix

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

* fix ai-service

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

* fix saintel hub component

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

* add validation pattern

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

* fix migration categories and update migration 2.19 -> 2.20

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

* disabled import

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

* fix no binding

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

* add ai-service to logs and status page

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

* refactor ai-service logs

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

* add gitignore

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

* add gitignore

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

* fix dialog mask

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

* fix comparation relationships

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

* remove roles and groups validation

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

* fix setting group in migrated vcs

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

* fix preset for sentinel hub

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

* fix datepicker

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

* GITBOOK-74: change request with no subject merged in GitBook

* update

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

* update

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

* fix fswatcher bug

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

* fix

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

* fix

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

* fix validation

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

* GITBOOK-75: change request with no subject merged in GitBook

* GITBOOK-76: change request with no subject merged in GitBook

* Add files via upload

* Update readme.md

* Create readMe.md of Gold Standard Policy

* fix deferred discontinuing

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

* add onlyForDemo directive

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

* terms and conditions in branding

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

* fix directive location

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

* fix ng-invalid

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

* fix tags synchronization icon

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

* fix typo in gas settings

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

* fix parsing xlsx

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

* fix conditions

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

* fix style

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

* fix google maps show

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

* fix dryrun test data button

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

* fix policy categories in wizard

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

* fix shcema view dates

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

* added missing network properties

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

* update cdm policies [skip ci]

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

* fix boolean selected view

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

* bump version

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

* [skip ci] Add swagger.yaml

* GITBOOK-78: change request with no subject merged in GitBook

* GITBOOK-79: change request with no subject merged in GitBook

* fix policy wizard

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

* fix update policy file

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

* GITBOOK-81: Step By Step of ACM0007

* GITBOOK-82: Updated Roadmap

* GITBOOK-83: Updated Roadmap content

* Update readme.md of ACM0007

* upd gold standard policy [skip ci]

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

* add OPENAI_API_KEY valiable

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

* update README.md

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

* Update README.md

* GITBOOK-84: Updated chatgpt instructions

* update

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

* [skip ci] Add swagger.yaml

* GITBOOK-85: change request with no subject merged in GitBook

* Update timestamp of GS

* Update timestamp of II.J

* Update timestamp of II.G

* Update timestamp of ACM0007

* update

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

* fix

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

* template xsls

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

* fix name

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

* [skip ci] Add swagger.yaml

* update template

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

* GITBOOK-86: change request with no subject merged in GitBook

* GITBOOK-87: change request with no subject merged in GitBook

* GITBOOK-77: prernaa.agarwal's Feb 1 changes

* update INITIALIZATION_TOPIC_ID, RETIRE_CONTRACT_FILE_ID, WIPE_CONTRACT_FILE_ID, и INITIALIZATION_TOPIC

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

* [skip ci] Add swagger.yaml

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

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

* add IPFS_STORAGE_KEY and IPFS_STORAGE_PROOF
 to templates
Signed-off-by: simvalery <[email protected]>

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

* [skip ci] Add swagger.yaml

* fix sync import xlsx method

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

* GITBOOK-88: Made changes

---------

Signed-off-by: simvalery <[email protected]>
Signed-off-by: Stepan Kiryakov <[email protected]>
Signed-off-by: artembuslaev <[email protected]>
Signed-off-by: Artem Buslaev <[email protected]>
Co-authored-by: envision-ci-agent <[email protected]>
Co-authored-by: Stepan Kiryakov <[email protected]>
Co-authored-by: prernaa.agarwal <[email protected]>
Co-authored-by: artembuslaev <[email protected]>
  • Loading branch information
5 people authored Feb 4, 2024
1 parent f662418 commit e62fbf1
Show file tree
Hide file tree
Showing 32 changed files with 449 additions and 97 deletions.
2 changes: 1 addition & 1 deletion ai-service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ai-service",
"version": "1.0.0",
"version": "2.21.0",
"main": "dist/app.js",
"license": "MIT",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions analytics-service/configs/.env.analytics
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MQ_MAX_PAYLOAD="1048576"

MESSAGE_LANG="en-US"
TRANSACTION_LOG_LEVEL="1"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"

# ANALYTICS
ANALYTICS_SCHEDULER="0 0 * * 1"
ANALYTICS_SCHEDULER="0 0 * * 1"
4 changes: 2 additions & 2 deletions analytics-service/configs/.env.analytics.develop
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MQ_MAX_PAYLOAD="1048576"

MESSAGE_LANG="en-US"
TRANSACTION_LOG_LEVEL="1"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"

# ANALYTICS
ANALYTICS_SCHEDULER="0 0 * * 1"
ANALYTICS_SCHEDULER="0 0 * * 1"
29 changes: 6 additions & 23 deletions api-gateway/src/api/service/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,7 @@ import { Users } from '@helpers/users';
import { InternalServerErrorDTO } from '@middlewares/validation/schemas/errors';
import { MigrationConfigDTO, PolicyCategoryDTO } from '@middlewares/validation/schemas/policies';
import { Body, Controller, Delete, Get, HttpCode, HttpException, HttpStatus, Param, Post, Put, Query, Req, Response } from '@nestjs/common';
import {
ApiBody,
ApiAcceptedResponse,
ApiExtraModels,
ApiForbiddenResponse,
ApiInternalServerErrorResponse,
ApiOkResponse,
ApiOperation,
ApiParam,
ApiQuery,
ApiSecurity,
ApiTags,
ApiUnauthorizedResponse,
getSchemaPath
} from '@nestjs/swagger';
import { ApiAcceptedResponse, ApiBody, ApiExtraModels, ApiForbiddenResponse, ApiInternalServerErrorResponse, ApiOkResponse, ApiOperation, ApiParam, ApiQuery, ApiSecurity, ApiTags, ApiUnauthorizedResponse, getSchemaPath } from '@nestjs/swagger';
import { ApiImplicitParam } from '@nestjs/swagger/dist/decorators/api-implicit-param.decorator';
import { ApiImplicitQuery } from '@nestjs/swagger/dist/decorators/api-implicit-query.decorator';

Expand Down Expand Up @@ -1509,14 +1495,12 @@ export class PolicyApi {
@HttpCode(HttpStatus.CREATED)
async importPolicyFromXlsx(
@AuthUser() user: IAuthUser,
@Query('policyId') policyId,
@Body() file: any,
@Response() res: any
@Query('policyId') policyId: string,
@Body() file: Buffer
): Promise<any> {
try {
const engineService = new PolicyEngine();
const policies = await engineService.importXlsx(user, policyId, file);
return res.status(201).send(policies);
return await engineService.importXlsx(user, file, policyId);
} catch (error) {
new Logger().error(error, ['API_GATEWAY']);
throw new HttpException(error.message, HttpStatus.INTERNAL_SERVER_ERROR);
Expand Down Expand Up @@ -1567,8 +1551,7 @@ export class PolicyApi {
async importPolicyFromXlsxAsync(
@AuthUser() user: IAuthUser,
@Query('policyId') policyId,
@Body() file: any,
@Response() res: any
@Body() file: Buffer
): Promise<any> {
const taskManager = new TaskManager();
const task = taskManager.start(TaskAction.IMPORT_POLICY_FILE, user.id);
Expand All @@ -1579,7 +1562,7 @@ export class PolicyApi {
new Logger().error(error, ['API_GATEWAY']);
taskManager.addError(task.taskId, { code: 500, message: 'Unknown error: ' + error.message });
});
return res.status(202).send(task);
return task;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion configs/.env..guardian.system
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PREUSED_HEDERA_NET="testnet"
# TESTNET
OPERATOR_ID="..."
OPERATOR_KEY="..."
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"

# # LOCALNODE
# LOCALNODE_ADDRESS="..."
Expand Down
2 changes: 1 addition & 1 deletion configs/.env.develop.guardian.system
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PREUSED_HEDERA_NET="testnet"
# TESTNET
OPERATOR_ID="..."
OPERATOR_KEY="..."
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"

# # LOCALNODE
# LOCALNODE_ADDRESS="..."
Expand Down
2 changes: 1 addition & 1 deletion configs/.env.template.guardian.system
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ HEDERA_NET="testnet"
# TESTNET
OPERATOR_ID="..."
OPERATOR_KEY="..."
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"

# LOCALNODE
# LOCALNODE_ADDRESS="..."
Expand Down
15 changes: 12 additions & 3 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@
* [⚙ Schema Differentiation APIs](guardian/standard-registry/schemas/schema-differentiation/schema-differentiation-apis/README.md)
* [Returns Result of Schema comparison](guardian/standard-registry/schemas/schema-differentiation/schema-differentiation-apis/returns-result-of-schema-comparison.md)
* [Exports Schema Differentiation Results](guardian/standard-registry/schemas/schema-differentiation/schema-differentiation-apis/exports-schema-differentiation-results.md)
* [📁 Import/Export Schemas in Excel](guardian/standard-registry/schemas/import-export-schemas-in-excel/README.md)
* [💻 Import Export schemas User Guide](guardian/standard-registry/schemas/import-export-schemas-in-excel/import-export-schemas-user-guide.md)
* [⚙ Import/Export Schemas APIs](guardian/standard-registry/schemas/import-export-schemas-in-excel/import-export-schemas-apis.md)
* [📁 Example Data](guardian/standard-registry/schemas/example-data/README.md)
* [💻 Adding Example data using UI](guardian/standard-registry/schemas/example-data/adding-example-data-using-ui.md)
* [📂 Schema Tree](guardian/standard-registry/schemas/schema-tree/README.md)
Expand Down Expand Up @@ -341,6 +338,18 @@
* [⛓ TrustChain reports](guardian/standard-registry/policies/library-of-policy-examples/trustchain-reports.md)
* [➗ MRV aggregation and splitting for minting tokens](guardian/standard-registry/policies/library-of-policy-examples/mrv-aggregation-and-splitting-for-minting-tokens.md)
* [💻 Demo on Integrating external policies using UI](guardian/standard-registry/policies/demo-on-integrating-external-policies-using-ui.md)
* [📁 Import/Export in Excel](guardian/standard-registry/import-export-in-excel/README.md)
* [💻 Import and Export Excel file User Guide](guardian/standard-registry/import-export-in-excel/import-and-export-excel-file-user-guide.md)
* [⚙ Import/Export Schemas/Policies APIs](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/README.md)
* [Import schemas in Excel file format into a policy](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/imports-new-schema-from-excel-file.md)
* [Asynchronously imports schemas in Excel file format into a policy](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/imports-new-schema-from-excel-file-asynchronously.md)
* [Previews Schema from Excel file](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/previews-schema-from-excel-file.md)
* [Returns Schema in Excel file format](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/returns-schema-in-excel-file-format.md)
* [Returns list of Schemas](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/returns-list-of-schemas.md)
* [Exporting Policy to Excel](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/exporting-policy-to-excel.md)
* [Import Schemas in Excel file format into a Policy](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/import-policy-from-excel-file.md)
* [Asynchronously imports schemas in Excel file format into a policy](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/import-policy-from-excel-file-asynchronously.md)
* [Policy Preview from Excel file](guardian/standard-registry/import-export-in-excel/import-export-schemas-policies-apis/policy-preview-from-excel-file.md)
* [📁 Project Comparison](guardian/standard-registry/project-comparison/README.md)
* [💻 Project Comparison using UI](guardian/standard-registry/project-comparison/project-comparison-using-ui.md)
* [⚙ Project Comparison APIs](guardian/standard-registry/project-comparison/project-comparison-apis/README.md)
Expand Down
12 changes: 6 additions & 6 deletions docs/environments/Ecosystem-Environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ PREUSED_HEDERA_NET="testnet"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
.......
.....
Expand All @@ -119,7 +119,7 @@ in file ./guardian/guardian-service/configs/.env.guardian.develop
# TESTNET
OPERATOR_ID="0.0.4523185"
OPERATOR_KEY="302e02010030050603.........................05215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```


Expand All @@ -141,7 +141,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```


Expand Down Expand Up @@ -177,7 +177,7 @@ PREUSED_HEDERA_NET="mainnet"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
.........
.......
Expand All @@ -202,7 +202,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.4523185"
OPERATOR_KEY="302e02010030050603.........................05215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```


Expand All @@ -223,7 +223,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```


Expand Down
12 changes: 6 additions & 6 deletions docs/guardian/readme/environments/ecosystem-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PREUSED_HEDERA_NET="testnet"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
.......
.....
Expand All @@ -82,7 +82,7 @@ in file ./guardian/guardian-service/configs/.env.guardian.develop
# TESTNET
OPERATOR_ID="0.0.4523185"
OPERATOR_KEY="302e02010030050603.........................05215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```

#### RUN TIME RESULT
Expand All @@ -102,7 +102,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```

this shows that the root level environment is loaded: OPERATOR\_ID defined in the root level "0.0.3422318" is used while "0.0.4523185" specified at service level remains unused.
Expand Down Expand Up @@ -137,7 +137,7 @@ PREUSED_HEDERA_NET="mainnet"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
.........
.......
Expand All @@ -162,7 +162,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.4523185"
OPERATOR_KEY="302e02010030050603.........................05215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```

#### RUN TIME RESULT:
Expand All @@ -182,7 +182,7 @@ INITIAL_STANDARD_REGISTRY_BALANCE="100"
# TESTNET
OPERATOR_ID="0.0.3422318"
OPERATOR_KEY="302e020100300506032b6570042..................34c805215e7099b30abd63fd1c58bd3c"
INITIALIZATION_TOPIC_ID="0.0.2411"
INITIALIZATION_TOPIC_ID="0.0.1960"
```

### 3) Configure each service without an orchestrator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
# 💻 Import Export schemas User Guide
# 💻 Import and Export Excel file User Guide

The ‘Import/Export schemas from/to Excel’ UI triggers the process of seamless transformation of schemas written in Excel into valid Guardian JSON schemas, and vice versa. The content of such schema excel files must conform to the format represented in the template excel accessible via the corresponding button on the 'Policy Schemas’ page. The menu options for actioning Import and Export are accessible via the ‘Manage Policies’ and ‘Policy Schemas’ pages.
The ‘Import/Export schemas from/to Excel’ UI menu options trigger the process of seamless transformation of schemas written in Excel into valid Guardian JSON schemas, and vice versa. The content of such schema excel files must conform to the format presented in the template accessible via the corresponding button on the 'Policy Schemas’ page. The menu options for actioning Import and Export are accessible via the ‘Manage Policies’ and ‘Policy Schemas’ pages.

In Guardian, schemas cannot exist unless tied in with a Policy, a Tool or embedded into another schema. Therefore when a schema or a set of schemas are imported they get imported into a context of a policy. Users can create a new empty policy for such purposes, or use an existing policy. In the latter case, all existing schemas in the policy are preserved (and can be manually deleted later), new schemas are added together with the basic policy blocks scaffolding which is inserted at the beginning of the policy flow.
In Guardian schemas usually exist within a Policy, a Tool or embedded into another schema. To ease the process when a schema or a set of schemas are imported, they get imported into a context of a policy. Users can create a new empty policy for such purposes or use an existing policy. In the latter case all existing schemas in the policy are preserved (and can be manually deleted later), new schemas are added together with the basic policy blocks scaffolding which is inserted at the beginning of the policy flow.

When schemas are exported they are packaged into a single Excel file formatted similar to the template mentioned above. It is recommended to experiment with exporting your existing policies and reviewing the resulting excel files so you can familiarize your self with the format and the content.
When schemas are exported, they are packaged into a single Excel file formatted like the template mentioned above. It is recommended to experiment with exporting your existing policies and reviewing the resulting excel files so you can familiarize yourself with the format and the content.

## 1. Import

Use the corresponding menu option : **Import schemas from Excel** in the Manage Policies or Policy Schemas pages.

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

Import section pops up where we need to upload .xlsx file:

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

### 1.1 Errors

In case, when the importing engine was unable to parse the content of the given excel file then Guardian indicates the existence of the problem to the user, and gives an option to skip the invalid part to continue importing by clicking on **Skip & Import** button:

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

In cases, where the importing engine was not able to parse the content of a field then Guardian would specifically highlight this field in the schema after the import in red color rows:\


![](<../../../../.gitbook/assets/3 (14).png>)
![](<../../../.gitbook/assets/3 (14).png>)

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

### 1.2 Blocks

Importing schemas into a Guardian policy will result in a number of new autogenerated blocks appearing in the beginning of the policy flow which ‘hold’ each imported schema and its tool or form as shown in the screenshot below.

![](<../../../../.gitbook/assets/5 (15).png>)
![](<../../../.gitbook/assets/5 (15).png>)

### 1.3 Template

Guardian provides a basic downloadable Excel schema template which contains all possible types and structural elements supported by the system for importing. This template can be downloaded by clicking on the button highlighted in screenshot below:

![](<../../../../.gitbook/assets/6 (14).png>)
![](<../../../.gitbook/assets/6 (14).png>)

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

All schemas created for importing into Guardian must follow the design of the template containing the following elements:

Expand Down Expand Up @@ -105,12 +105,12 @@ All schemas created for importing into Guardian must follow the design of the te
**Note:** Currently only expression containing simple arithmetic operations are supported for **Auto-Calculate** in the _**Answer.**_ When specified it would result an the generation of the function template as shown on the example below.
{% endhint %}

![](<../../../../.gitbook/assets/8 (15).png>)
![](<../../../.gitbook/assets/8 (15).png>)

## 2. Export

Use the corresponding menu option : **Export schemas to Excel** in the Manage Policies or Policy Schemas pages.

![](<../../../../.gitbook/assets/9 (13).png>)
![](<../../../.gitbook/assets/9 (13).png>)

![](<../../../../.gitbook/assets/10 (14).png>)
![](<../../../.gitbook/assets/10 (14).png>)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Exporting Policy to Excel

{% swagger method="get" path="" baseUrl="/policies/{policyId}/export/xlsx" summary="Return policy and its artifacts in a xlsx file format for the specified policy." %}
{% swagger-description %}
Returns a xlsx file containing the published policy and all associated artifacts, i.e. schemas and VCs. Only users with the Standard Registry role are allowed to make the request.
{% endswagger-description %}

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

{% swagger-response status="200: OK" description="Successful Operation" %}
```
content:
application/json:
schema:
type: string
format: binary
```
{% endswagger-response %}

{% swagger-response status="401: Unauthorized" description="Unauthorized" %}

{% endswagger-response %}

{% swagger-response status="403: Forbidden" description="Forbidden" %}

{% endswagger-response %}

{% swagger-response status="500: Internal Server Error" description="Internal Server Error" %}
```
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerErrorDTO'
```
{% endswagger-response %}
{% endswagger %}
Loading

0 comments on commit e62fbf1

Please sign in to comment.