Skip to content

fix(codegen): pin @dataplan/pg and grafast to prevent duplicate grafast install - #2073

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/codegen-pin-grafast
Nov 24, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
fix/codegen-pin-grafast

Conversation

@pyramation

@pyramation pyramation commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Pin @dataplan/pg (1.1.1) and grafast (1.1.2) directly in @constructive-io/graphql-codegen and graphile-schema so external npm/pnpm consumers do not resolve duplicate copies of grafast (1.1.2 + 1.2.1).

Root cause

Inside the monorepo, pnpm-workspace.yaml overrides @dataplan/pg: 1.1.1 and grafast: 1.1.2, which hides the drift. Downstream consumers installing @constructive-io/graphql-codegen do not inherit workspace overrides:

  • graphile-schema -> graphile-settings -> graphile-build-pg@5.1.3 requests @dataplan/pg: ^1.1.1, which npm resolves to @dataplan/pg@1.2.1 (requiring grafast: ^1.2.0).
  • Meanwhile postgraphile@5.1.4 / graphile-build@5.1.1 require grafast: ^1.1.0, installing grafast@1.1.2 at root and a nested grafast@1.2.1 under node_modules/@dataplan/pg/node_modules/grafast.

Pinning both packages directly matches the workspace policy (pnpm-policy.yaml) and resolves a single grafast@1.1.2 for external consumers.

Addresses Q15a in constructive-io/constructive-planning#2586.


Johnny opened this PR for Dan
Implemented in session Sort out small DevNet run items
Review with Devin · Open in Devin Desktop


Summary by CodeRabbit

  • Chores
    • Updated supporting package requirements for the schema and GraphQL code generation packages. No direct changes to the end-user experience are included in this update.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@luxor-code-review

luxor-code-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This small dependency-hygiene PR pins grafast@1.1.2 and @dataplan/pg@1.1.1 exactly in two workspace manifests so pnpm resolves a single grafast copy across the monorepo.

Files Change
graphile/graphile-schema/package.json, graphql/codegen/package.json Add or tighten grafast / @dataplan/pg to exact version pins, preventing duplicate grafast instances at install time.

No source code is touched; the change is manifest-only.

Reviewed commit: b13615c

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Both graphile-schema and graphql-codegen add @dataplan/pg version 1.1.1 and grafast version 1.1.2 as dependencies.

Changes: Runtime dependencies

Layer / File(s) Summary
Add runtime dependencies
graphile/graphile-schema/package.json, graphql/codegen/package.json
Both package manifests add @dataplan/pg 1.1.1 and grafast 1.1.2 as dependencies.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: zetazzz, luxor-code-review

Merge Risk: Minimal · up to b1361 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Architecture risk: Low · up to b1361

The change affects 2 systems.

Changed systems: graphile, graphql

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — graphile (service) was modified; 1 changed file maps to changed impact.
  • observed — graphql (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in graphile/graphile-schema/package.json: Added @dataplan/pg and grafast to dependencies; deepmerge remains listed.
  • observed — Modified behavior in graphql/codegen/package.json: Added runtime dependencies @dataplan/pg (1.1.1) and grafast (1.1.2); the intervening dependency entries remain unchanged.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two packages pinned (@dataplan/pg and grafast), the codegen scope, and the stated purpose (preventing a duplicate grafast install). The changeset adds exact @dataplan/pg 1.1.1 and …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two packages pinned (@dataplan/pg and grafast), the codegen scope, and the stated purpose (preventing a duplicate grafast install). The changeset adds exact @dataplan/pg 1.1.1 and grafast 1.1.2 dependencies to the codegen and graphile-schema package.json files, which matches the title. The title is specific and concise. It omits graphile-schema, which is a minor gap and does not make the title misleading.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fced582 and b13615c.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Files selected for processing: 2

  • graphile/graphile-schema/package.json
  • graphql/codegen/package.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit cb5dfea into main Nov 24, 2026
26 of 27 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/codegen-pin-grafast branch November 24, 2026 22:53
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.

1 participant