@resolveio/server-lib 22.3.206 → 22.3.208

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.
@@ -196,12 +196,16 @@ function normalizeResolveIOSupportAutonomyApprovalContract(value, options) {
196
196
  var previousScopeFingerprint = cleanText(source.previous_scope_fingerprint || source.previousScopeFingerprint, 180);
197
197
  var diagnosisScopeFingerprint = cleanText(source.diagnosis_scope_fingerprint || source.diagnosisScopeFingerprint, 180);
198
198
  var previousDiagnosisScopeFingerprint = cleanText(source.previous_diagnosis_scope_fingerprint || source.previousDiagnosisScopeFingerprint, 180);
199
- var scopeChangedSinceApproval = source.scope_changed_since_approval === true
200
- || source.scopeChangedSinceApproval === true
201
- || (!!scopeFingerprint && !!previousScopeFingerprint && scopeFingerprint !== previousScopeFingerprint);
202
199
  var diagnosisScopeChangedSinceApproval = source.diagnosis_scope_changed_since_approval === true
203
200
  || source.diagnosisScopeChangedSinceApproval === true
204
201
  || (!!diagnosisScopeFingerprint && !!previousDiagnosisScopeFingerprint && diagnosisScopeFingerprint !== previousDiagnosisScopeFingerprint);
202
+ var aggregateScopeFingerprintChanged = source.scope_changed_since_approval === true
203
+ || source.scopeChangedSinceApproval === true
204
+ || (!!scopeFingerprint && !!previousScopeFingerprint && scopeFingerprint !== previousScopeFingerprint);
205
+ var explicitScopeReapprovalRequired = source.requires_scope_reapproval === true || source.requiresScopeReapproval === true;
206
+ var intakeChangedSinceApproval = source.intake_edited_after_approval === true || source.intakeEditedAfterApproval === true;
207
+ var scopeChangedSinceApproval = explicitScopeReapprovalRequired
208
+ || (aggregateScopeFingerprintChanged && (ownerFilesChangedSinceApproval || diagnosisScopeChangedSinceApproval || intakeChangedSinceApproval));
205
209
  var onTheFlyScopeChangeApprovalRequired = source.on_the_fly_scope_change_approval_required === true
206
210
  || source.onTheFlyScopeChangeApprovalRequired === true
207
211
  || scopeChangedSinceApproval
@@ -227,7 +231,7 @@ function normalizeResolveIOSupportAutonomyApprovalContract(value, options) {
227
231
  || source.autopilotAfterApprovalUntilAGrade === true;
228
232
  var completionContract = cleanObject(source.autopilot_completion_contract || source.autopilotCompletionContract);
229
233
  var approved = source.approved === true;
230
- var blockers = Array.from(new Set(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(cleanList(source.blockers, 40, 500)), false), __read((!Object.keys(source).length && required ? ['Support autonomy approval is required before product-code repair.'] : [])), false), __read((source.requires_over_limit_approval === true || source.requiresOverLimitApproval === true ? ['Estimated work is over the automatic hour ceiling and requires operator approval.'] : [])), false), __read((source.requires_scope_reapproval === true || source.requiresScopeReapproval === true || scopeChangedSinceApproval ? ['The approved support scope changed and requires on-the-fly reapproval.'] : [])), false), __read((source.requires_owner_file_reapproval === true || source.requiresOwnerFileReapproval === true || ownerFilesChangedSinceApproval ? ['The owner-file set changed after approval and requires reapproval.'] : [])), false), __read((source.requires_intake_reapproval === true || source.requiresIntakeReapproval === true ? ['The support intake/classification changed after approval and requires reapproval.'] : [])), false), __read((source.requires_diagnosis_scope_reapproval === true || source.requiresDiagnosisScopeReapproval === true || diagnosisScopeChangedSinceApproval ? ['The accepted diagnosis/proof scope changed after approval and requires reapproval.'] : [])), false), __read((source.requires_classification_approval === true || source.requiresClassificationApproval === true ? ['Bug/not-bug classification must be approved before product-code repair.'] : [])), false), __read((source.requires_estimate_hours === true || source.requiresEstimateHours === true ? ['Estimated hours must be recorded before product-code repair.'] : [])), false), __read((approved && bugNotBugKnown !== true ? ['Bug/not-bug classification must be set before approved support autopilot can repair product code.'] : [])), false), __read((approved && bugNotBugClassificationApproved !== true ? ['Bug/not-bug classification must be approved before approved support autopilot can repair product code.'] : [])), false), __read((approved && estimatedHours === undefined ? ['Estimated hours must be recorded before approved support autopilot can repair product code.'] : [])), false), __read((approved && overMaxAutoHours && explicitOverLimitApproval !== true ? ["Estimated work is ".concat(estimatedHours, " hours, above the ").concat(maxAutoHoursWithoutApproval, "-hour autonomy ceiling, and needs explicit over-limit operator approval.")] : [])), false))).slice(0, 40);
234
+ var blockers = Array.from(new Set(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(cleanList(source.blockers, 40, 500)), false), __read((!Object.keys(source).length && required ? ['Support autonomy approval is required before product-code repair.'] : [])), false), __read((source.requires_over_limit_approval === true || source.requiresOverLimitApproval === true ? ['Estimated work is over the automatic hour ceiling and requires operator approval.'] : [])), false), __read((explicitScopeReapprovalRequired || scopeChangedSinceApproval ? ['The approved support scope changed and requires on-the-fly reapproval.'] : [])), false), __read((source.requires_owner_file_reapproval === true || source.requiresOwnerFileReapproval === true || ownerFilesChangedSinceApproval ? ['The owner-file set changed after approval and requires reapproval.'] : [])), false), __read((source.requires_intake_reapproval === true || source.requiresIntakeReapproval === true ? ['The support intake/classification changed after approval and requires reapproval.'] : [])), false), __read((source.requires_diagnosis_scope_reapproval === true || source.requiresDiagnosisScopeReapproval === true || diagnosisScopeChangedSinceApproval ? ['The accepted diagnosis/proof scope changed after approval and requires reapproval.'] : [])), false), __read((source.requires_classification_approval === true || source.requiresClassificationApproval === true ? ['Bug/not-bug classification must be approved before product-code repair.'] : [])), false), __read((source.requires_estimate_hours === true || source.requiresEstimateHours === true ? ['Estimated hours must be recorded before product-code repair.'] : [])), false), __read((approved && bugNotBugKnown !== true ? ['Bug/not-bug classification must be set before approved support autopilot can repair product code.'] : [])), false), __read((approved && bugNotBugClassificationApproved !== true ? ['Bug/not-bug classification must be approved before approved support autopilot can repair product code.'] : [])), false), __read((approved && estimatedHours === undefined ? ['Estimated hours must be recorded before approved support autopilot can repair product code.'] : [])), false), __read((approved && overMaxAutoHours && explicitOverLimitApproval !== true ? ["Estimated work is ".concat(estimatedHours, " hours, above the ").concat(maxAutoHoursWithoutApproval, "-hour autonomy ceiling, and needs explicit over-limit operator approval.")] : [])), false))).slice(0, 40);
231
235
  var status = approved && blockers.length === 0
232
236
  ? 'approved_autopilot'
233
237
  : Object.keys(source).length ? 'approval_required' : 'missing';
@@ -267,7 +271,7 @@ function normalizeResolveIOSupportAutonomyApprovalContract(value, options) {
267
271
  bugNotBugKnown: bugNotBugKnown,
268
272
  bugNotBugClassificationApproved: bugNotBugClassificationApproved,
269
273
  requiresOverLimitApproval: source.requires_over_limit_approval === true || source.requiresOverLimitApproval === true || (overMaxAutoHours && explicitOverLimitApproval !== true),
270
- requiresScopeReapproval: source.requires_scope_reapproval === true || source.requiresScopeReapproval === true || scopeChangedSinceApproval,
274
+ requiresScopeReapproval: explicitScopeReapprovalRequired || scopeChangedSinceApproval,
271
275
  requiresOwnerFileReapproval: source.requires_owner_file_reapproval === true || source.requiresOwnerFileReapproval === true || ownerFilesChangedSinceApproval,
272
276
  requiresIntakeReapproval: source.requires_intake_reapproval === true || source.requiresIntakeReapproval === true,
273
277
  requiresDiagnosisScopeReapproval: source.requires_diagnosis_scope_reapproval === true || source.requiresDiagnosisScopeReapproval === true || diagnosisScopeChangedSinceApproval,
@@ -1378,6 +1382,10 @@ function normalizeOwnerFilePath(value) {
1378
1382
  .replace(/^\/+/, '')
1379
1383
  .replace(/\s+$/g, '');
1380
1384
  }
1385
+ function isResolveIOSupportGeneratedAngularWrapperPath(value) {
1386
+ var normalized = normalizeOwnerFilePath(value).replace(/^geochem\//i, '');
1387
+ return /(?:^|\/)angular\/app\/(?:methods|publications)\.ts$/i.test(normalized);
1388
+ }
1381
1389
  function ownerFileComparablePathKeys(value) {
1382
1390
  var e_4, _a;
1383
1391
  var normalized = normalizeOwnerFilePath(value);
@@ -4549,6 +4557,9 @@ function changedFilesOutsideResolveIOSupportDiagnosisOwnerFiles(diagnosisGate, c
4549
4557
  if (options.allowTests && /(^|\/)(tests?|spec|__tests__)(\/|$)|\.(?:spec|test)\.[jt]sx?$/i.test(filePath)) {
4550
4558
  return false;
4551
4559
  }
4560
+ if (isResolveIOSupportGeneratedAngularWrapperPath(filePath)) {
4561
+ return false;
4562
+ }
4552
4563
  return true;
4553
4564
  });
4554
4565
  }