Open MariusJulius opened 10 months ago
@thenouan There also seems to be an issue with sending the start time to BE for some orders with a project type that should allow it.
Basically on FE we check the "value" field of the selected project type.
We get the project types from: GET https://api.dev.tolkevarav.eki.ee/translation-order/api/classifier-values?type=PROJECT_TYPE
if the value is one of:
'ORAL_TRANSLATION' 'POST_TRANSLATION' 'SYNCHRONOUS_TRANSLATION' 'SIGN_LANGUAGE'
We show the event_start_at input, however if we try to create an order with it, we get the "The event start at field is prohibited." error.
curl:
curl 'https://api.dev.tolkevarav.eki.ee/translation-order/api/projects' \ -H 'authority: api.dev.tolkevarav.eki.ee' \ -H 'accept: application/json, text/plain, */*' \ -H 'accept-language: en-US,en;q=0.9,ceb;q=0.8' \ -H 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBRzRYOXR2SVhubkoxWUhiYnJHZmdYdnNYNEVVU2xGalk0RkZSekY5MjlRIn0.eyJleHAiOjE2OTk5Njk4NTQsImlhdCI6MTY5OTk2ODk1NCwiYXV0aF90aW1lIjoxNjk5OTYwOTQ5LCJqdGkiOiI4MmUwYmU5MC0yMjkxLTQ2NDItYjM3NS1jNWM0ZmFkODAyNGQiLCJpc3MiOiJodHRwczovL3Nzby5kZXYudG9sa2V2YXJhdi5la2kuZWUvcmVhbG1zL3RvbGtldmFyYXYtZGV2IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjY5MmQwYzdlLTQzNTgtNDY5MS1hNTgyLTcwYjY3Zjk3M2JlMiIsInR5cCI6IkJlYXJlciIsImF6cCI6IndlYiIsIm5vbmNlIjoiOGQ4NzAwOTItMzM4YS00ZjBhLThmZTctYzdiNzBlMGY2MjUwIiwic2Vzc2lvbl9zdGF0ZSI6IjIwNTlkYWUxLTJkMTUtNDI5My04ZjA5LTI1OGNmM2NhNDljMSIsImFjciI6IjAiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbG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2SbumsH0QM2bMlnRFxnoiD4c2TjkVpoLjE3GTTgIrfdIDtEzFxrx3fZ4p2PZbUzMTh2PpNve_pLEV5GJXIyfsbainzoz11nHUXQjkG0fg68G10pR5NbpSZQ1pvrRZjiU34Out_Ynpvket47kHem2glvdOojUCY0i6mRdoo7izBhKMMs6pg-Kw' \ -H 'cache-control: no-cache' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryxKlzDccDoyn5s5qA' \ -H 'origin: http://localhost:3000' \ -H 'pragma: no-cache' \ -H 'referer: http://localhost:3000/' \ -H 'sec-ch-ua: "Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-fetch-dest: empty' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-site: cross-site' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \ --data-raw $'------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="deadline_at"\r\n\r\n2023-11-18T10:00:00Z\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="type_classifier_value_id"\r\n\r\n97867571-db4a-42ce-a9f0-ecff435724da\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="client_institution_user_id"\r\n\r\n9a1f52a0-5b17-497f-9918-758127381809\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="manager_institution_user_id"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="reference_number"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="source_language_classifier_value_id"\r\n\r\nc93c5c1f-3fec-410f-ace8-137f3777aff7\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="destination_language_classifier_value_ids[]"\r\n\r\nc9839037-14b9-46e1-933a-ae28934ea6e7\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="translation_domain_classifier_value_id"\r\n\r\n9c018c24-1047-4b56-a558-cf575657a59e\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="comments"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="accepted_at"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="corrected_at"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="rejected_at"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="cancelled_at"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="created_at"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="feedback_files"\r\n\r\n\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA\r\nContent-Disposition: form-data; name="event_start_at"\r\n\r\n2023-11-26T10:00:00Z\r\n------WebKitFormBoundaryxKlzDccDoyn5s5qA--\r\n' \ --compressed
@MariusJulius In task tab start time is missing but in response I see event_start_at "ext_id": "LOL-2023-12-VK-153-et-EEkea-CV-1", "project_id": "9ad91653-3b6d-4258-b58e-feee877a9877", "deadline_at": "2023-12-25T01:00:00.000000Z", "event_start_at": "2023-12-17T23:00:00.000000Z",
And it's not possible to save new start time. Nothing happens..
Previous response seems to be sub project response. Assignments still seem to be missing the event_start_at field
Discussed this through, there was a misunderstanding.
Still it's not possible to edit start time. @MariusJulius
Yup FE part not done, will use the same ticked for FE
Tested in 08.01 - It's Ok
Tasks with start time logic has been implemented but due to synchronisation issue it doesn't display start time in order creation and sub-order view.
To-do:
Update 28.11 Start time logic wasn't actually added, as the logic ticket was missing. Just the part of having it in the schema. Wiki - project creation Wiki 5.1.6 - sub-project assignment Wiki - task
To-do: