Fix broken requisition deletion

Description

Requisition deletion fails on some sort of constraint violation.

Environment

None

blocks

QAlity Plus - Test Management

Checklists

Activity

Paweł Gesek 
October 17, 2016 at 9:10 AM

I booted up blue and loaded the demo-data.

I went to Swagger and called the requisition delete endpoint for requisition with ID - 00000000-0000-0000-0000-000000000001. It deleted the requisition.

Next to 00000000-0000-0000-0000-000000000002 & 00000000-0000-0000-0000-000000000003. It didn't work for the right reasons (wrong requisition status). I'm considering this done.

Pengfei Cui 
October 14, 2016 at 9:44 AM

SUCCESS: Integrated in

OpenLMIS-requisition-service-Sonar #360
OLMIS-1146: Improved demo data (llewczynski: 0aa2e11ce9035593b2850715ccfc46a24d9fc429)
OLMIS-1146: Set relation between requisition line item and product (llewczynski: f6bc2c9365adc3a68caa75b86d8012e748a5e25a)

Łukasz Lewczyński 
October 14, 2016 at 9:41 AM

It seems like the problem exists only in demo data. I create a new requisition from scratch and I did not get any constraint violation errors when I tried to remove the requisition.

Pengfei Cui 
October 14, 2016 at 9:40 AM

SUCCESS: Integrated in

OpenLMIS-requisition-service #610
OLMIS-1146: Improved demo data (llewczynski: 0aa2e11ce9035593b2850715ccfc46a24d9fc429)
OLMIS-1146: Set relation between requisition line item and product (llewczynski: f6bc2c9365adc3a68caa75b86d8012e748a5e25a)

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Time tracking

7h logged

Sprint

Fix versions

Priority

Time Assistant

Created October 13, 2016 at 8:53 AM
Updated October 19, 2016 at 12:25 PM
Resolved October 17, 2016 at 9:11 AM