'We detected the following context fields that do not have matching legal values with the imported ones:',
affectedItems: contextFields.map(
(contextField)=>contextField.name,
),
});
}
if(segments.length>0){
errors.push({
message:
'We detected the following segments in the import file that need to be created first:',
affectedItems: segments,
});
}
if(changeRequestExists){
errors.push({
message:
'Before importing any data, please resolve your pending change request in this project and environment as it is preventing you from importing at this time',
affectedItems:[],
});
}
if(otherProjectFeatures.length>0){
errors.push({
message:`You cannot import a features that already exist in other projects. You already have the following features defined outside of project ${projectName}:`,