Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Develop into Main for 2.15 #2495

Merged
merged 2,647 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
2647 commits
Select commit Hold shift + click to select a range
35b262d
fix permission
simvalery Jun 29, 2023
b0d86f6
fix permission
simvalery Jun 29, 2023
d9fcc13
Merge branch 'develop' of https://github.com/hashgraph/guardian into …
simvalery Jun 29, 2023
47b1235
fix
Stepan-Kirjakov Jun 29, 2023
8e191a8
Merge pull request #2352 from hashgraph/feature/2161
simvalery Jun 29, 2023
d73bf6b
#2064 fix mobile menu
Stepan-Kirjakov Jun 29, 2023
60f9745
Merge branch 'develop' of github.com:hashgraph/guardian into develop
Stepan-Kirjakov Jun 29, 2023
bd2ec41
Merge branch 'develop' into feature/save-serials
Stepan-Kirjakov Jun 29, 2023
745ae8b
Merge branch 'main' of https://github.com/hashgraph/guardian into fea…
simvalery Jun 29, 2023
5cf9cf1
merge main
simvalery Jun 29, 2023
674c55b
Merge pull request #2354 from hashgraph/feature/2161
simvalery Jun 29, 2023
6acd770
fix
Stepan-Kirjakov Jun 29, 2023
9d72b4a
Merge branch 'develop' into feature/save-serials
Stepan-Kirjakov Jun 29, 2023
b44e762
remove latest tags
simvalery Jun 29, 2023
8b3f1e2
Merge pull request #2356 from hashgraph/feature/2161
simvalery Jun 29, 2023
db7ecc6
Merge pull request #2353 from hashgraph/feature/save-serials
Stepan-Kirjakov Jun 29, 2023
3817f33
update serials column [skip ci]
Jun 29, 2023
c926ed8
Merge pull request #2358 from hashgraph/feature/updating-serials-column
Jun 29, 2023
f69062b
updated Irec timestamps
prernaadev01 Jun 29, 2023
aa58371
fix docker start
simvalery Jun 29, 2023
e5e3251
updated iREC10 recipient timestamp
prernaadev01 Jun 29, 2023
a478292
GITBOOK-376: Updated iREC timestamps
prernaadev01 Jun 29, 2023
00974e0
added copy button to new versions
Jun 28, 2023
3d0b7b1
fix createDate\updateDate in db
Stepan-Kirjakov Jun 30, 2023
1973182
Merge branch 'develop' of github.com:hashgraph/guardian into develop
Stepan-Kirjakov Jun 30, 2023
b138fee
fix navigate
Stepan-Kirjakov Jun 30, 2023
3dd86c1
fix disable btn in request block
Stepan-Kirjakov Jun 30, 2023
05b4635
fix schema cache
Jun 30, 2023
82100f6
hotfix/form-scroll-buttons
PensoGlide Jun 28, 2023
ee58893
Update the initial isShown array value
itelesheva Jun 29, 2023
253b0e2
Merge pull request #2349 from hashgraph/feature/2317
Jun 30, 2023
7c3bcf0
add swagger descriptions
simvalery Jun 30, 2023
1188c22
[skip ci] Add swagger.yaml
envision-ci-agent Jun 30, 2023
745e280
fix suggestions on deleting policy/module
Jun 30, 2023
bf45f71
Merge pull request #2347 from IntellectEU/hotfix/form-scroll-buttons
simvalery Jun 30, 2023
7a713aa
use static swagger descriptions if need
simvalery Jun 30, 2023
684f6c9
[skip ci] Add swagger.yaml
envision-ci-agent Jun 30, 2023
9398deb
bump version
simvalery Jun 30, 2023
bb1f7dc
bump version
simvalery Jun 30, 2023
fd4ce89
[skip ci] Add swagger.yaml
envision-ci-agent Jun 30, 2023
93fc477
fix lock file
simvalery Jun 30, 2023
24f28ba
GITBOOK-377: api-architecture-customization
Jun 30, 2023
468fe85
fix update policy
Stepan-Kirjakov Jun 30, 2023
7d7813a
Merge branch 'main' of https://github.com/hashgraph/guardian into dev…
simvalery Jun 30, 2023
04261a2
fix any policy change
simvalery Jun 30, 2023
20087ab
fix any policy change
simvalery Jun 30, 2023
98c2d25
bump version
simvalery Jul 3, 2023
555f1ca
[skip ci] Add swagger.yaml
envision-ci-agent Jul 3, 2023
88e5f40
Merge pull request #2374 from hashgraph/main
simvalery Jul 3, 2023
fbebf9d
fix description size
Stepan-Kirjakov Jul 4, 2023
02e8361
Merge branch 'develop' of github.com:hashgraph/guardian into develop
Stepan-Kirjakov Jul 4, 2023
2aadf0f
fix policy grid size
Stepan-Kirjakov Jul 4, 2023
d73c006
fix tooltips
Stepan-Kirjakov Jul 4, 2023
4fda044
GITBOOK-378: module differentiation UI and API added
prernaadev01 Jul 4, 2023
bdd5d3d
update ghgp policy [skip ci]
Jul 5, 2023
7572a79
Merge pull request #2378 from hashgraph/feature/1666
Jul 5, 2023
306cce6
add analytics service
Stepan-Kirjakov Jul 5, 2023
a795933
GITBOOK-379: Updating Build executables and run manually
prernaadev01 Jul 5, 2023
7f6c41f
fix too big policy
simvalery Jul 5, 2023
b452ceb
Merge pull request #2380 from hashgraph/feature/fix-toobigpolicy
simvalery Jul 5, 2023
f0d8411
Added ReadMe of CDM
prernaadev01 Jul 6, 2023
5393d69
fix calculate block output schema config
Jul 6, 2023
3864838
fix overwriting system fields in custom logic
Jul 6, 2023
a72df38
remove context and type filling on ui
Jul 6, 2023
015f6b6
add consensus nodes examples
simvalery Jul 6, 2023
5aa0a4b
Merge pull request #2384 from hashgraph/feature/fix-toobigpolicy
simvalery Jul 6, 2023
31f1507
GITBOOK-380: Added CDM AMS-III AR Policy guide
prernaadev01 Jul 6, 2023
d27a2c7
fix mongodb version
simvalery Jul 7, 2023
197bd7e
update aggregate block in ghgp
Jul 7, 2023
bff2953
Updated iREC version links
prernaadev01 Jul 7, 2023
1778e9f
Updated README.md
prernaadev01 Jul 7, 2023
91e86d9
Updated README.md
prernaadev01 Jul 7, 2023
832cb05
Merge pull request #2386 from hashgraph/feature/1666
Jul 7, 2023
d3892b7
fix too big policy
simvalery Jul 5, 2023
6f52c98
fix calculate block output schema config
Jul 6, 2023
9a1447c
fix mongodb version
simvalery Jul 7, 2023
3d98b75
update ghgp policy [skip ci]
Jul 5, 2023
67c20be
update aggregate block in ghgp
Jul 7, 2023
ced217f
update versions
Jul 7, 2023
52121df
[skip ci] Add swagger.yaml
envision-ci-agent Jul 7, 2023
56bc44e
update versions
Jul 7, 2023
eeecaa7
Merge pull request #2388 from hashgraph/hotfix/updating-ghgp-policy
simvalery Jul 7, 2023
0fc861c
Merge pull request #2392 from hashgraph/main
simvalery Jul 9, 2023
3d3a409
fix server block errors messages
simvalery Jul 10, 2023
b2ae4bb
corrected some links in ReadMe
prernaadev01 Jul 10, 2023
7cfd39a
fix empty input data error
simvalery Jul 10, 2023
a68bce6
Update README.md
Rajeev-KrypC Jul 11, 2023
7732b24
Update README.md
Rajeev-KrypC Jul 11, 2023
4d82e83
Added webinar youtube link for CDM
prernaadev01 Jul 11, 2023
28b68b5
new_env_hsc
otherNet Jul 11, 2023
7054ce1
Update workers on docker-compose.yml
wolfwolker Jul 5, 2023
a2e6fe7
Update docker-compose-aws.yml
wolfwolker Jul 12, 2023
080ef3e
Update docker-composeRIL.yml
wolfwolker Jul 12, 2023
6b0ebb4
update dc ssv
wolfwolker Jul 12, 2023
fec1c01
Merge pull request #2379 from IntellectEU/fix/workers-cold-start-dc
simvalery Jul 12, 2023
b6dee48
Merge pull request #2404 from IntellectEU/feature/environemnt_hcp_newenv
simvalery Jul 13, 2023
637c65f
Merge pull request #2402 from l-rajeev/patch-1
simvalery Jul 13, 2023
af2dac3
update
Stepan-Kirjakov Jul 14, 2023
41a3653
fix build
simvalery Jul 17, 2023
b3df3c8
import tags from ipfs
simvalery Jul 18, 2023
97407ff
GITBOOK-383: added selective disclosure user guide
prernaadev01 Jul 18, 2023
45f888a
update
Stepan-Kirjakov Jul 19, 2023
681b621
GITBOOK-384: changed the env route in installation
prernaadev01 Jul 19, 2023
74e9d52
Merge pull request #2434 from hashgraph/main
simvalery Jul 20, 2023
dc8b52a
added notification service
Jul 20, 2023
100c055
fix lint
Jul 21, 2023
c8c2d20
fix building notification service
Jul 21, 2023
960d1a9
[skip ci] Add swagger.yaml
envision-ci-agent Jul 21, 2023
52d8a51
fix visibility for json properties
Jul 21, 2023
fc5f2f2
fix statuses page
Jul 24, 2023
57e8cab
added notification block
Jul 24, 2023
07d697c
delete progresses by timeout
Jul 24, 2023
249746a
Merge pull request #2382 from hashgraph/fix/2332
Jul 24, 2023
d8cffd3
added notifications
Jul 24, 2023
70073f8
added notifications to policy token actions
Jul 24, 2023
c579a2f
remove unnecessary console logs
Jul 24, 2023
b93b218
fix
Jul 24, 2023
8c29dfe
update
Stepan-Kirjakov Jul 24, 2023
b9cc973
fix: upgrade ajv from 8.11.0 to 8.12.0
snyk-bot Jul 24, 2023
a9f62ee
fix task action and error handlers
Jul 25, 2023
38e359f
added swagger docs
Jul 25, 2023
749e242
added publishing notification service
Jul 25, 2023
1efa83b
[skip ci] Add swagger.yaml
envision-ci-agent Jul 25, 2023
1645364
fix
Jul 25, 2023
9b1e3c3
fix users connection in worker
Jul 25, 2023
429dc80
fix multiinstances for notification service
Jul 25, 2023
e872028
update
Stepan-Kirjakov Jul 25, 2023
2df2d8f
Merge branch 'develop' into feature/2245
Stepan-Kirjakov Jul 25, 2023
5d03cf4
correct expectation, change mint notifications
Jul 25, 2023
6c3e990
update
Stepan-Kirjakov Jul 25, 2023
d73fda9
update
Stepan-Kirjakov Jul 25, 2023
1907f23
fix lint
Jul 26, 2023
f439191
merge
Jul 26, 2023
913b8e3
fix
Jul 26, 2023
471bda7
Merge pull request #2451 from hashgraph/feature/2299
Jul 26, 2023
5af0f20
added new cdm policy [skip ci]
Jul 26, 2023
77119c2
fix context in dry run
Jul 26, 2023
112bfaa
fix notification messages
Jul 26, 2023
efe141c
Merge pull request #2459 from hashgraph/feature/2407
Jul 26, 2023
47df63e
deprecate wizard create
Jul 26, 2023
296fdd7
fix response for associate/dissociate token
Jul 26, 2023
601ef1f
missing docs for new wizard create
Jul 26, 2023
e0e31be
[skip ci] Add swagger.yaml
envision-ci-agent Jul 26, 2023
5fe0942
Merge pull request #2460 from hashgraph/feature/2299
Jul 26, 2023
0190c0d
fix mint error notification
Jul 26, 2023
bd61a87
update
Stepan-Kirjakov Jul 26, 2023
7de7919
Merge branch 'develop' into feature/2245
Stepan-Kirjakov Jul 26, 2023
025f956
update
Stepan-Kirjakov Jul 26, 2023
cf9bc70
fix
Stepan-Kirjakov Jul 26, 2023
677d6e2
added notification service to docker compose files
Jul 26, 2023
5aceb48
remove unnecessary mint finish notification
Jul 26, 2023
3da5b46
Merge pull request #2461 from hashgraph/feature/2299
Jul 26, 2023
ce671d4
GITBOOK-382: Cloud deployment
prernaadev01 Jul 26, 2023
86bac43
fix reading notifications
Jul 26, 2023
287011e
update styles for notifications
Jul 26, 2023
6d5caa8
fix
Stepan-Kirjakov Jul 26, 2023
a83b17d
fix: upgrade @mikro-orm/mongodb from 5.6.12 to 5.7.12
snyk-bot Jul 26, 2023
79892d9
fix: upgrade @mikro-orm/reflection from 5.6.12 to 5.7.12
snyk-bot Jul 26, 2023
f602f01
module schema validation
simvalery Jul 26, 2023
0b39691
[skip ci] Add swagger.yaml
envision-ci-agent Jul 26, 2023
1f43361
remove credentials
simvalery Jul 27, 2023
ab87dc2
Merge pull request #2464 from hashgraph/feature/2246
simvalery Jul 27, 2023
b820d1d
analytics-service docker image
simvalery Jul 27, 2023
b1c6b81
Merge branch 'develop' into feature/2245
simvalery Jul 27, 2023
4df7c8e
fix lint
simvalery Jul 27, 2023
a1c06e5
Merge pull request #2465 from hashgraph/feature/2245
simvalery Jul 27, 2023
b323afd
bump version
simvalery Jul 27, 2023
6587c47
[skip ci] Add swagger.yaml
envision-ci-agent Jul 27, 2023
382eefb
remove credentials
simvalery Jul 27, 2023
2718be3
Merge pull request #2456 from hashgraph/snyk-upgrade-bdafc68ae4e7858f…
simvalery Jul 27, 2023
946ad1b
Merge pull request #2463 from hashgraph/snyk-upgrade-06baa1a96efa4cba…
simvalery Jul 27, 2023
87ea9c3
Merge branch 'develop' into snyk-upgrade-b46f5228e53a305aa32b1806ac09…
simvalery Jul 27, 2023
9b57719
add variable
simvalery Jul 27, 2023
a405071
Merge pull request #2462 from hashgraph/snyk-upgrade-b46f5228e53a305a…
simvalery Jul 27, 2023
3fc873d
add workers
simvalery Jul 27, 2023
37bc2e8
fix
simvalery Jul 27, 2023
c85e40e
fix
simvalery Jul 27, 2023
e4ba0d0
test fix
simvalery Jul 27, 2023
f62195b
Revert "fix"
simvalery Jul 27, 2023
7c08f17
fix error
simvalery Jul 27, 2023
597f067
fix error
simvalery Jul 27, 2023
5d6d945
remove unnesessary dependency
simvalery Jul 27, 2023
5e9c2c3
fix
simvalery Jul 27, 2023
2a9cf4c
fix packae version
simvalery Jul 27, 2023
a3becbf
fix yarn.lock
simvalery Jul 27, 2023
8a05db3
add restart btn
Stepan-Kirjakov Jul 27, 2023
63520bb
Merge branch 'develop' of github.com:hashgraph/guardian into develop
Stepan-Kirjakov Jul 27, 2023
56e65de
upd cdm policy [skip ci]
Jul 27, 2023
04b21cd
fix bugs
simvalery Jul 27, 2023
1a16fbd
fix validator
simvalery Jul 27, 2023
e48cb3b
remove tags
simvalery Jul 27, 2023
d4b05c3
remove topic
simvalery Jul 27, 2023
a67818c
remove unused columns
simvalery Jul 27, 2023
1d6dd39
remove secrets [skip ci]
simvalery Jul 27, 2023
5e7a2fe
fix 2467
simvalery Jul 27, 2023
c40757a
fix version
simvalery Jul 27, 2023
7d47316
Merge branch 'main' of https://github.com/hashgraph/guardian into dev…
simvalery Jul 27, 2023
9329c02
[skip ci] Add swagger.yaml
envision-ci-agent Jul 27, 2023
cde3b84
Merge pull request #2471 from hashgraph/main
simvalery Jul 27, 2023
7223973
GITBOOK-385: Updated Roadmap and removed Keys
prernaadev01 Jul 27, 2023
0fbb739
update INITIALIZATION_TOPIC_ID
Stepan-Kirjakov Jul 27, 2023
b1d3fa6
update message id
Stepan-Kirjakov Jul 27, 2023
a97c4f2
Merge pull request #2472 from hashgraph/feature/2467
simvalery Jul 27, 2023
d3280c9
fix policy publish completed notification
Jul 28, 2023
fee1ecf
fix nest js for multi service instances
Jul 28, 2023
5825fbb
fix publish policy result handling
Jul 28, 2023
1f0b7f5
fix duplicate create policy topic message
Jul 28, 2023
779930c
GITBOOK-386: Updated new iREC Timestamps
prernaadev01 Jul 28, 2023
4e4f118
Updated iREC timestamps in ReadMe
prernaadev01 Jul 28, 2023
24dcb2b
#2429
Stepan-Kirjakov Jul 28, 2023
482ae92
Merge branch 'develop' into feature/2429
Stepan-Kirjakov Jul 28, 2023
d3ff90a
GITBOOK-387: Adding Notification
prernaadev01 Jul 28, 2023
fa778fe
GITBOOK-388: notifications feature
prernaadev01 Jul 28, 2023
01b8447
fix
Stepan-Kirjakov Jul 28, 2023
5003e09
GITBOOK-389: Statistics UI added
prernaadev01 Jul 28, 2023
80adfc5
GITBOOK-390: added Statistics APIs
prernaadev01 Jul 29, 2023
92aa748
skip publish system schemas
Jul 31, 2023
12b83ea
fix description for notification endpoints
Jul 31, 2023
460bbfe
[skip ci] Add swagger.yaml
envision-ci-agent Jul 31, 2023
62d14f1
fix router states for async progresses
Jul 31, 2023
56212f9
Merge pull request #2475 from hashgraph/feature/2474
Jul 31, 2023
4d60f8e
Merge pull request #2476 from hashgraph/feature/2406
Jul 31, 2023
bb9118a
fix nginx escape chars
simvalery Jul 31, 2023
7e85e74
[skip ci] Add swagger.yaml
envision-ci-agent Jul 31, 2023
ff638ad
Merge pull request #2492 from hashgraph/fix/fix-nginx-excape-chars
simvalery Jul 31, 2023
f95a01a
fix module schema save
simvalery Jul 31, 2023
faea518
fix create modules
Stepan-Kirjakov Jul 31, 2023
ea509a0
Merge branch 'develop' into feature/2429
Stepan-Kirjakov Jul 31, 2023
33323d4
add topic check
Stepan-Kirjakov Jul 31, 2023
1e27b03
analitics swagger yaml (#2494)
simvalery Jul 31, 2023
6680033
bump version
simvalery Jul 31, 2023
4f3bf60
[skip ci] Add swagger.yaml
envision-ci-agent Jul 31, 2023
927f9fc
Create readMe.md for AMS II.G
prernaadev01 Jul 31, 2023
fd7657e
Merge pull request #2493 from hashgraph/feature/2429
Stepan-Kirjakov Jul 31, 2023
3289262
[skip ci] Add swagger.yaml
envision-ci-agent Jul 31, 2023
51e37ee
fix geojson type
Jul 31, 2023
2c11486
Create readMe.md of GHGP policy
prernaadev01 Jul 31, 2023
3fb9499
Merge pull request #2499 from hashgraph/fix/geojson-type
Jul 31, 2023
75e305e
Updated timestamps for CDM II.G
prernaadev01 Jul 31, 2023
8675ab8
Update timestamp for CDM AR
prernaadev01 Jul 31, 2023
19df448
Updated timestamp for AR-ACM003
prernaadev01 Jul 31, 2023
b3caa13
GitBook: No commit message
Jul 31, 2023
d12835c
Update timestamp fro GHGP
prernaadev01 Jul 31, 2023
d4f3be8
Update timestamp
prernaadev01 Jul 31, 2023
f00b3a3
Update timestamp of Gold Standard AR
prernaadev01 Jul 31, 2023
b487d9a
Update timestamp Verra ARR
prernaadev01 Jul 31, 2023
1dceb1b
Update timestamp of Verra VM0007
prernaadev01 Jul 31, 2023
a212cb5
Update timestamp
prernaadev01 Jul 31, 2023
70935f5
Update timestamp
prernaadev01 Jul 31, 2023
3118522
GitBook: No commit message
Jul 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions common/src/hedera-modules/vcjs/vcjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,21 +489,28 @@ export class VCJS {
* @param {any} subject - subject
* @returns {any} - subject
*/
public addDryRunContext(subject: any): any {
if (!subject || !subject.type) {
public addDryRunContext(subject: any, context?: string[]): any {
if (!subject || typeof subject !== 'object') {
return subject;
}
subject['@context'] = [`schema#${subject.type}`];
// tslint:disable-next-line:no-shadowed-variable
for (const key of Object.keys(subject).filter((key) => ![
'@context',
'type',
'policyId',
'ref',
'id',
].includes(key))) {
subject[key] = this.addDryRunContext(subject[key]);

if (Array.isArray(subject)) {
for (const subjectItem of subject) {
this.addDryRunContext(subjectItem, context);
}
return subject;
}

if (!subject.type) {
return subject;
}

subject['@context'] = context || [`schema#${subject.type}`];

for (const value of Object.values(subject)) {
this.addDryRunContext(value, subject['@context']);
}

return subject;
}

Expand Down
54 changes: 31 additions & 23 deletions interfaces/src/helpers/schema-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,42 +738,51 @@ export class SchemaHelper {
}

/**
* Clear fields context
* Update fields context
* @param fields
* @param json
* @private
*/
private static _clearFieldsContext(json: any): any {
delete json.type;
delete json['@context'];

const keys = Object.keys(json);
for (const key of keys) {
if (Object.prototype.toString.call(json[key]) === '[object Object]') {
json[key] = SchemaHelper._clearFieldsContext(json[key]);
private static _updateFieldsContext(
fields: SchemaField[],
json: any,
parent?: SchemaField
): any {
if (Object.prototype.toString.call(json) === '[object Array]') {
for (const item of json) {
SchemaHelper._updateFieldsContext(fields, item, parent);
}
return json;
}

return json;
}

/**
* Update fields context
* @param fields
* @param json
* @private
*/
private static _updateFieldsContext(fields: SchemaField[], json: any): any {
if (Object.prototype.toString.call(json) !== '[object Object]') {
return json;
}

if (parent) {
if (parent.context.type === 'GeoJSON') {
json['@context'] = parent.context.context;
} else {
json.type = parent.context.type;
json['@context'] = parent.context.context;
}
} else {
delete json.type;
delete json['@context'];
}

for (const field of fields) {
const value = json[field.name];
if (field.isRef && value) {
SchemaHelper._updateFieldsContext(field.fields, value);
value.type = field.context.type;
value['@context'] = field.context.context;
SchemaHelper._updateFieldsContext(field.fields, value, field);
} else if (
Object.prototype.toString.call(value) === '[object Object]'
) {
delete value.type;
delete value['@context'];
}
}

return json;
}

Expand All @@ -783,7 +792,6 @@ export class SchemaHelper {
* @param json
*/
public static updateObjectContext(schema: Schema, json: any): any {
json = SchemaHelper._clearFieldsContext(json);
json = SchemaHelper._updateFieldsContext(schema.fields, json);
json.type = schema.type;
json['@context'] = [schema.contextURL];
Expand Down