Skip to content

chore(campaign): clean up non null types - #251

Open
ajohn25 wants to merge 3 commits into
feat-unstartfrom
chore-tidy-campaign
Open

chore(campaign): clean up non null types#251
ajohn25 wants to merge 3 commits into
feat-unstartfrom
chore-tidy-campaign

Conversation

@ajohn25

@ajohn25 ajohn25 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Description

This marks as non nullable a few database and GraphQL types for campaign that are always given a non null value in code, but previously not marked as such in the schema

customFieldAverageLengths is also updated in schema.graphl (just missed a yarn codegen run in #238

Motivation and Context

Enforcing types more strictly + cleaning up extra verbose code for clarity

Direct changes are in the migration and gql-schema/campaign.ts. Other changes to the codebase and tests are derived from the cleaned up types.

How Has This Been Tested?

This has been tested locally

Also confirmed in prod that no campaigns exist with null values for any of these fields

Screenshots (if appropriate):

Documentation Changes

Checklist:

  • My change requires a change to the documentation.
  • I have included updates for the documentation accordingly.

@boba1007
boba1007 force-pushed the chore-tidy-campaign branch from a63ba40 to 651bdbb Compare August 20, 2026 15:26
@boba1007
boba1007 force-pushed the chore-tidy-campaign branch from 651bdbb to a3648e0 Compare August 20, 2026 15:33
@ajohn25
ajohn25 force-pushed the chore-tidy-campaign branch from a3648e0 to edd9a4d Compare August 29, 2026 20:35
@ajohn25
ajohn25 force-pushed the chore-tidy-campaign branch from edd9a4d to 428cd01 Compare August 29, 2026 20:40
@ajohn25
ajohn25 requested a review from boba1007 August 29, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants