Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled publish/unpublish not showing upcoming events #10283

Open
MichaelAlt opened this issue Dec 31, 2024 · 0 comments
Open

Scheduled publish/unpublish not showing upcoming events #10283

MichaelAlt opened this issue Dec 31, 2024 · 0 comments
Assignees

Comments

@MichaelAlt
Copy link

Describe the Bug

#10203 Upcoming publish/unpublish events are not visible in the overview.

This seams to be an issue with "number" vaules in (postgres only?).

It seams to be the equals in combination with number values. This request for example is not working with the input.doc.value where:

http://localhost:3000/api/payload-jobs?where[and][0][taskSlug][equals]=schedulePublish&where[and][1][input.doc.relationTo][equals]=bugs&where[and][2][input.doc.value][equals]=2

Without the input.doc.value it is returning the expected result.

http://localhost:3000/api/payload-jobs?where[and][0][taskSlug][equals]=schedulePublish&where[and][1][input.doc.relationTo][equals]=bugs

Representation in the database is the following. If i change the value to "1" instead of it beeing a number it is working again.

Image

Link to the code that reproduces this issue

https://github.com/MichaelAlt/payload-schedule-bug

Reproduction Steps

First startup the docker environment with postgres:

docker compose up -d

Startup payload:

pnpm i && pnpm dev

Create a new entry in the Bug collection and create and publish schedule. It will not appear in the list of upcoming events.
Image

Which area(s) are affected? (Select all that apply)

db-postgres, area: core

Environment Info

Binaries:
  Node: 20.9.0
  npm: 10.2.4
  Yarn: N/A
  pnpm: 9.15.2
Relevant Packages:
  payload: 3.12.0
  next: 15.1.0
  @payloadcms/db-postgres: 3.12.0
  @payloadcms/email-nodemailer: 3.12.0
  @payloadcms/graphql: 3.12.0
  @payloadcms/next/utilities: 3.12.0
  @payloadcms/payload-cloud: 3.12.0
  @payloadcms/richtext-lexical: 3.12.0
  @payloadcms/translations: 3.12.0
  @payloadcms/ui/shared: 3.12.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 19:02:41 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 11
@MichaelAlt MichaelAlt added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 31, 2024
@jmikrut jmikrut self-assigned this Dec 31, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 31, 2024
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

No branches or pull requests

2 participants