Changes between Version 1 and Version 2 of UseCase0004


Ignore:
Timestamp:
09/02/26 18:04:03 (4 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0004

    v1 v2  
    33'''Initiating actor:''' Board Member
    44
    5 A Board Member records attendance for a Full Member Meeting. The scenario checks attendance for the Full Member Meeting held on 12 March 2026.
     5A Board Member opens a Full Member Meeting attendance list and records attendance statuses for full members. In this scenario, the Board Member is acting as the Secretary.
    66
    77== Scenario ==
    88
    9 1. The Board Member opens the attendance screen for the Full Member Meeting.
     91. The Board Member opens the attendance page for the Full Member Meeting on 12 March 2026.
    1010
    11 2. The application lists full members with their RSVP, attendance status, and absence reason if one exists.
     112. The application lists full members with their RSVP, attendance status, and announced absence if one exists.
    1212
    1313{{{#!sql
     
    1616    s.first_name,
    1717    s.last_name,
    18     COALESCE(p.rsvp_status, 'no_response') AS rsvp_status,
    19     COALESCE(p.attendance_status, 'not_checked') AS attendance_status,
     18    p.rsvp_status,
     19    p.attendance_status,
    2020    aa.reason
    2121FROM full_members fm
     
    2424LEFT JOIN participation p
    2525    ON p.student_index = fm.student_index
    26    AND p.at_name = 'Full Member Meeting'
    27    AND p.as_start_time = TIMESTAMP '2026-03-12 18:00:00'
    28    AND p.as_location = 'BEST Office'
     26   AND p.as_id = 8
    2927LEFT JOIN announces_absence aa
    3028    ON aa.student_index = fm.student_index
    31    AND aa.at_name = 'Full Member Meeting'
    32    AND aa.as_start_time = TIMESTAMP '2026-03-12 18:00:00'
    33    AND aa.as_location = 'BEST Office'
     29   AND aa.as_id = 8
    3430ORDER BY s.last_name, s.first_name;
    3531}}}
    3632
    37 3. The Board Member marks Mila Jovanovska as excused.
     333. The Board Member marks member 230005 as excused.
    3834
    39354. The application updates the attendance status.
     
    4339SET attendance_status = 'excused'
    4440WHERE student_index = 230005
    45   AND at_name = 'Full Member Meeting'
    46   AND as_start_time = TIMESTAMP '2026-03-12 18:00:00'
    47   AND as_location = 'BEST Office';
     41  AND as_id = 8;
    4842}}}
    4943
    50 5. The application refreshes the attendance list.
     445. The application shows the updated attendance row.
    5145
    5246{{{#!sql
     
    5650    s.last_name,
    5751    p.rsvp_status,
    58     p.rsvp_at,
    59     p.attendance_status
     52    p.attendance_status,
     53    aa.reason
    6054FROM participation p
    6155JOIN students s
    6256    ON s.student_index = p.student_index
    63 WHERE p.at_name = 'Full Member Meeting'
    64   AND p.as_start_time = TIMESTAMP '2026-03-12 18:00:00'
    65   AND p.as_location = 'BEST Office'
    66 ORDER BY s.last_name, s.first_name;
     57LEFT JOIN announces_absence aa
     58    ON aa.student_index = p.student_index
     59   AND aa.as_id = p.as_id
     60WHERE p.student_index = 230005
     61  AND p.as_id = 8;
    6762}}}