Skip to content

[OU-FIX] hr_recruitment_skills: remap candidate skills to every application - #115

Open
dnplkndll wants to merge 1 commit into
19.0from
19.0-fix-hr-recruitment-skills-candidate-remap
Open

[OU-FIX] hr_recruitment_skills: remap candidate skills to every application#115
dnplkndll wants to merge 1 commit into
19.0from
19.0-fix-hr-recruitment-skills-candidate-remap

Conversation

@dnplkndll

Copy link
Copy Markdown

Migration work on the ledoent/OpenUpgrade fork (internal review).

Fixes two defects in the in-tree hr_recruitment_skills remap on top of the merged script:

  • UPDATE ... FROM with a 1:N candidate_id join lets Postgres pick one
    arbitrary application per candidate; skills now land on every application
    (deterministic, keyed on the pristine legacy candidate-id column).
  • Candidates with no application kept candidate ids in applicant_id after the
    FK lift — dangling values that can collide with real applicant ids and were
    copied into hr_applicant_hr_skill_rel. Those rows are dropped.

No-op when the legacy candidate-id column is absent (v17-origin databases).

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

…cation

The plain UPDATE ... FROM picks one arbitrary application per candidate,
and candidates without any application keep candidate ids in applicant_id
(dangling after the FK lift, then copied into hr_applicant_hr_skill_rel).

Assisted-by: Claude Fable 5
@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch from 8b0bbc7 to 13a7a6c Compare August 7, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant