Skip to content

Integer field (e.g. ID) with contains filter on postgres breaks/crashes the application completely.  #7354

Closed

Description

@chinmay-mehta

Link to reproduction

No response

Payload Version

3.0.0-beta.43

Node Version

v20.13.1

Next.js Version

^14.3.0-canary.28

Describe the Bug

  1. On selecting any integer field and applying the contains filter on that breaks the app when using postgres db. It works well with Mongo as the ids are a string.
  2. Also, there is no provision to hide the auto-generated fields from the filter using the disableListFilter which we can use to remove the column from being selected into the filter.

Reproduction Steps

  1. Navigate to any collection
  2. Click on the filter -> add filter
  3. Add and integer column (e.x.: ID) -> select contains -> add a value
  4. Application crashes

bug

Adapters and Plugins

"@payloadcms/db-postgres": "3.0.0-beta.43"

Activity

  1. added
    status: needs-triage
    on Jul 25, 2024
  2. removed
    status: needs-triage
    on Jul 25, 2024
  3. chinmay-mehta commented on Jul 29, 2024

    @chinmay-mehta
    Author

    @PatrikKozak any updates on this?

  4. PatrikKozak commented on Jul 29, 2024

    @PatrikKozak
    Contributor

    Hey @chinmay-mehta - We are looking into this, we'll get a fix out for this asap

  5. chinmay-mehta commented on Jul 30, 2024

    @chinmay-mehta
    Author

    Hey @PatrikKozak - Thanks a lot for the prompt action!

  6. added a commit that references this issue on Aug 5, 2024
    62666a9
  7. PatrikKozak commented on Aug 5, 2024

    @PatrikKozak
    Contributor

    Fixed with #7416

  8. github-actions commented on Sep 6, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  9. locked as resolved and limited conversation to collaborators on Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions