Updating the ophan acquisitions model - guardian/support-frontend GitHub Wiki
Our backends send acquisition events to Data Lake via Ophan. This isn't ideal because it means we're tied to Ophan's model. We should eventually migrate to sending events direct to Data Lake and maintain our own model. For now, the process for updating the acquisition model is as follows:
- Create a branch on ophan. Update the thrift model here here. Then follow the guide here to update the avro schema. Create a PR.
- After merging the ophan change, release the event-model library with
release crossfrom theeventModelproject in sbt. - Create a branch on ophan-data-lake. As described in the guide, copy the latest .avsc file from
ophan/avro-logger/src/test/resources/schemas/toophan-data-lake/ophan_event.avscand create a PR. - Create a branch on acquisition-event-producer. Update the
ophan-event-modeldependency in the build.sbt, and after merging runsbt release. - Create a branch on support-frontend. Update the
acquisition-event-producer-play26_2.12dependency in support-models/build.sbt. - After merging the support-frontend change, release support-models. Unfortunately we need to use this branch to do this. (Once we have moved payment-api into the support-frontend mono repo we will no longer have to release support-models.)
- Create a branch on payment-api. Update the support-models dependency.
- Create a branch on acquisitions-firehose-transformer and update the
ophan-event-modeldependency