Related field not saving

Feature(s) impacted

Simple field editing

Observed behavior

When editing a foreign key field on a record via the standard Forest Edit UI, the request succeeds but the field is not updated. It seems like this started happening yesterday without any changes on our side. Additionally, if we change other fields as part of the same request (fields on the table that are not foreign keys), those fields will update and the foreign key will not update.

Expected behavior

The field should be updated.

Failure Logs

Example request from browser logs (partially redacted - returns a 200 OK)

HTTP PUT payload:

{
  "id": "46718",
  "attributes": {},
  "relationships": {
    "PrimaryNtuReason": {
      "data": {
        "type": "DbNtuReasons",
        "id": "2"
      }
    }
  },
  "type": "DbJuristicEntities"
}

The request succeeds but the value is not updated, and the response (partially redacted) shows the same thing with data being null:

{
  "data": {
    "type": "DbJuristicEntity",
    "id": "46718",
    "attributes": {
      "Id": 46718
    },
    "relationships": {
      "PrimaryNtuReason": {
        "data": null,
        "links": {
          "related": {
            "href": "/forest/DbJuristicEntity/46718/relationships/PrimaryNtuReason"
          }
        }
      }
    }
  }
}

Context

  • Project name: Bridgement.1
  • Team name: Operations
  • Environment name: Production
  • Agent type & version: “forest-express-sequelize”: “^8.4.10”, “sequelize”: “6.6.2”
  • Recent changes made on your end if any: N/A

Hey @JoshBridgement,

Could you share a video reproducing your issue please :pray: ?

Sure, I just sent you a PM

I’m might have found the issue. It’s my top priority. I should release a fix today. Sorry about that :pray:

1 Like

A fix is on its way, I will let you know once it is live

1 Like

The fix is live, let me know if it works on your side

Thanks a lot - its working now :slight_smile:

1 Like