File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
CatalogDataExporter/Test/Integration
DataExporter/Model/Indexer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ public function testSecondFeedItemHasErrorInExportStatus(): void
90
90
'feed_hash ' => 'hash ' ,
91
91
'feed_id ' => 'feed_id_1 ' ,
92
92
"source_entity_id " => 1 ,
93
+ 'errors ' => '' ,
93
94
'operation ' => IndexStateProvider::INSERT_OPERATION
94
95
],
95
96
[
@@ -120,6 +121,7 @@ public function testSecondFeedItemHasErrorInExportStatus(): void
120
121
'feed_hash ' => 'hash ' ,
121
122
'feed_id ' => 'feed_id_3 ' ,
122
123
"source_entity_id " => 3 ,
124
+ 'errors ' => '' ,
123
125
'operation ' => IndexStateProvider::INSERT_OPERATION
124
126
],
125
127
];
@@ -263,9 +265,6 @@ private function prepareExpectedData(
263
265
'source_entity_id ' => $ feed ['productId ' ]
264
266
];
265
267
$ currentKey = array_key_last ($ expected );
266
- if (empty ($ expected [$ currentKey ]['errors ' ])) {
267
- unset($ expected [$ currentKey ]['errors ' ]);
268
- }
269
268
}
270
269
return $ expected ;
271
270
}
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ private function serializeForImmediateExport(
142
142
?? 0 ;
143
143
$ outputRow [FeedIndexMetadata::FEED_TABLE_FIELD_STATUS ] = $ status ->getValue ();
144
144
$ outputRow [FeedIndexMetadata::FEED_TABLE_FIELD_MODIFIED_AT ] = $ rowModifiedAt ;
145
+ $ outputRow [FeedIndexMetadata::FEED_TABLE_FIELD_ERRORS ] = '' ;
145
146
if (!empty ($ exportFailedItems )) {
146
147
$ failedFeedItem = $ exportFailedItems [$ itemN ] ?? null ;
147
148
// if _specific_ item failed mark only that item as failed, otherwise set status successful
You can’t perform that action at this time.
0 commit comments