reapit / foundations

Foundations platform mono repo
56 stars 22 forks source link

The appointment start time not updated correctly #9229

Open nurm717123 opened 1 year ago

nurm717123 commented 1 year ago

Describe the bug the appointment start time not updated correctly (missing timezone indicator), that makes it contain different time information than it should be

To Reproduce Steps to reproduce the behaviour eg:

  1. Update the appointment using patch appointment endpoint
  2. Set start time to "2023-06-08T00:00:00.000Z"
  3. Get the updated data
  4. See the updated start time, "2023-06-08T00:00:00"

Expected behaviour the updated start time should be like the end time format, e.g: "2023-06-08T00:00:00Z"

Attachment

{
    "start": "2023-06-08T00:00:00.000Z",
    "end": "2023-06-08T13:00:00.000Z",
    "typeId": "VL",
    "description": "",
    "propertyId": "MKT230680",
    "otherAgentId": null,
    "organiserId": "ADV",
    "cancelled": false,
    "officeIds": [
        "MKT"
    ],
    "attendee": null,
    "accompanied": true,
    "virtual": "false",
    "isRepeat": "false",
    "negotiatorConfirmed": false,
    "attendeeConfirmed": false,
    "propertyConfirmed": false,
    "followUp": {
        "due": "2023-06-09",
        "responseId": "",
        "notes": ""
    },
    "recurrence": null,
    "followUpOn": "2023-06-09"
}
{
    "id": "MKT2300748",
    "created": "2023-06-06T08:42:44Z",
    "modified": "2023-06-07T08:50:12Z",
    "start": "2023-06-08T00:00:00",
    "end": "2023-06-08T13:00:00Z",
    "typeId": "VL",
    "description": "",
    "recurring": false,
    "recurrence": null,
    "cancelled": false,
    "followUp": {
        "due": "2023-06-09",
        "responseId": "",
        "notes": ""
    },
    "propertyId": "MKT230680",
    "organiserId": "ADV",
    "negotiatorIds": [
        "ADV",
        "LIHO"
    ],
    "officeIds": [
        "MKT"
    ],
    "attendee": null,
    "accompanied": true,
    "isRepeat": false,
    "virtual": false,
    "negotiatorConfirmed": false,
    "attendeeConfirmed": false,
    "propertyConfirmed": false,
    "fromArchive": false,
    "otherAgentId": null,
    "extrasField": {},
    "_eTag": "\"E7C3967A84C1C40099045263B5A5F8FA\"",
    "_links": {
        "self": {
            "href": "/appointments/MKT2300748"
        },
        "type": {
            "href": "/configuration/appointmentTypes/VL"
        },
        "organiser": {
            "href": "/negotiators/ADV"
        },
        "property": {
            "href": "/properties/MKT230680"
        },
        "offices": {
            "href": "/offices/?id=MKT"
        },
        "negotiators": {
            "href": "/negotiators/?id=ADV&id=LIHO"
        }
    },
    "_embedded": null,
    "metadata": {}
}
github-actions[bot] commented 1 year ago

Thank you for taking the time to report a bug. We prioritise bugs depending on the severity and implications, so please ensure that you have provided as much information as possible. If you haven’t already, it really helps us to investigate the bug you have reported if you provide ‘Steps to Replicate’ and any associated screenshots. Please ensure any personal information from the production database is obscured when submitting screenshots. This issue will be reviewed in our weekly refinement sessions and assigned to a specific project board. We may also update the ticket to request additional information, if required. For more information on our processes, please click here

github-actions[bot] commented 1 year ago

This issue has been updated and moved to our ‘Near Term’ column (typically completed within 0 - 4 months). We have assessed the effort required and outlined a technical specification - please take the time to review this detail. When we're ready to schedule the issue, it will be assigned to the relevant board where you can continue to track its progress to completion. For more information on our processes, please click here