Skip to content

Commit 38209eb

Browse files
committed
fix(apply): catch legacy tracker hazard variants
1 parent d649278 commit 38209eb

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

scripts/apply-queue.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ function trackerEvaluationEnvelopeProvesNoAttempt(clauses) {
15351535
return false;
15361536
}
15371537

1538-
const attemptSensitive = /(?:application|submission|submit|appl(?:y|ied|ying)|form(?:completed|submitted)\b|\bform\b|\b(?:interview(?:ed|ing)?|offer(?:ed)?|screen(?:ed|ing)?|portal|accept(?:ed|s|ing)?|receiv(?:e|ed|es|ing)|complet(?:e|ed|es|ing|ion)|execut(?:e|ed|es|ing|ion)|click(?:ed|s|ing)?|sent|deliver(?:ed|s|ing|y)?|acknowledg(?:e|ed|es|ing|ment)|finish(?:ed|es|ing)?|success(?:ful(?:ly)?)?|succeed(?:ed|s|ing)?|action|button|employer|candidate)\b)/i;
1538+
const attemptSensitive = /(?:application|submission|submit|appl(?:y|i)|interview|offer|form|screen|\baccept(?:s|ed|ing)?\b|receiv|complet|execut|click|\bsent\b|deliver|acknowledg|finish|success|succeed|action|button|portal|employer|candidate)/i;
15391539
return clauses.every((clause) => {
15401540
if (!attemptSensitive.test(clause)) return true;
15411541
return /^apply(?: with caveats)?$/i.test(clause)

test/apply-queue.test.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,19 @@ test('duplicate audit distinguishes unconfirmed evaluation facts from submit evi
21742174
'submit button clicked',
21752175
'submissionAttempted=true',
21762176
'application attempt was made',
2177+
'Interviews scheduled',
2178+
'Offers pending',
2179+
'Acknowledgement email logged',
2180+
'Applicant advanced',
2181+
'Forms opened',
2182+
'InterviewScheduled',
2183+
'OfferPending',
2184+
'Screens scheduled',
2185+
'Portals accessed',
2186+
'Actions ran',
2187+
'Buttons pressed',
2188+
'Candidates advanced',
2189+
'Employers responded',
21772190
]) {
21782191
for (const notes of [rampEvaluationNote, decagonEvaluationNote]) {
21792192
assert.equal(

0 commit comments

Comments
 (0)