Repository navigation
fix(merge): 대표행 종결 전파 — 그림자행 open 부활(매경 뒤집힘) 차단 + gnews kr-2/3/4 퇴출 (… #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,6 +79,20 @@ const resolveTarget = (byId, id) => { | |
| return byId.get(direct.merged_into) || direct; | ||
| }; | ||
|
|
||
| // 대표행 종결 전파(2026-12-01 매경 사고): 그림자행(merged_into)을 가진 대표행이 | ||
| // closed/gone 되면 그림자행도 동기 종결한다 — 안 하면 다음 dedupe 재계산의 pickRep 가 | ||
| // OPENISH 선호로 아직 open 인 그림자행을 새 대표로 뒤집어, 종료된 대회가 open 로 | ||
| // 화면에 부활한다(매경 AI 광고공모전 111903↔112073 실측). history 에 근거를 남긴다. | ||
| const propagateClosure = (byId, ex, status, date) => { | ||
| if (status !== 'closed' && status !== 'gone') return; | ||
| for (const r of byId.values()) { | ||
| if (r.merged_into !== ex.id) continue; | ||
| if (!['open', 'upcoming', 'judging'].includes(r.status)) continue; // 이미 종결 상태는 건드리지 않는다(soop 선례) — 위험은 open 그림자행뿐 | ||
| r.history = [...(r.history || []), { date, event: 'status_changed', from: r.status, to: status, note: `rep(${ex.id}) 종결 동기` }]; | ||
| r.status = status; | ||
|
Comment on lines
+86
to
+92
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 한 출처의 소실로 접수 중인 기회까지 숨김 재방문에서 한 출처가 Learn more재방문 규칙은 원문을 세 번 연속 가져오지 못하면 Example: 현재 데이터에서 Recommended fix: 원문 접근 실패인 Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| } | ||
| }; | ||
|
|
||
| // ---- postings ---- | ||
| const postings = read('postings.json'); | ||
| const pById = new Map(postings.map(p => [p.id, p])); | ||
|
|
@@ -104,6 +118,7 @@ for (const inc of run.postings || []) { | |
| if (inc.status && inc.status !== ex.status) { | ||
| hist.push({ date, event: 'status_changed', from: ex.status, to: inc.status }); | ||
| ex.status = inc.status; S.status_changed.push(ex.id); | ||
| propagateClosure(pById, ex, inc.status, date); | ||
| } | ||
| ex.history = hist; ex.last_seen = date; ex.last_checked = date; | ||
| if (fields.evidence.length) ex.evidence = fields.evidence; | ||
|
|
@@ -151,6 +166,7 @@ for (const inc of run.events || []) { | |
| if (inc.status && inc.status !== ex.status) { | ||
| hist.push({ date, event: 'status_changed', from: ex.status, to: inc.status }); | ||
| ex.status = inc.status; S.event_status_changed.push(ex.id); | ||
| propagateClosure(eById, ex, inc.status, date); | ||
| } | ||
| if (inc.hiring_link !== undefined && inc.hiring_link !== ex.hiring_link) { | ||
| hist.push({ date, event: 'hiring_link_changed', from: ex.hiring_link, to: inc.hiring_link }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔍 처음 발견한 중복은 종결 전파 대상이 아님
전파는 기존 병합 표시를 기준으로 합니다. 같은 런에서 신규 수집한 중복은 중복 재계산에서야 그룹에 합류하므로, 유효한 재공고와 종료된 기회의 늦은 중복 수집을 별도 테스트로 구분할 필요가 있습니다.
Was this helpful? React with 👍 or 👎 to provide feedback.