fix: scope shadow inputs to authoritative warehouse
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.function.Supplier;
|
||||
@Component
|
||||
public class ShadowPlanningEngine {
|
||||
private static final int INSTANCE_STALE_SECONDS = 120;
|
||||
private static final int DECISION_REASON_MAX_LENGTH = 2000;
|
||||
private static final int DECISION_REASON_MAX_LENGTH = 4000;
|
||||
private static final String PUBLISHED = "PUBLISHED";
|
||||
|
||||
private final SchedulingFacade schedulingFacade;
|
||||
@@ -128,9 +128,9 @@ public class ShadowPlanningEngine {
|
||||
+ "; request=" + observation.requestId()
|
||||
+ "; shadow=" + observation.resultCode()
|
||||
+ "; proposedSpace=" + nullSafe(observation.proposedSpaceId())
|
||||
+ "; shadowReason=" + nullSafe(observation.reason())
|
||||
+ "; legacy=" + nullSafe(legacyResultCode)
|
||||
+ "; legacySpace=" + nullSafe(legacySpaceId), DECISION_REASON_MAX_LENGTH));
|
||||
+ "; legacySpace=" + nullSafe(legacySpaceId)
|
||||
+ "; shadowReason=" + nullSafe(observation.reason()), DECISION_REASON_MAX_LENGTH));
|
||||
requireComparisonInserted(inserted);
|
||||
});
|
||||
}
|
||||
@@ -149,8 +149,8 @@ public class ShadowPlanningEngine {
|
||||
+ "; shadow=" + observation.resultCode()
|
||||
+ "; proposedStock=" + nullSafe(observation.proposedStockId())
|
||||
+ "; proposedSpace=" + nullSafe(observation.proposedSpaceId())
|
||||
+ "; shadowReason=" + nullSafe(observation.reason())
|
||||
+ "; legacy=" + nullSafe(legacyResultCode), DECISION_REASON_MAX_LENGTH));
|
||||
+ "; legacy=" + nullSafe(legacyResultCode)
|
||||
+ "; shadowReason=" + nullSafe(observation.reason()), DECISION_REASON_MAX_LENGTH));
|
||||
requireComparisonInserted(inserted);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user