Skip to content

test(data): fix ExpiredDraftDateRepairIT seeding (main pipeline red) - #122

Merged
hugoalves-dev merged 28 commits into
mainfrom
hugo/intelligent-wozniak-krhlwh
Dec 3, 2026
Merged

hugoalves-dev merged 28 commits into
mainfrom
hugo/intelligent-wozniak-krhlwh

Conversation

@hugoalves-dev

Copy link
Copy Markdown
Owner

Summary

  • Main is red after fix(status): convert Ghosting over closing statuses and restore expired-draft dates #121: both ExpiredDraftDateRepairIT tests fail with null value in column "application_created_xp_awarded". The ITs build the schema with Hibernate (Flyway off), so the boolean columns have no default, and the raw INSERT left them out.
  • Test rows are now saved through JPA and then shaped with an UPDATE. No production code or migration changes; V41/V42 are unchanged.
  • Because the pipeline failed, Publish and Deploy were skipped, so production is still on V40.

Test plan

  • ExpiredDraftDateRepairIT (2/2) and LegacyStatusMapperTest (38/38) pass against a real PostgreSQL
  • CI green

Generated by Claude Code

…acy status

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
…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
…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
… a stage to be saved

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
… 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
…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
The ITs build the schema with Hibernate (Flyway is off), so the boolean
columns have no database default and the raw INSERT failed on
application_created_xp_awarded. Rows are now saved through the entity and
then shaped with an UPDATE, so new non-null columns cannot break the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjfbQseka7Y3pN4sK32Pe
@hugoalves-dev
hugoalves-dev marked this pull request as ready for review December 3, 2026 01:06
@hugoalves-dev
hugoalves-dev merged commit 4c5b9d1 into main Dec 3, 2026
2 checks passed
@hugoalves-dev
hugoalves-dev deleted the hugo/intelligent-wozniak-krhlwh branch December 3, 2026 01:06
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Qodana for JVM

11 new problems were found

Inspection name Severity Problems
Constant values 🔶 Warning 5
Nullability and data flow problems 🔶 Warning 4
Non-atomic operation on 'volatile' field 🔶 Warning 2
View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.3.2
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

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.

2 participants