shouldTriggerFallbackForComponent determines if fallback should be triggered for a component
(err error, result *vsa.ValidationResult)
| 1789 | |
| 1790 | // shouldTriggerFallbackForComponent determines if fallback should be triggered for a component |
| 1791 | func shouldTriggerFallbackForComponent(err error, result *vsa.ValidationResult) bool { |
| 1792 | if err != nil { |
| 1793 | return true |
| 1794 | } |
| 1795 | if result != nil && !result.Passed { |
| 1796 | return true |
| 1797 | } |
| 1798 | if result != nil && result.PredicateOutcome != "" && result.PredicateOutcome != "passed" { |
| 1799 | return true |
| 1800 | } |
| 1801 | return false |
| 1802 | } |
| 1803 | |
| 1804 | // handleComponentFallback handles fallback validation for a component |
| 1805 | func handleComponentFallback(ctx context.Context, component app.SnapshotComponent, data *validateVSAData, result *vsa.ValidationResult, workerFallbackContext *vsa.WorkerFallbackContext) vsa.ComponentResult { |
no outgoing calls