Skip to content

Fix/test compilation after interview count#47

Merged
vitorhugo-java merged 6 commits into
mainfrom
fix/test-compilation-after-interview-count
Jun 5, 2026
Merged

Fix/test compilation after interview count#47
vitorhugo-java merged 6 commits into
mainfrom
fix/test-compilation-after-interview-count

Conversation

@vitorhugo-java
Copy link
Copy Markdown
Owner

This pull request adds support for tracking the number of interviews held for each job application. It introduces a new interviewCount field to the relevant entity, DTOs, and database schema. The interview metrics logic is refactored to use this new field, removing the previous per-user metrics approach. Tests and mappers are updated to handle the new field.

Interview Count Field Addition

  • Added a new interviewCount field (with minimum value validation) to the JobApplication entity, the ApplicationRequest and ApplicationResponse DTOs, and updated the database schema to persist this value. [1] [2] [3] [4]
  • Updated the ApplicationMapper and ApplicationService to map and persist the interviewCount field. [1] [2]

Metrics and Repository Refactor

  • Refactored InterviewMetricsService to use the new interviewCount field in applications, removing the UserInterviewMetrics entity and repository. The service now sums interviewCount across all applications for a user. [1] [2] [3] [4]
  • Added a new query method sumInterviewCountByUserId to ApplicationRepository for aggregating interview counts.

API and Tooling Adjustments

  • Updated MCP tool methods and request/response handling to support the new interviewCount field, ensuring backward compatibility by defaulting to null where appropriate. [1] [2]

Test Updates

  • Updated integration and unit tests to include the new interviewCount parameter in requests and responses, and removed references to the deprecated UserInterviewMetrics. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

claude added 4 commits June 5, 2026 15:17
Adds PATCH /api/v1/dashboard/interview-count endpoint and
Update-Interview-Count MCP tool so users can correct the cumulative
interview counter when the automatic detection misses transitions.

https://claude.ai/code/session_015kfgrc2oHA881RT3bEYHZ6
Adds interview_count column to job_applications so each application
tracks its own count. Dashboard interviewCount now sums across all
applications. Removes the per-user UserInterviewMetrics path and the
manual update endpoint/MCP tool (editing is now done via the
application form).

https://claude.ai/code/session_015kfgrc2oHA881RT3bEYHZ6
- Add missing interviewCount (null) arg to ApplicationRequest constructors
  in ApplicationControllerIT, ApplicationServiceTest, InterviewMetricsServiceTest
- Add missing interviewCount (0) arg to ApplicationResponse constructors
  in ApplicationServiceTest, McpAnalyticsToolsTest, McpApplicationToolsTest
- Rewrite InterviewMetricsServiceTest to use ApplicationRepository
  instead of the removed UserInterviewMetricsRepository

https://claude.ai/code/session_015kfgrc2oHA881RT3bEYHZ6
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Qodana for JVM

2 new problems were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 1
Mismatched query and update of 'StringBuilder' 🔶 Warning 1
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

claude and others added 2 commits June 5, 2026 17:14
…nsition

recordStatusTransition now increments application.interviewCount when
entering an interview status, restoring the auto-count behavior.
The manual field on the form allows correction when auto-count misses
multiple rounds.

https://claude.ai/code/session_015kfgrc2oHA881RT3bEYHZ6
@vitorhugo-java vitorhugo-java merged commit 59dbc95 into main Jun 5, 2026
6 checks passed
@vitorhugo-java vitorhugo-java deleted the fix/test-compilation-after-interview-count branch June 5, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants