bcgov / greenlight

A demonstration of the verifiable organization network showing a new restaurant gathering the permits necessary to open.
Apache License 2.0
34 stars 45 forks source link

Update permitify schema and mapping to ensure TheOrgBook is being populated fully for the demo #126

Closed nrempel closed 6 years ago

nrempel commented 6 years ago

TheOrgBook is populated from credentials using a mapping definition. Incoming credentials in TheOrgBook are parsed and the application database in TheOrgBook is updated.

The "foundational" credential is a credential is one that creates a "topic" in TheOrgBook. It also generates an organization page. Currently, the permitify uses a schema with a minimal set of attributes. It works, but some of the fields are left blank in TheOrgBook. See the following images:

permitify: Screen Shot 2018-10-29 at 3.46.50 PM.png

real bc registries data from prod: Screen Shot 2018-10-29 at 3.48.00 PM.png

You can use the real bc registries von-x configuration as a starting point.

The schema is here: https://github.com/ianco/von-bc-registries-agent/blob/master/bcreg-x/config/schemas.yml

the mapping is here: https://github.com/ianco/von-bc-registries-agent/blob/master/bcreg-x/config/services.yml#L50

I recommend starting by trying to copy over the schema and mapping and changing only what is required if there are any problems.

esune commented 6 years ago

This is resolved by #133