Skip to content

Application contact persons#295

Draft
rimi-itk wants to merge 2 commits intoOS2iot:stagefrom
itk-dev:feature/application-contact-persons
Draft

Application contact persons#295
rimi-itk wants to merge 2 commits intoOS2iot:stagefrom
itk-dev:feature/application-contact-persons

Conversation

@rimi-itk
Copy link
Copy Markdown

@rimi-itk rimi-itk commented Mar 19, 2026

Adds contact persons to application:

{
  "data": [
    {
      "id": 1,
      "createdAt": "2026-03-23T13:09:26.030Z",
      "updatedAt": "2026-03-24T08:38:23.467Z",
      "name": "Test 2026-03-23",
      "description": null,
      "status": "NONE",
      "startDate": null,
      "endDate": null,
      "category": null,
      "owner": null,
      "contactPerson": null,
      "contactEmail": null,
      "contactPhone": null,
      "personalData": null,
      "hardware": null,
      "chirpstackId": "6ddfa199-c2ba-49a2-a445-71c198bf213c",
      "metadata": {
        "Type": "test",
        "10:00-17:00": "Contact2",
        "17:00-23:00": "Contact1"
      },
      "iotDevices": [],
      "contactPersons": [
        {
          "id": 1,
          "createdAt": "2026-03-23T13:09:26.030Z",
          "updatedAt": "2026-03-23T13:09:26.030Z",
          "role": "",
          "name": "",
          "email": "",
          "phone": ""
        },
        {
          "id": 2,
          "createdAt": "2026-03-24T08:38:23.467Z",
          "updatedAt": "2026-03-24T08:38:23.467Z",
          "role": "",
          "name": "",
          "email": "",
          "phone": ""
        }
      ],
      "belongsTo": {
        "id": 1,
        "createdAt": "2026-03-23T13:06:53.682Z",
        "updatedAt": "2026-03-23T13:06:53.682Z",
        "name": "Default Organization",
        "openDataDkRegistered": false
      },
      "permissionIds": [
        2,
        3
      ]
    }
  ],
  "count": 1
}

For backwards compatibility, we don't remove the contactPerson,contactEmail and contactPhone properties, but we can do that in a later version of the API.

An SQL script for (manually) migrating from the current contact person setup to the new can be found in sql-migration/application-contact-persons.sql.

See OS2iot/OS2iot-frontend#219 for related changes to the frontend.

@rimi-itk rimi-itk changed the title Applicatoion contact persons Application contact persons Mar 19, 2026
@rimi-itk rimi-itk force-pushed the feature/application-contact-persons branch from d0131e2 to a2992c0 Compare April 7, 2026 06:53
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.

1 participant