Merge pull request 'Added logic in part validation 1 for pipeline' (#730) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 23s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 23s
Reviewed-on: #730
This commit was merged in pull request #730.
This commit is contained in:
@@ -3507,6 +3507,17 @@ class QualityValidationResource extends Resource
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (strpos($state, '|') !== false) {
|
||||||
|
$state = explode('|', $state)[0];
|
||||||
|
if ($state != $expectedValue){
|
||||||
|
$set('part_validation1_error', 'Invalid input for part validation 1.');
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$set('part_validation1', $state);
|
||||||
|
$set('part_validation1_error', null);
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($state == $expectedValue) {
|
if ($state == $expectedValue) {
|
||||||
$set('part_validation1_error', null);
|
$set('part_validation1_error', null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user