bcgov/greenlight

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

nrempel opened this issue · 1 comments

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

This is resolved by #133