-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add support for optional credit class image #56
Conversation
@@ -0,0 +1,63 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this generic credit-class.jsonld template because I thought it would be useful for community credit class creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@S4mmyb could you let me know whether we should remove certain fields from here or not? (fields that might not be generic to all credit classes)
@@ -1,77 +1,15 @@ | |||
@prefix dash: <http://datashapes.org/dash#> . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made the existing credit-class.ttl legacy and just documented the optional image for credit class in here
I'm wondering whether I should add properties that we're sure are generic to all credit classes too (like name, description... those needs to be confirmed first, see my comment above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why wouldn't we want to add those @blushi ? i'm honestly just unsure either way, so thought it would be helpful to ask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that we could have one generic credit-class.ttl file that documents all the standardized fields for credit class metadata, then the non standardized fields (relative to a particular credit class) would be in separate .ttl files
Because right now, most of the constraints in C01-verified-carbon-standard-class.ttl, C02-city-forest-credits-class.ttl and C03-toucan-tco2-class.ttl are repeated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
"regen:sectoralScope": [ | ||
"" | ||
], | ||
"regen:offsetGenerationMethod": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably we should start using regen:creditGenerationMethod
instead to be more generic like discussed here: https://www.notion.so/regennetwork/Offset-Generation-Method-9d2839af4bcb42a197f019a1b131a149?pvs=4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it a good time to do that in this PR? or does it maybe make sense to do it all at once in a separate task? i'm just thinking of the cascade of changes we would have to make if we did do it as a part of this (and assuming we want to deprecate the regen:offsetGenerationMethod
in general).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if what you had in mind was to add this field here and we would still keep regen:offsetGenerationMethod
as a field, that would be less work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah my suggestion was still to support regen:offsetGenerationMethod
for existing credit classes so we don't have to update their metadata but use regen:creditGenerationMethod
moving forward, especially for community credit classes. This way that doesn't imply additional work (except for some minor front-end changes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm ok with that then, makes sense to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this naming was coming from Sarah B. but it is a bit confusing for me because on the buyers page we do use "offset generation method" which she did approve and I think we should keep it consistent. If offset generation method is more clear, then maybe we just wouldn't show that field for biodiversity credits, water credits, etc. rather than trying to make it generic?
Makes sense, in this case, should we revert to "offset generation method" on the credit class card? it's currently on dev: https://dev.app.regen.network/project/C02-001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I guess so
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-carbon credits aren't considered offsets, so I think we should just exclude "offset generation method" for non-carbon credits. The ERABrazil example is wrong because it shouldn't be included as it's not an offset, so I think we should just put a N/A in those cases like you did @blushi. In terms of the terminology, I think "offset generation method" is fine. But if we're looking for something generic that we could put on all credit class detail cards I think I would go with Project Activity over "offset generation method" as it's something we can stick on carbon and non-carbon credit class cards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: ERA Brazil, @erikalogie created an issue to make the offset gen method optional for project cards on the buyers because so far they were required (from Sanity): regen-network/rnd-dev-team#1751
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added regen-network/regen-web#1952 for reverting the naming on the app
@wgwz could you help with the docker build issue: https://github.com/regen-network/regen-registry-standards/actions/runs/5276167983/jobs/9542523640?pr=56? thanks! |
@blushi no prob, it was just a new release of a debian docker image that we automatically upgraded to causing the issue. i pushed a commit to pin us to the debian release that we were using previously (bullseye). |
Description
ref: regen-network/rnd-dev-team#1428
It also removes some unnecessary
@types
s : 2872e5eThe impacted metadata also got updated on the prod database (their IRIs remaining the same since those changes are only format related changes and don't have any impact on the resulting canonized data)
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...