hashgraph / hashgraph/guardian

Granular global search/diff matching arbitrary policy block subtrees

Open
#3,811 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
146
Forks
186
Avg merge
2d 20h
Merged PRs (30d)
126

Description

### Problem description
#2631 introduced capability to globally search for 'similar' policies produced by different Guardian instances and/or different Standard Registries (SRs). For policy creators it may be useful to make such search/diff more granular, i.e. to have facilities to search based on an arbitrary selection of blocks inside a polcy. I.e. to find 'matching' policies containing similar set of blocks, even if the rest of the policy differs.

### Requirements
Introduce the facility in the Policy Editor view to select a group of blocks and globally search for policies containing similar set of blocks. See the screenshots below:

![Скриншот 2024-06-20 19 14 25](https://github.com/hashgraph/guardian/assets/32775532/feecc7a6-8504-4637-b1fe-bfc36e40d38b)

![Скриншот 2024-06-20 19 14 34](https://github.com/hashgraph/guardian/assets/32775532/69aabec9-ead5-4c08-9075-f380b90e565b)

### Definition of done

- Policy creation and publishing also publishes block 'index' for the policy which enable search as described above
- This happens transparently to users/authors who are not required to do any additional actions
- The existing UI dialogues and pages are updated to enable the global and local search scopes

### Acceptance criteria
The search returns results within maximum 10-15 seconds.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.