usdigitalresponse / grants-ingest

Ingests and indexes data related to grants
Apache License 2.0
6 stars 2 forks source link

[Forecasted Pipeline] Update PublishGrantEvents lambda #869

Open jeffsmohan opened 2 months ago

jeffsmohan commented 2 months ago

Blocked by

Blocks

N/A

Why is this issue important?

We want forecasted grants available in our dataset (alongside active grants) so we can integrate them into the product for our users.

Current State

The PublishGrantEvents lambda function is responsible for taking new and updated grants in our DynamoDB and publishing those updates as events for GOST to consume and store in our postgres database. However, this lambda specifically handles grant fields but not forecasted grant fields.

Expected State

The lambda should add additional logic in mapper.go to handle the new forecasted specific fields (see field reference here, as well as the target schema documentation in openapi/openapi.yaml to be implemented in https://github.com/usdigitalresponse/grants-ingest/issues/874) like EstimatedAwardDate. It should also add a denormalized IsForecasted boolean field.

Implementation plan

Should be gated behind the is_forecasted_grants_enabled flag.

Exact implementation TBD

WIP Notes

New struct fields and mapping behaviors for data derived from OpportunityForecastDetail_1_0 records:

TylerHendrickson commented 1 month ago

Sprinkling some documentation assets around: