Repository navigation
fix(status): convert Ghosting over closing statuses and restore expired-draft dates - #121
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…acy status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
The nightly job turned week-old drafts into Rejected and any record untouched for a month (Rejected, Approved and archived included) into Ghosting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…pose them in responses Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…r status values Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…s from main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
… a stage to be saved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
… job Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…d the stage model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…acy status filters are translated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
… and calculated ghosting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…ols, analytics and rules Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…record; phase readers ignore the frozen column - An unchanged legacy status sent back by a client keeps the current stage/outcome. - Stage writes leave a display-only legacy label the previous frontend can echo. - PUT with outcome/waitingOn but no stage keeps the current stage (400 on create). - Assistant get and organization summary report the phase, not the legacy column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…ontrollerIT Passkey ITs can leave challenge rows behind; depending on test order the user cleanup then hit the webauthn_challenges foreign key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Production had 24 rows (Ghosting over Tarde demais / Rejected, no application date) left in the legacy format because the date check ran before the closing rule. V41 makes the startup backfill retry unconverted rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
…hugoalves-dev/SpringBoot-JobApplyTracker into hugo/intelligent-wozniak-krhlwh
…pired V42 gives rows shaped like 'Rejected without previous status' or 'Ghosting over Rejected', with no application date, their creation day as application date and opens them as APPLIED waiting on the company. Previous values are backed up in application_date_repair_backup_20261203; updated_at is untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
hugoalves-dev
marked this pull request as ready for review
December 3, 2026 00:59
Qodana for JVM11 new problems were found
View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2025.3.2
with:
upload-result: trueContact Qodana teamContact us at qodana-support@jetbrains.com
|
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrige a conversão de status legado do #117.
Problema
Em produção ficaram 24 registros sem data no formato antigo ("Ghosting" em itálico na lista):
GhostingsobreTARDE_DEMAIS: posts do LinkedIn salvos só com o link e com o prazo perdido;GhostingsobreRejected: rascunhos que o job noturno antigo marcou como Rejected e depois como Ghosting.A tabela de conversão do design (§3) diz que Ghosting sobre um encerramento aplica a regra do encerramento. O
LegacyStatusMapper.ghostingchecava "sem data" antes e desistia.Correção
Tarde demaissem data → Rascunho + Desisti;Rejectedsem data → Rascunho.legacy_statussó dos registros não convertidos (stage IS NULL), para o backfill tentar de novo no startup. Os que continuarem sem conversão (13GhostingsobreGHOSTING, de abril) voltam a ter o valor legado. Registros convertidos não são tocados.Reparo de datas (V42), aprovado pelo mantenedor
Antes da virada, candidaturas criadas sem status eram gravadas como rascunho e a API apagava a data de candidatura. Depois, o job noturno antigo as marcava como
Rejectede, mais tarde, comoGhosting.A V42 trata só as linhas com essa assinatura:
Rejectedsem status anterior, ouGhostingsobreRejected;Para cada uma:
application_daterecebecreated_at::date, o dia em que o registro foi criado;APPLIED, aguardandoCOMPANY;updated_atnão é tocado, para o cálculo de ghosting continuar correto.Tarde demais(prazo perdido) e os demais registros legados ficam como estão. Em produção são esperadas 18 linhas.Backup e rollback: o estado anterior de cada linha fica em
application_date_repair_backup_20261203.Teste:
ExpiredDraftDateRepairITexecuta o script da migration contra Postgres com linhas de cada formato encontrado em produção. Verifica:updated_atfica intacto;Verificação
https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
Generated by Claude Code