Skip to content

[Due for payment 2026-07-23] [$250] Policy.connections type marks every integration as present, risking runtime errors #95608

Description

@mhawryluk

In the Policy type all connections are currently typed as required, when in reality only a subset of them is present in the actual data (only the already set up ones, basically). This creates a risk of runtime errors and forces type assertions across multiple files, mostly in tests. No actual errors have been spotted, but it's easy to introduce some without the TypeScript guardrail.

We should mark the type for Policy.connections as Partial, so that it accurately represents real data.

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions