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
105 stars 132 forks source link

Attaching reference to PDD via programmatically built monitoring report #4364

Open gautamp8 opened 1 week ago

gautamp8 commented 1 week ago

Context

Usually external monitoring data is sent by an installer or sensor with a new DID. Technically, ref variable becomes the DID of the new device.

In metered energy policy, there is a need to prepare monitoring report schema programmatically by stitching daily usage data(sent by sensors) with PDD data originally entered by project proponent.

There's two approaches provided in the policy for creating a monitoring report.

1) Using Add Report button and filling the form manually

image

In this case a ref unique to the project gets attached to it automatically(notice the UUID row ).

image

2) External data comes in, goes via a calculate block to generate a monitoring report. In this case, ref is automatically added as DID. This MR doesn't have reference to existing project.

image

I need to figure out a way to keep the programmatically generated monitoring report via option 2 to retain original PDD reference.

Attachments

Python script needs the path to .config file downloaded. It's not possible to send nested schema VCs with MRV sender component, hence script is needed.

anvabr commented 2 days ago

Thank you for capturing this in the ticket @gautamp8. We discussed this internally at length. It appears that the current structure is as follows:

This is unusual and somewhat confusing for the following reasons:

At the moment the structure is as follows:

Perhaps the following is more appropriate:

Please let me know if this makes sense to you. If what we are suggesting is good for you then the following would be our suggestion:

This will sort out the issue for linking manual and automatic MRs.