Skip to content

feat: Allow Examiners to Filter and View Their Conducted Exams#4513

Open
MrAdder wants to merge 3 commits intoVATSIM-UK:mainfrom
MrAdder:issue-4367
Open

feat: Allow Examiners to Filter and View Their Conducted Exams#4513
MrAdder wants to merge 3 commits intoVATSIM-UK:mainfrom
MrAdder:issue-4367

Conversation

@MrAdder
Copy link
Contributor

@MrAdder MrAdder commented Feb 2, 2026

Fixes #4367

Changes Summary

Feature: Allow Examiners to Filter and View Their Conducted Exams

Related Issue: #4367
Related to comments in: #4383

Changes Made:

  1. app/Filament/Training/Pages/Exam/ExamHistory.php
    • Added new optional filter "Conducted by me"
    • When checked, filters the exam history table to show only exams where the authenticated user was a conductor (primary, secondary, or trainee examiner)
    • The filter respects the user's current permissions and exam access levels
    • Implemented as a checkbox filter that modifies the query using whereHas relationships with the PracticalExaminers model

How It Works:

  • Users with training.exams.access permission can access the exam history page
  • By default, the table shows exams based on their current conduct permissions
  • When the "Conducted by me" filter is enabled, the table filters to show only exams where:
    • The user was the primary examiner (senior), OR
    • The user was the secondary examiner (other), OR
    • The user was the trainee examiner
  • The filter matches the user's CID against the examiner records in the PracticalExaminers table
  • Users can still see other exams without the filter preventing them from doing so

@CLC0609 CLC0609 changed the title Update ExamHistory.php feat: Allow Examiners to Filter and View Their Conducted Exams Feb 4, 2026
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.

Allow examiners in the exam history section of the training panel to see their past exams

1 participant