Project

General

Profile

Actions

roos-fs tasks #273

open

Check endpoint for potential issues

Added by Vadim Pariev 9 months ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Start date:
08/07/2025
Due date:
% Done:

0%

Estimated time:

Description

check the behavior of the following checklist-related endpoints

  1. Remove Checklist Photos

Issue: The endpoint always returns 404, even though the photo definitely exists.

  1. 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}]}'
Actions #1

Updated by Vadim Pariev 9 months ago

  • Assignee set to Anton Obolientsev
Actions #2

Updated by Vadim Pariev 9 months ago

  • Status changed from Backlog to Open
Actions #3

Updated by Anton Obolientsev 9 months ago

  • Status changed from Open to In progress
Actions #4

Updated by Anton Obolientsev 9 months ago

  • Status changed from In progress to In review
Actions #5

Updated by Anton Obolientsev 9 months ago

  • Status changed from In review to Deployed (QA)
Actions #6

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"}]}'
Actions #7

Updated by Anton Obolientsev 9 months ago

  • Status changed from Deployed (QA) to In review
Actions #8

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

Actions #9

Updated by Anton Obolientsev 9 months ago

  • Status changed from In review to Deployed (QA)
Actions #11

Updated by Vadim Pariev 9 months ago

  • Status changed from Deployed (QA) to Open
Actions #12

Updated by Anton Obolientsev 9 months ago

  • Status changed from Open to In progress
Actions #13

Updated by Anton Obolientsev 9 months ago

  • Status changed from In progress to Deployed (QA)
Actions #14

Updated by Anton Obolientsev 9 months ago

  • Status changed from Deployed (QA) to In progress
Actions #15

Updated by Anton Obolientsev 9 months ago

  • Status changed from In progress to Deployed (QA)
Actions #16

Updated by Vadim Pariev 8 months ago

  • Status changed from Deployed (QA) to Closed
Actions #17

Updated by Anton Obolientsev 6 months ago

  • Status changed from Closed to In progress
Actions #18

Updated by Anton Obolientsev 6 months ago

  • Status changed from In progress to Deployed (QA)
Actions #19

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:

  1. Sending a Post request for the checklist with an uploaded photo returns a response where the body must contain the uploaded photo.

  2. 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.

  3. 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.

  4. 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:

  1. Create the task template that contains 'Yes/No' field.
  2. Create the task template that contains 'Upload photo' field.

Steps to reproduce:

  1. 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

  2. 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

  3. 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

  4. 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:

  1. Sending a Post request for the checklist with an uploaded photo returns a response where the body must contain the uploaded photo.

  2. 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".

  3. 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".

  4. 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.

Actions #20

Updated by Vadim Pariev 6 months ago

  • Status changed from Ready for Deployment (prod) to Closed
Actions #21

Updated by Albert Katasonov 5 days ago

  • Project changed from 8 to Roos-fs-ZIP
Actions

Also available in: Atom PDF