Closed S4mmyb closed 1 year ago
The fields related to regen:cfcCreditSerialNumbers
and others are only within the @context
and don't actually affect the data itself. It's there to support all possible contexts (that we had so far).
But there's an issue indeed with https://schema.regen.network#galleryPhotos
being added to the anchored metadata. I suspect this might be because we get this after fetching and compacting the metadata on the client side. This field should be compacted into regen:galleryPhotos
and removed from the anchored metadata but somehow it appears as not compacted: https://schema.regen.network#galleryPhotos
and doesn't get removed.
Hey team! Please add your planning poker estimate with Zenhub @blushi @flagrede @wgwz
I've been trying to figure this out and I'm not having any real success. One thing is that I'm having trouble reproducing the issue that Sam saw. Another thing is that the code for the project form is quite complex to understand and I'm not super familiar. I think for the sake of time, I'll put this back in the backlog and let someone else grab it (probably @blushi i guess).
While I couldn't repro the issue that Sam had, I can say that I saw some things that look to be caching problems. For example, here's a set of instructions that I think reproduces an issue with the form and project page:
Obviously this may be a separate issue, but it might also be related 🤷 I'm not 100% sure that this is a reproducer so please don't get too distracted by it
Describe the bug When I used the project create form to create KSH01-001, I input the JSON-LD for the anchored metadata. When the project was created I noticed that none of it was populating in the additional info section. When I tried to edit the metadata post-project creation using the project edit form, I noticed that most of the metadata I submitted did not populate, and instead the JSON-LD anchored on-chain was a mix of the project page metadata and the anchored project metadata.
This is what I originally submitted:
This is what was anchored:
As you can see, the anchored project metadata is overwritten with project page material. Additionally the (incorrect) metadata which was anchored includes things like
regen:cfcCreditSerialNumbers
andregen:additionalCertifications
which are not applicable to this project metadata.Expected behavior
The anchored metadata would be the JSON-LD the user inputs.
For Admin Use