roos-fs tasks #273
openCheck endpoint for potential issues
0%
Description
check the behavior of the following checklist-related endpoints
- Remove Checklist Photos
Issue: The endpoint always returns 404, even though the photo definitely exists.
- Fill Out Checklist
Issue: The endpoint returns 200 OK, but the values are not being saved in practice.
include the all_mandatory_checklists_completed flag directly in the task response
LOGS
curl 'https://oms.roos-fs.com/api/v1/checklists/519/remove_photo' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en,en-US;q=0.9,be;q=0.8,uk;q=0.7,la;q=0.6,ru;q=0.5' \
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNSwiZW1haWwiOiJ2aS5ncmlzaGtvdmFAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwidHlwZSI6ImFjY2VzcyIsImV4cCI6MTc1NDY3NjA4OH0.dSK9232Nv4rpydoJJXcRMXgAfCLsR30IJmc41NY1ExQ' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:8100' \
-H 'priority: u=1, i' \
-H 'referer: http://localhost:8100/' \
-H 'sec-ch-ua: ""' \
-H 'sec-ch-ua-mobile: ?1' \
-H 'sec-ch-ua-platform: ""' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Samsung UA' \
--data-raw '{"field_id":"i_am_a_picture_taking","photo_id":"704"}'
curl 'https://oms.roos-fs.com/api/v1/checklists/519' \
-X 'PUT' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en,en-US;q=0.9,be;q=0.8,uk;q=0.7,la;q=0.6,ru;q=0.5' \
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNSwiZW1haWwiOiJ2aS5ncmlzaGtvdmFAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwidHlwZSI6ImFjY2VzcyIsImV4cCI6MTc1NDY3NjA4OH0.dSK9232Nv4rpydoJJXcRMXgAfCLsR30IJmc41NY1ExQ' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:8100' \
-H 'priority: u=1, i' \
-H 'referer: http://localhost:8100/' \
-H 'sec-ch-ua: ""' \
-H 'sec-ch-ua-mobile: ?1' \
-H 'sec-ch-ua-platform: ""' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Samsung UA' \
--data-raw '{"fields":[{"id":"i_am_a_binary_question","value":true},{"id":"selector","value":2}]}'
Updated by Anton Obolientsev 9 months ago
- Status changed from Open to In progress
Updated by Anton Obolientsev 9 months ago
- Status changed from In progress to In review
Updated by Anton Obolientsev 9 months ago
- Status changed from In review to Deployed (QA)
Updated by Anton Obolientsev 9 months ago
Issue with multiple choice values
curl 'https://roos-fs.duckdns.org/api/v1/checklists/6' \
-X 'PUT' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en,en-US;q=0.9,be;q=0.8,uk;q=0.7,la;q=0.6,ru;q=0.5' \
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIiwicm9sZSI6ImFkbWluIiwidHlwZSI6ImFjY2VzcyIsImV4cCI6MTc1NDkzNTM5OX0.vbK-28OvLdctuaQPJPH5CNfpPr3s8xNAjXjF53M0MLY' \
-H 'content-type: application/json' \
-H 'origin: http://localhost:8100' \
-H 'priority: u=1, i' \
-H 'referer: http://localhost:8100/' \
-H 'sec-ch-ua: ""' \
-H 'sec-ch-ua-mobile: ?1' \
-H 'sec-ch-ua-platform: ""' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Samsung UA' \
--data-raw '{"fields":[{"id":"note","value":"ยง123"},{"id":"test_multiple","value":["One"]},{"id":"date_picker_required","value":"2025-08-10"}]}'
Updated by Anton Obolientsev 9 months ago
- Status changed from Deployed (QA) to In review
Updated by Anton Obolientsev 9 months ago
issue with cancel service
curl 'https://oms.roos-fs.com/api/v1/services/316/cancel' \
-X 'PATCH' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en,en-US;q=0.9,be;q=0.8,uk;q=0.7,la;q=0.6,ru;q=0.5' \
-H 'authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNSwiZW1haWwiOiJ2aS5ncmlzaGtvdmFAZ21haWwuY29tIiwicm9sZSI6ImFkbWluIiwidHlwZSI6ImFjY2VzcyIsImV4cCI6MTc1NDgyMDMxN30.lBO3f3o3Ur644VQDYoHKfvlTgwJACLydCr9tD7FuSik' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryx1BjX3xKJV7RVcm2' \
-H 'origin: http://localhost:8100' \
-H 'priority: u=1, i' \
-H 'referer: http://localhost:8100/' \
-H 'sec-ch-ua: ""' \
-H 'sec-ch-ua-mobile: ?1' \
-H 'sec-ch-ua-platform: ""' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Samsung UA' \
--data-raw $'------WebKitFormBoundaryx1BjX3xKJV7RVcm2\r\nContent-Disposition: form-data; name="cancelled_reason"\r\n\r\nvehicle_user_rejects_service\r\n------WebKitFormBoundaryx1BjX3xKJV7RVcm2--\r\n'
reason: Cancel service require
cancelled_reason
cancelled_comment
need to add this params to API
Updated by Anton Obolientsev 9 months ago
- Status changed from In review to Deployed (QA)
Updated by Anton Obolientsev 9 months ago
- Status changed from Open to In progress
Updated by Anton Obolientsev 9 months ago
- Status changed from In progress to Deployed (QA)
Updated by Anton Obolientsev 9 months ago
- Status changed from Deployed (QA) to In progress
Updated by Anton Obolientsev 9 months ago
- Status changed from In progress to Deployed (QA)
Updated by Vadim Pariev 8 months ago
- Status changed from Deployed (QA) to Closed
Updated by Anton Obolientsev 6 months ago
- Status changed from Closed to In progress
Updated by Anton Obolientsev 6 months ago
- Status changed from In progress to Deployed (QA)
Updated by Olena Tretjakova 6 months ago
- Status changed from Deployed (QA) to Ready for Deployment (prod)
Environment: Staging.
All conditions from the acceptance criteria were completed.
Acceptance Criteria:
-
Sending a Post request for the checklist with an uploaded photo returns a response where the body must contain the uploaded photo.
-
Sending a PUT request for the checklist with the Yes/No field returns, when the field is not required and neither Yes nor No was chosen, the response should contain the answer: null.
-
Sending a PUT request for the checklist with the Yes/No field returns, when the field is required and one of the Yes or No was chosen, the response should contain the answer: true/false.
-
If the task is cancelled, sending a GET request for the task details should return a response containing the cancelled_reason and cancelled_comment fields with the corresponding data.
Preconditions:
- Create the task template that contains 'Yes/No' field.
- Create the task template that contains 'Upload photo' field.
Steps to reproduce:
-
Create the service with the task template that contains Upload Photo field. https://screenrec.com/share/84ak2BRVsz
Response to Task Details:https://screenrec.com/share/jQG1BnImpu
Response to the Post request Upload photo.https://screenrec.com/share/aNzyekQ24p
Response to Task Details contans uploaded photo : https://screenrec.com/share/ZObtI2ginf
The photo was uploaded. https://screenrec.com/share/ymAP1p0UGR -
Create the service with the task template that contains a Yes/No field in the checklist.(The field is not required).
https://screenrec.com/share/MfBODuvyhH
task ID: 42735 (task status opened) https://screenrec.com/share/t1f5vlJwkC
Response to Task Details: https://screenrec.com/share/t1f5vlJwkC
Response to Task Patch request (task completed): https://screenrec.com/share/ToB7QGrUIP
Response to Task Details: Respons to Task Details shows Null :https://screenrec.com/share/143KHeA6zG -
Create the service with the task template that contains a Yes/No field in the checklist.(The field is required).
https://screenrec.com/share/653XdsUuVl
task ID: 42737 (task status opened)
Response to Put Task (value of field is true). https://screenrec.com/share/Hipkc57Cs0
Response to Put Task (value of field is false). https://screenrec.com/share/96j0M1CSmo -
Send request to the Path task cancel task (task ID 42738) . Response displayes that task has status canceled. https://screenrec.com/share/W2KXVCB80M
https://screenrec.com/share/YRg896MKCu
Send the Get request Task Details.task ID: 42737 (task status canceled). Response containses the reason and comment.
https://screenrec.com/share/ldUn7ewv9b
Actual Result:
-
Sending a Post request for the checklist with an uploaded photo returns a response where the body must contain the uploaded photo.
-
Sending a PUT request for the checklist with the Yes/No field returns, when the field is not required and neither Yes nor No was chosen, the response contaisn the "responses: null".
-
Sending a PUT request for the checklist with the Yes/No field returns, when the field is required and one of the Yes or No was chosen, the response contains the "responses: true/false".
-
If the task is cancelled, sending a GET request for the task details returns a response containing the cancelled_reason and cancelled_comment fields with the corresponding data.
Updated by Vadim Pariev 6 months ago
- Status changed from Ready for Deployment (prod) to Closed