Skip to content

Commit

Permalink
Merge branch 'fix-contracts-mgration-2' into 'master'
Browse files Browse the repository at this point in the history
Fix contract migration on updating contract remove rogue data from suppliers

See merge request cdb/openprocurement.api!928
  • Loading branch information
Serhij Andreev committed May 1, 2024
2 parents 89aff0d + 979e6f5 commit 19351ee
Show file tree
Hide file tree
Showing 25 changed files with 154 additions and 87 deletions.
8 changes: 5 additions & 3 deletions docs/source/contracting/econtract/http/contract-activate.http
Expand Up @@ -51,6 +51,7 @@ Content-Type: application/json
"dateModified": "2023-10-10T01:00:00+03:00"
}
],
"bid_owner": "broker",
"status": "active",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -73,7 +74,8 @@ Content-Type: application/json
"iban": "234234234234234",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -97,7 +99,8 @@ Content-Type: application/json
"iban": "111111111111111",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -182,7 +185,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -19,6 +19,7 @@ Content-Type: application/json
"startDate": "2023-10-10T01:00:00+03:00",
"endDate": "2024-10-09T01:00:00+03:00"
},
"bid_owner": "broker",
"status": "cancelled",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -33,7 +34,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -49,7 +51,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -134,7 +137,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"documents": [
{
"hash": "md5:00000000000000000000000000000000",
Expand Down
8 changes: 5 additions & 3 deletions docs/source/contracting/econtract/http/contract-period.http
Expand Up @@ -29,6 +29,7 @@ Content-Type: application/json
"startDate": "2023-10-10T01:00:00+03:00",
"endDate": "2024-10-09T01:00:00+03:00"
},
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -43,7 +44,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -59,7 +61,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -144,7 +147,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -26,6 +26,7 @@ Content-Type: application/json
"dateCreated": "2023-10-10T01:00:00+03:00",
"tender_id": "fd45af80ad9f4574994f7f6254012693",
"owner": "broker",
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -40,7 +41,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -56,7 +58,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -141,7 +144,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -96,6 +96,7 @@ Content-Type: application/json
"dateCreated": "2023-10-10T01:00:00+03:00",
"tender_id": "fd45af80ad9f4574994f7f6254012693",
"owner": "broker",
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -110,7 +111,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -126,7 +128,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -211,7 +214,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -22,6 +22,7 @@ Content-Type: application/json
"dateCreated": "2023-10-10T01:00:00+03:00",
"tender_id": "fd45af80ad9f4574994f7f6254012693",
"owner": "broker",
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -36,7 +37,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -52,7 +54,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -137,7 +140,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -116,6 +116,7 @@ Content-Type: application/json
"amountNet": 420.0,
"valueAddedTaxIncluded": true
},
"bid_owner": "broker",
"status": "terminated",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -138,7 +139,8 @@ Content-Type: application/json
"iban": "234234234234234",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -162,7 +164,8 @@ Content-Type: application/json
"iban": "111111111111111",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -247,7 +250,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 430.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
6 changes: 4 additions & 2 deletions docs/source/contracting/econtract/http/contract-view.http
Expand Up @@ -23,7 +23,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"owner": "broker",
Expand Down Expand Up @@ -117,7 +118,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"value": {
"amount": 500.0,
Expand Down
8 changes: 5 additions & 3 deletions docs/source/contracting/econtract/http/contracts-patch.http
Expand Up @@ -81,6 +81,7 @@ Content-Type: application/json
"dateModified": "2023-10-10T01:00:00+03:00"
}
],
"bid_owner": "broker",
"status": "active",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -103,7 +104,8 @@ Content-Type: application/json
"iban": "234234234234234",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -127,7 +129,8 @@ Content-Type: application/json
"iban": "111111111111111",
"position": "Генеральний директор",
"authorizedBy": "Статут компанії"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -212,7 +215,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 430.0
},
"bid_owner": "broker",
"id": "eb4343b446004f47aa2ec7f6e542f196"
},
"config": {
Expand Down
Expand Up @@ -20,6 +20,7 @@ Content-Type: application/json
"startDate": "2023-10-10T01:00:00+03:00",
"endDate": "2024-10-09T01:00:00+03:00"
},
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -34,7 +35,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"kind": "general"
},
"suppliers": [
{
Expand All @@ -50,7 +52,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -135,7 +138,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 230.0
},
"bid_owner": "broker",
"documents": [
{
"hash": "md5:00000000000000000000000000000000",
Expand Down
Expand Up @@ -25,6 +25,7 @@ Content-Type: application/json
"dateCreated": "2023-10-10T01:00:00+03:00",
"tender_id": "d1c99512210a440d8816081d0616ce15",
"owner": "broker",
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -50,7 +51,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -99,7 +101,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 95.0
},
"bid_owner": "broker",
"id": "b012ef6406db4551936e6b0005aa2cef"
},
"config": {
Expand Down
Expand Up @@ -25,6 +25,7 @@ Content-Type: application/json
"dateCreated": "2023-10-10T01:00:00+03:00",
"tender_id": "d1c99512210a440d8816081d0616ce15",
"owner": "broker",
"bid_owner": "broker",
"status": "pending",
"buyer": {
"name": "Державне управління справами",
Expand All @@ -50,7 +51,8 @@ Content-Type: application/json
"region": "м. Київ",
"postalCode": "01220",
"countryName": "Україна"
}
},
"scale": "micro"
}
],
"items": [
Expand Down Expand Up @@ -137,7 +139,6 @@ Content-Type: application/json
"valueAddedTaxIncluded": true,
"amountNet": 190.0
},
"bid_owner": "broker",
"id": "e10f210fba404f15a6d1228023fd9fc1"
},
"config": {
Expand Down

0 comments on commit 19351ee

Please sign in to comment.