Skip to content
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6e93d97
docs: RFC for application status model and migration (#108)
claude Nov 30, 2026
1a909a4
feat(applications): add stage/outcome/waitingOn columns alongside leg…
claude Nov 30, 2026
6b28269
feat(applications): map legacy status values to stage/outcome/waitingOn
claude Nov 30, 2026
dfa9717
fix(scheduler): stop overwriting closed, archived and draft applications
claude Nov 30, 2026
ffa7c05
feat(applications): backfill stage/outcome from legacy status on startup
claude Nov 30, 2026
f74901d
feat(applications): dual-write stage/outcome on status changes and ex…
claude Nov 30, 2026
5669561
docs(mcp): give each status a meaning and one rule for RH; fix Swagge…
claude Nov 30, 2026
f335e02
docs: phase 1 implementation plan for the status model (#108)
claude Nov 30, 2026
3825de0
Merge remote-tracking branch 'origin/main' into hugo/intelligent-wozn…
claude Nov 30, 2026
878795a
fix: keep ApplicationStatus enum, now used by assistant status aliase…
claude Nov 30, 2026
8d1d254
docs: design for the stage/outcome cutover (#108)
claude Dec 1, 2026
fddbb20
docs: backend and frontend plans for the stage/outcome cutover (#108)
claude Dec 1, 2026
66403c8
refactor(status): best-effort legacy conversion, drop NEEDS_REVIEW
claude Dec 1, 2026
046e4ab
feat(applications): resolve stage on every write; legacy records need…
claude Dec 1, 2026
234f2da
feat(applications): calculated ghosting replaces the nightly Ghosting…
claude Dec 1, 2026
d112e1c
feat(applications): dashboard, interview metrics and gamification rea…
claude Dec 1, 2026
590805e
feat(applications): filters, search and export use stage/outcome; leg…
claude Dec 1, 2026
ade9911
test: model drafts with the draft stage in the reminder IT
claude Dec 1, 2026
b60daab
feat(assistant): queries and aggregations use the stage/outcome phase…
claude Dec 1, 2026
a2398f9
feat(mcp): stage catalog, Update-Application-Stage and stage-aware to…
claude Dec 1, 2026
1c9c299
chore(dev): fake data seeder writes the stage model
claude Dec 1, 2026
dbbe033
fix(applications): echoed legacy status never reopens or regresses a …
claude Dec 1, 2026
6ecb411
test: clean webauthn challenges before deleting users in ApplicationC…
claude Dec 1, 2026
5c210a6
fix(status): Ghosting over a closing status converts even without a date
claude Dec 3, 2026
7be60b4
Merge branch 'hugo/intelligent-wozniak-krhlwh' of https://github.com/…
claude Dec 3, 2026
aec6353
fix(data): restore application dates of drafts the old nightly job ex…
claude Dec 3, 2026
ebe5b1b
Merge remote-tracking branch 'origin/main' into hugo/intelligent-wozn…
claude Dec 3, 2026
5a724fc
test(data): seed ExpiredDraftDateRepairIT rows through JPA
claude Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.jobtracker.integration;

import com.jobtracker.entity.JobApplication;
import com.jobtracker.entity.User;
import com.jobtracker.repository.ApplicationRepository;
import com.jobtracker.repository.UserRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -26,8 +28,9 @@ class ExpiredDraftDateRepairIT extends AbstractIntegrationTest {

@Autowired private JdbcTemplate jdbc;
@Autowired private UserRepository userRepository;
@Autowired private ApplicationRepository applicationRepository;

private UUID userId;
private User user;

@BeforeEach
void setUp() {
Expand All @@ -37,7 +40,7 @@ void setUp() {
user.setName("Repair");
user.setEmail("repair-" + UUID.randomUUID() + "@example.com");
user.setPasswordHash("x");
userId = userRepository.save(user).getId();
this.user = userRepository.save(user);
}

@Test
Expand Down Expand Up @@ -98,14 +101,17 @@ private void runRepair() throws Exception {
}

private UUID insert(String status, String previous, String stage, LocalDate date, String legacy) {
UUID id = UUID.randomUUID();
JobApplication app = new JobApplication();
app.setUser(user);
app.setVacancyName("Engineer");
app.setOrganization("Acme");
UUID id = applicationRepository.saveAndFlush(app).getId();
jdbc.update("""
INSERT INTO job_applications (id, user_id, vacancy_name, organization, status, previous_status, stage,
legacy_status, application_date, to_send_later, archived, rh_accepted_connection,
interview_scheduled, recruiter_dm_reminder_enabled, interview_count, created_at, updated_at)
VALUES (?, ?, 'Engineer', 'Acme', ?, ?, ?, ?, ?, ?, false, false, false, false, 0, ?, ?)""",
id, userId, status, previous, stage, legacy, date == null ? null : Date.valueOf(date),
"DRAFT".equals(stage), Timestamp.valueOf(CREATED), Timestamp.valueOf(UPDATED));
UPDATE job_applications SET status = ?, previous_status = ?, stage = ?, outcome = NULL, waiting_on = NULL,
legacy_status = ?, application_date = ?, to_send_later = ?, created_at = ?, updated_at = ?
WHERE id = ?""",
status, previous, stage, legacy, date == null ? null : Date.valueOf(date),
"DRAFT".equals(stage), Timestamp.valueOf(CREATED), Timestamp.valueOf(UPDATED), id);
return id;
}

Expand Down
Loading