roos-fs tasks #596
openMisc Api fixes
0%
Description
TBD
Updated by Anton Obolientsev 6 months ago
- Status changed from Open to In progress
Updated by Vadim Pariev 6 months ago
- Status changed from Closed to Deployed (QA)
Updated by Alex Katasonov 6 months ago
- Assignee changed from Anton Obolientsev to Olena Tretjakova
Updated by Olena Tretjakova 6 months ago
- Status changed from Deployed (QA) to QA Failed
Environment: Staging.
Actual Result:
- There is an error in the documentation at Redmine/wiki/API Documentation.
The URL in the PUT request for the checklist is specified as
/api/v1/api/v1/checklists/:id
The correct URL for the PUT request in the checklist is
/api/v1/checklists/:id
The URL in the PATCH request for the checklist is specified as
/api/v1/api/v1/checklists/:id/update_field
The correct URL for the PATCH request in the checklist is
/api/v1/checklists/:id/update_field
There is an error in the documentation at Redmine/wiki/API Documentation — the Checklist section does not specify all reasons for cancellation (for example: 'vehicle_not_available' or 'shortterm_cancellation').
The cancellation reason 'vehicle_deflected' is misspelled.
The correct spelling is 'vehicle_defleeted'.
Expected Result:
- The value of the fields can be changed using the PUT Checklist API endpoint.
- The value of the fields can be changed using the PATCH Checklist API endpoint.
- Upload a photo to the checklist using the 'Fill Out Checklist Photos' POST endpoint.
- Delete checklist photos using the DELETE Photo endpoint.
- The task status changes from 'Opened' to 'Canceled' using the PATCH Task Cancel endpoint.
- The task status changes from 'Set Planned Date' to 'Canceled' using the PATCH Task Cancel endpoint.
7.The task status changes from 'In Progress' to 'Canceled' using the PATCH Task Cancel endpoint.
Steps to Reproduce:
Checklist
- Create the Task Template ( Name: Warehouse two fields, Customer: Tretjacova-company, Checklist contains warehouse picker field required and warehouse picker not required). https://screenrec.com/share/oXIAVplSma
- Send a GET request to ‘Task Details’ for the task template below.(Task ID: 42877)
- Response: https://screenrec.com/share/1IxLAi36wC
- Create the Service ( Name: Test 11/04 (1), Vehicle: OLENA121212121212 (1999), Task Name: Warehouse two fields) https://screenrec.com/share/WgS5plIY1D
- Send a GET request to ‘Task Details’ for the task created below.(Task ID: 42877)
- Response: https://screenrec.com/share/W64sfKq5tU (Task created).(Checklist ID: 18639)
- Send a PUT request to change Checklist. URL: /api/v1/checklists/18639
( ** ERROR IN DOCUMENTATION: URL SHOWS AS ** /api/v1/api/v1/checklists/:id)
body: {
"fields": [
{"id": "warehouse_part_picker-spare-part-1-null-1", "value": "Test8"},
{"id": "warehouse_part_picker-spare-part-2-null-2", "value": "Test9"}
],
"photo_fields": []
} - Request: https://screenrec.com/share/audw0YiMJD
The values "warehouse_part_picker-spare-part-1-null-1" and "warehouse_part_picker-spare-part-2-null-2" where changed. - Send a PUT request to change Checklist. URL: /api/v1/checklists/18639
body: {
"fields": [
{"id": "warehouse_part_picker-spare-part-1-null-1", "value": "D006"},
{"id": "warehouse_part_picker-spare-part-2-null-2", "value": "D001"}
],
"photo_fields": []
}
These Spare Parts have a status 'Installed'. - Response : https://screenrec.com/share/DC8GycxuO6
The values "warehouse_part_picker-spare-part-1-null-1" and "warehouse_part_picker-spare-part-2-null-2" where changed to Null. - Send a PUT request to change Checklist. URL: /api/v1/checklists/18639
body:
{
"fields": [
{"id": "warehouse_part_picker-spare-part-1-null-1", "value": "Test8"}
/{"id": "warehouse_part_picker-spare-part-2-null-2", "value": "Test8"}/
]
/"photo_fields": []/
} - Response: https://screenrec.com/share/5ucfFrN1SP
The values "warehouse_part_picker-spare-part-1-null-1" and "warehouse_part_picker-spare-part-2-null-2" where changed to Test8 and Null. - Send a PACH checklist endpoint to change one of the fields . URL: /api/v1/checklists/18639/update_field
( ** ERROR IN DOCUMENTATIO: URL SHOWS AS ** ** /api/v1/api/v1/checklists/:id/update_field**)
body {
"field_id": "warehouse_part_picker-spare-part-1-null-1",
"value": "Test8"
}
14. Response: https://screenrec.com/share/ODLdZYEfN7 The value "warehouse_part_picker-spare-part-1-null-1" was changed to Test8.
15. Send a PACH checklist endpoint to change one of the fields . URL: /api/v1/checklists/18639/update_field
body {
"field_id": "warehouse_part_picker-spare-part-1-null-1",
"value": "!!!!!"
} The spare Part with value '!!!!!' does not exsist in system
14. Response: https://screenrec.com/share/USzfmJc0wK The value "warehouse_part_picker-spare-part-1-null-1" was changed to Null.
Cancel Tasks endpoints.
Opened - Canceled
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee). Create a Service using the Task Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the Tasks section.
- Send a GET 'Task Detail' request. (Task ID: 42878).Task status is 'Opened' https://screenrec.com/share/fqZtVyPks1
- Send a PACH 'Cancel task' request. https://screenrec.com/share/xJLqVuCi3X
- Send a GET 'Task Detail' request. (Task ID: 42878).Task status is 'Cancelled'. https://screenrec.com/share/OFR7elHDza
Opened - Set Planned Date - Canceled
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee). Create a Service using the Task Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Clicked 'Set Planned Date' button. Set a date in the 'Set Planned Date' modal window.
- Send a GET 'Task Detail' request. (Task ID: 42879).Task status is 'Opened' https://screenrec.com/share/4tC8n0xc2y
- Send a PACH 'Cancel task' request.
- Send a GET 'Task Detail' request. (Task ID: 42879).Task status is 'Cancelled'. https://screenrec.com/share/7sDTyUeF9x
Opened - Set Planned Date - In progress - Canceled
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee). Create a Service using the Task Template abow.https://screenrec.com/share/WrlZFA1aC4
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Clicke 'Set Planned Date' button. Set a date in the 'Set Planned Date' modal window. Click 'Set Planned Date' button in the 'Book Service' modal window.
- Click 'In Progress' button. The confirmation modal window appears.
- Click 'In progress' in 'In Progress' modal window. The status task changed to 'In Progress'.
- Send a GET 'Task Detail' request. (Task ID: 42881).Task status is 'In Progress' https://screenrec.com/share/pyeLWoxRHV
- Send a PACH 'Cancel task' request.
- Send a GET 'Task Detail' request. (Task ID: 42881).Task status is 'Cancelled'.https://screenrec.com/share/E16ViubnRC
Verification of the cancellation fee charging depending on the cancellation reason.(Vehicle not available)
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee). Create a Service using the Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42882).Task status is 'Opened' https://screenrec.com/share/yFtsnKa5bm
- Send a PACH 'Cancel task' request. (The reason Vehicle not available ) https://screenrec.com/share/LzsF9A57Ph
- Send a GET 'Task Detail' request. (Task ID: 42882).Task status is 'Cancelled' https://screenrec.com/share/Cbqx2cVAX5
- The cancellation fee is charged.
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Key not available
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).Create a Service using the Service Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42883).Task status is 'Opened' https://screenrec.com/share/PsFx8DmCRg
- Send a PACH 'Cancel task' request. (The reason Key not available )
- Send a GET 'Task Detail' request. (Task ID: 42883).Task status is 'Cancelled' https://screenrec.com/share/12DoOVtz0A
- The cancellation fee is charged. https://screenrec.com/share/s9qOICTMSf
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Vehicle defleeted
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).Create a Service using the Service Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42884).Task status is 'Opened' https://screenrec.com/share/EiAXcH1Uk8
- Send a PACH 'Cancel task' request. (The reason Vehicle defleeted )
- Send a GET 'Task Detail' request. (Task ID: 42884).Task status is 'cancelled' https://screenrec.com/share/0Ti3rcop1B
- The cancellation fee is charged. https://screenrec.com/share/xth3XICDki
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Short-term cancellation
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).Create a Service using the Service Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42886).Task status is 'Opened' https://screenrec.com/share/Znaq8f2OSp
- Send a PACH 'Cancel task' request. (The reason Short-term cancellation )
- Send a GET 'Task Detail' request. (Task ID: 42886).Task status is 'cancelled' https://screenrec.com/share/IGJNkshT0b
- The cancellation fee is charged.
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Vehicle user rejects service.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee). Create a Service using the Service Template abow.
- Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42888).Task status is 'Opened' https://screenrec.com/share/m2HXdQLpCO
- Send a PACH 'Cancel task' request. (The reason Vehicle user rejects service. )
- Send a GET 'Task Detail' request. (Task ID: 42888).Task status is 'cancelled'https://screenrec.com/share/kBX6STqAjY
- The cancellation fee is charged. https://screenrec.com/share/engtza8lvs
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Vehicle damage.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42889).Task status is 'Opened' https://screenrec.com/share/3ThcK7oCFy
- Send a PACH 'Cancel task' request. (The reason Vehicle damage. )
- Send a GET 'Task Detail' request. (Task ID: 42889).Task status is 'Cancelled' https://screenrec.com/share/xwSZ6RpYjr
- The cancellation fee is charged. https://screenrec.com/share/4NaWVEn9F1
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Vehicle is blocked .
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42890).Task status is 'Opened' https://screenrec.com/share/R94Potxrya
- Send a PACH 'Cancel task' request. (The reason Vehicle is blocked. )
- Send a GET 'Task Detail' request. (Task ID: 42890).Task status is 'Cancelled' https://screenrec.com/share/MFl6Lzsjxa
- The cancellation fee is charged. https://screenrec.com/share/31j0LbTHgt
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Customer other.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42892).Task status is 'Opened'. https://screenrec.com/share/XOe5n7Pco2
- Send a PACH 'Cancel task' request. (The reason Customer other. The comment is not added ) https://screenrec.com/share/8p472WeKPq
- Send a PACH 'Cancel task' request. (The reason Customer other. The comment is added ) https://screenrec.com/share/crgjlGIDeJ
- Send a GET 'Task Detail' request. (Task ID: 42892).Task status is 'Cancelled' https://screenrec.com/share/epxAlaHXgT
- The cancellation fee is charged. https://screenrec.com/share/vXpWIr78dB
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: No capacity .
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42893).Task status is 'Opened'. https://screenrec.com/share/7Z2HyPUIx4
- Send a PACH 'Cancel task' request. (The reason No capacity.** ) https://screenrec.com/share/0XOndBw7t3
- Send a GET 'Task Detail' request. (Task ID: 42893).Task status is 'Cancelled'. https://screenrec.com/share/duMeisxVSt
- The cancellation fee is not charged. https://screenrec.com/share/0dKmwSDFx2
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Wrong date for the service.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42893).Task status is 'Opened'. https://screenrec.com/share/QLujGNbon3
- Send a PACH 'Cancel task' request. (The reason No capacity.** )
- Send a GET 'Task Detail' request. (Task ID: 42893).Task status is 'Cancelled'. https://screenrec.com/share/GzXFnuKpA2
- The cancellation fee is not charged. https://screenrec.com/share/yaCu62Lpq8
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Wrong task for the service.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42895).Task status is 'Opened'. https://screenrec.com/share/j1dyY5MRwe
- Send a PACH 'Cancel task' request. (The reason No capacity.** ) https://screenrec.com/share/SRArG37o85
- Send a GET 'Task Detail' request. (Task ID: 42895).Task status is 'Cancelled'. https://screenrec.com/share/0YFJ5sXwgu
- The cancellation fee is not charged. https://screenrec.com/share/sLITnKzgrB
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: No material.
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42897).Task status is 'Opened'. https://screenrec.com/share/i5Ll0CnmZX
- Send a PACH 'Cancel task' request. (The reason No material.** ). https://screenrec.com/share/IyXgqNdOex
- Send a GET 'Task Detail' request. (Task ID: 42897).Task status is 'Cancelled'. https://screenrec.com/share/DKV547yQwt
- The cancellation fee is not charged. https://screenrec.com/share/JXLqOn12bi
Verification of the cancellation fee charging depending on the cancellation reason. The Reason: Other(Internal other)
- Create a Service Template. ( Name: Test 11/04 (2); Customer: Tretjacova-company; Task Template: Cancelation fee).
Create a Service using the Service Template abow. - Open 'Test 11/04 (2)' Service Detail page.
- Click the ‘Book Service’ button and set a date in the ‘Book Service’ modal window. Click 'Book Service' button in the 'Book Service' modal window.
- Click on the 'View' Task icon in the 1 Task section.
- Send a GET 'Task Detail' request. (Task ID: 42898).Task status is 'Opened'. https://screenrec.com/share/NzQdULGsEm
- Send a PACH 'Cancel task' request. (The reason Other (Internal).** ). When the comment field in the body tab is not filled in. https://screenrec.com/share/T2nqcy4xPK
When the comment field in the body tab is filled in. https://screenrec.com/share/X2LFDjRgn3 - Send a GET 'Task Detail' request. (Task ID: 42898).Task status is 'Cancelled'. https://screenrec.com/share/5RCrbhNaxF
- The cancellation fee is not charged. https://screenrec.com/share/nfS8H7UlOL
Updated by Vadim Pariev 5 months ago
- Assignee changed from Anton Obolientsev to Danyl Kozub
Updated by Vadim Pariev 5 months ago
- Assignee changed from Danyl Kozub to Max Zadorozhniy
Updated by Max Zadorozhniy 4 months ago
- Status changed from Open to In progress
Updated by Max Zadorozhniy 4 months ago
- Status changed from In progress to In review
Updated by Max Zadorozhniy 4 months ago
- Status changed from In review to Deployed (QA)
Updated by Max Zadorozhniy 4 months ago
- Assignee changed from Max Zadorozhniy to Olena Tretjakova
Updated by Vadim Pariev 4 months ago
· Edited
NO NEED FOR RELEASE DOCUMENTATION CANGES ONLY
Updated by Vadim Pariev 4 months ago
- Status changed from Ready for Deployment (prod) to Closed