Skip to content
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

[Forecasted Pipeline] Update PublishGrantEvents lambda #869

Open
jeffsmohan opened this issue Jul 10, 2024 · 1 comment
Open

[Forecasted Pipeline] Update PublishGrantEvents lambda #869

jeffsmohan opened this issue Jul 10, 2024 · 1 comment
Assignees

Comments

@jeffsmohan
Copy link
Contributor

jeffsmohan commented Jul 10, 2024

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 #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:

  • Grant struct:
    • FiscalYear, mapped from FiscalYear
  • GrantorContact struct:
    • Name, mapped from GrantorContactName
    • Phone, mapped from GrantorContactPhoneNumber
  • OpportunityMilestones struct:
    • AwardDate, mapped from EstimatedAwardDate
    • ProjectStartDate, mapped from EstimatedProjectStartDate
    • ForecastCreationDate, mapped from PostDate
@TylerHendrickson
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants