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.

@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch 4 times, most recently from 0f03298 to 0cc3f66 Compare August 13, 2026 14:25
@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch 6 times, most recently from cc11b2f to 0c9ac17 Compare August 22, 2026 13:38
@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch 6 times, most recently from 6cc58e4 to e5d29ee Compare August 31, 2026 19:29
@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch 4 times, most recently from 965de8a to 8164990 Compare September 8, 2026 17:12
@dnplkndll
dnplkndll force-pushed the 19.0-fix-hr-recruitment-skills-candidate-remap branch from 8164990 to 7306ebc Compare September 10, 2026 16:57
…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 7306ebc to 2833fe7 Compare September 11, 2026 16:59
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