Skip to content

Preserve notification server-owned fields#4289

Open
bozicovichsantiago20-oss wants to merge 1 commit into
SecureBananaLabs:mainfrom
bozicovichsantiago20-oss:codex/preserve-notification-server-fields
Open

Preserve notification server-owned fields#4289
bozicovichsantiago20-oss wants to merge 1 commit into
SecureBananaLabs:mainfrom
bozicovichsantiago20-oss:codex/preserve-notification-server-fields

Conversation

@bozicovichsantiago20-oss

Copy link
Copy Markdown

Summary

  • keep notification id and initial read state server-owned by spreading request payload first
  • add a regression test proving client-supplied id/read values are ignored while normal fields are preserved

Fixes #4288

Tests

  • node --test apps/api/src/tests/*.test.js
  • npm test --workspace apps/api currently fails because the existing script runs node --test src/tests, which Node tries to resolve as a module directory instead of the test files

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.

Notification creation allows clients to override id/read state

1 participant