Draft
Conversation
d23cb1c to
4de35b0
Compare
d0131e2 to
a2992c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,contactEmailandcontactPhoneproperties, 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.