Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

🐛 Can't open Nolla's news overview #1232

Closed
jeengbe opened this issue Aug 25, 2023 · 1 comment
Closed

🐛 Can't open Nolla's news overview #1232

jeengbe opened this issue Aug 25, 2023 · 1 comment
Assignees
Labels
type: bug Something isn't working

Comments

@jeengbe
Copy link

jeengbe commented Aug 25, 2023

Short description of the bug

Navigating to https://www.dsek.se/en/nolla/news results (from e.g. a notification) yields a There's nothing here yet! Please come back later. page. In the API request, the following error is returned:
Undefined binding(s) detected when compiling SELECT. Undefined column(s): [id] query: select * from \"positions\" where \"id\" = ?

To Reproduce

Navigate to https://www.dsek.se/en/nolla/news, possibly a Nolla's account is required.

Context

The response looks something like

{
  "errors": [
    {
      "message": "Undefined binding(s) detected when compiling SELECT. Undefined column(s): [id] query: select * from \"positions\" where \"id\" = ?",
      "locations": [
        {
          "line": 37,
          "column": 11
        }
      ],
      "path": [
        "news",
        "articles",
        0,
        "author",
        "position"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    },
    {
      "message": "Undefined binding(s) detected when compiling SELECT. Undefined column(s): [id] query: select * from \"positions\" where \"id\" = ?",
      "locations": [
        {
          "line": 37,
          "column": 11
        }
      ],
      "path": [
        "news",
        "articles",
        1,
        "author",
        "position"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR"
      }
    }
  ],
  "data": {
    "news": {
      "articles": [
        {
          "id": "0dc250f3-6273-428f-ae48-04535518fb87",
          ...,
          "author": {
            "__typename": "Mandate",
            "member": null,
            "position": null
          },

suggesting the frontend doesn't handle null well

@jeengbe jeengbe added the type: bug Something isn't working label Aug 25, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in DWWW 2023 Aug 25, 2023
@Macludde
Copy link
Collaborator

This is fixed in: #1248

@Macludde Macludde self-assigned this Sep 4, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in DWWW 2023 Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants