This is the final step of the schema changes described in #217 . Organization will no longer be a field on reporting period, instead each organization will have preferences JSON that contains a reporting_period_id
Current State
organization is a field on reporting_period in the DB and GraphQL schema
Expected State
organization is no longer a field on reporting_period in DB or GraphQL schema
Why is this issue important?
This is the final step of the schema changes described in #217 . Organization will no longer be a field on reporting period, instead each organization will have
preferences
JSON that contains areporting_period_id
Current State
organization
is a field onreporting_period
in the DB and GraphQL schemaExpected State
organization
is no longer a field onreporting_period
in DB or GraphQL schemaImplementation Plan
Need to wait for this: https://github.com/usdigitalresponse/cpf-reporter/commit/94b3f15ad76b36be5a91c7bf99ce9ff3da3d6ebd to be merged, and then:
organization
andorganizationId
fromreportingPeriod
inschema.prisma
and migrate / create SQL migration fileorganization
fromreportingPeriod
in GraphQL schema definition filesreportingPeriod.ts
andorganization.ts
Relevant Code Snippets
No response