Skip to content

Queue observability via Posthog#745

Open
rajat1saxena wants to merge 3 commits intomainfrom
issue-742
Open

Queue observability via Posthog#745
rajat1saxena wants to merge 3 commits intomainfrom
issue-742

Conversation

@rajat1saxena
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
courselit-docs Ready Ready Preview, Comment Mar 22, 2026 5:57pm

Request Review

@rajat1saxena rajat1saxena changed the title bug fix: drip settings cannot be switched off Queue observability via Posthog Mar 21, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c20c0b269

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +808 to 809
if (typeof drip.status === "boolean") {
$set["groups.$.drip.status"] = drip.status;

Choose a reason for hiding this comment

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

P2 Badge Preserve drip.type when accepting status: false

Because DripInput.type is optional in apps/web/graphql/courses/types/index.ts:86-95 but Drip.type is non-null on reads at apps/web/graphql/courses/types/index.ts:97-103, this new branch can create a partial groups.$.drip object when a client sends updateGroup(..., drip: { status: false }) for a group that has never had drip configured. In that case the mutation stores drip.status without any drip.type, and subsequent reads of that group can fail with Cannot return null for non-nullable field Drip.type.

Useful? React with 👍 / 👎.

Comment on lines +808 to 809
if (typeof drip.status === "boolean") {
$set["groups.$.drip.status"] = drip.status;

Choose a reason for hiding this comment

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

P1 Badge Add the required regression test for this GraphQL change

/workspace/courselit/AGENTS.md says to "Always add or update test when introducing changes to apps/web/graphql folder," but this patch changes updateGroup in apps/web/graphql/courses/logic.ts without adding coverage for the new status === false path. That leaves the exact "drip settings cannot be switched off" regression unguarded, so this behavior can silently break again.

Useful? React with 👍 / 👎.

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