hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
93 stars 120 forks source link

Granular global search/diff matching arbitrary policy block subtrees #3811

Open anvabr opened 1 week ago

anvabr commented 1 week ago

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

Скриншот 2024-06-20 19 14 34

Definition of done

Acceptance criteria

The search returns results within maximum 10-15 seconds.