@resolveio/server-lib 22.3.218 → 22.3.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1041,6 +1041,13 @@ function supportLooseEvidenceOwnerFiles(value, ownerFiles) {
|
|
|
1041
1041
|
.filter(function (ownerFile) { return supportLooseOwnerFileMatch(value, ownerFile); })
|
|
1042
1042
|
.slice(0, 8);
|
|
1043
1043
|
}
|
|
1044
|
+
function supportDiagnosisEvidenceIsTicketAttachment(entry) {
|
|
1045
|
+
var text = cleanText([entry.artifactPath, entry.summary].filter(Boolean).join(' '), 1200);
|
|
1046
|
+
return /(?:^|\/)\.resolveio-support-context\/attachments\//i.test(text)
|
|
1047
|
+
|| /(?:^|\/)\.resolveio-context\/attachments\//i.test(text)
|
|
1048
|
+
|| /(?:^|\/)manual-ticket\.request\.txt$/i.test(text)
|
|
1049
|
+
|| /(?:^|\/)email\.metadata\.json$/i.test(text);
|
|
1050
|
+
}
|
|
1044
1051
|
function normalizeSupportDiagnosisEvidence(values, ownerFiles) {
|
|
1045
1052
|
if (ownerFiles === void 0) { ownerFiles = []; }
|
|
1046
1053
|
var allowed = new Set(['ticket', 'browser', 'mongo', 'log', 'code', 'commit', 'qa', 'other']);
|
|
@@ -2584,7 +2591,11 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2584
2591
|
|| (issueCasePrimaryText ? 'Customer/account context from support ticket intake and hydrated support attachments.' : '')
|
|
2585
2592
|
|| (featureRequestClassified ? 'Customer/account context from support ticket intake.' : '');
|
|
2586
2593
|
var rawReproductionStatus = issueCaseSource.reproduction_status || issueCaseSource.reproductionStatus || source.reproduction_status;
|
|
2587
|
-
var
|
|
2594
|
+
var explicitReproductionBlocker = pickText(issueCaseSource, ['reproduction_blocker', 'reproductionBlocker', 'runtime_blocker', 'runtimeBlocker', 'blocked_reason', 'blockedReason', 'blocker', 'blocked_by', 'blockedBy'], 1000);
|
|
2595
|
+
var inferredReproductionBlocked = /\b(?:runtime\s+)?reproduction\s+(?:is\s+)?blocked\b|\bno accessible staged runtime\b|\bstaged (?:mongo|log|runtime) artifacts?.{0,80}\b(?:not accessible|unavailable|missing)\b|\b(?:cannot|unable to) reproduce\b/i.test(issueCaseText);
|
|
2596
|
+
var inferredReproductionBlocker = explicitReproductionBlocker
|
|
2597
|
+
|| (inferredReproductionBlocked ? issueCaseText : '');
|
|
2598
|
+
var hasRuntimeReproductionEvidence = diagnosisEvidence.some(function (entry) { return SUPPORT_REPRODUCTION_EVIDENCE_TYPES.has(entry.type) && !supportDiagnosisEvidenceIsTicketAttachment(entry); });
|
|
2588
2599
|
var explicitHypothesisEvidence = collectSupportDiagnosisTextListFromValues([
|
|
2589
2600
|
hypothesisSource.evidence,
|
|
2590
2601
|
hypothesisSource.evidence_refs,
|
|
@@ -2604,8 +2615,8 @@ function normalizeResolveIOSupportDiagnosisGate(value, now) {
|
|
|
2604
2615
|
account_customer_context: accountCustomerContext,
|
|
2605
2616
|
reproduction_status: rawReproductionStatus
|
|
2606
2617
|
? normalizeReproductionStatus(rawReproductionStatus)
|
|
2607
|
-
: (featureRequestClassified || !hasRuntimeReproductionEvidence ? 'classified' : 'reproduced'),
|
|
2608
|
-
reproduction_blocker:
|
|
2618
|
+
: (inferredReproductionBlocker ? 'blocked' : (featureRequestClassified || !hasRuntimeReproductionEvidence ? 'classified' : 'reproduced')),
|
|
2619
|
+
reproduction_blocker: inferredReproductionBlocker
|
|
2609
2620
|
},
|
|
2610
2621
|
issue_class: issueClass || 'missing_wrong_data',
|
|
2611
2622
|
accepted_hypothesis: {
|