Changes between Initial Version and Version 1 of UseCase0007


Ignore:
Timestamp:
08/29/26 19:02:35 (8 days ago)
Author:
236024
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase0007

    v1 v1  
     1= UC0007 - Review Applications =
     2
     3'''Initiating actor:''' Main Organiser
     4
     5A Main Organiser reviews applications for their event edition and updates application statuses. The scenario reviews Hackathon participation applications.
     6
     7== Scenario ==
     8
     91. The Main Organiser opens the application review page for Impact Hackathon 2026.
     10
     112. The application lists applications for Impact Hackathon 2026.
     12
     13{{{#!sql
     14SELECT
     15    a.application_id,
     16    s.student_index,
     17    s.first_name,
     18    s.last_name,
     19    a.application_type,
     20    a.function_name,
     21    a.application_status,
     22    a.motivational_letter
     23FROM applications a
     24JOIN students s
     25    ON s.student_index = a.student_index
     26WHERE a.et_name = 'Hackathon'
     27  AND a.event_title = 'Impact Hackathon 2026'
     28  AND a.event_start_time = TIMESTAMP '2026-12-12 09:00:00'
     29ORDER BY a.application_type, a.function_name, a.application_status, s.last_name, s.first_name;
     30}}}
     31
     323. The Main Organiser selects Lina Stamenovska's participation application and accepts it.
     33
     344. The application updates the application status.
     35
     36{{{#!sql
     37UPDATE applications
     38SET application_status = 'accepted'
     39WHERE application_id = (
     40    SELECT a.application_id
     41    FROM applications a
     42    WHERE a.student_index = 230031
     43      AND a.et_name = 'Hackathon'
     44      AND a.event_title = 'Impact Hackathon 2026'
     45      AND a.event_start_time = TIMESTAMP '2026-12-12 09:00:00'
     46      AND a.application_type = 'event_participation'
     47    ORDER BY a.application_id
     48    LIMIT 1
     49);
     50}}}
     51
     525. The application shows the updated application.
     53
     54{{{#!sql
     55SELECT
     56    a.application_id,
     57    s.first_name,
     58    s.last_name,
     59    a.application_type,
     60    a.function_name,
     61    a.application_status
     62FROM applications a
     63JOIN students s
     64    ON s.student_index = a.student_index
     65WHERE a.student_index = 230031
     66  AND a.et_name = 'Hackathon'
     67  AND a.event_title = 'Impact Hackathon 2026'
     68  AND a.event_start_time = TIMESTAMP '2026-12-12 09:00:00'
     69  AND a.application_type = 'event_participation'
     70ORDER BY a.application_id;
     71}}}
     72
     736. The application shows accepted function applications for Impact Hackathon 2026.
     74
     75{{{#!sql
     76SELECT
     77    ctf.function_name,
     78    COALESCE(s.first_name || ' ' || s.last_name, 'not assigned') AS accepted_member,
     79    a.application_status
     80FROM core_team_functions ctf
     81LEFT JOIN applications a
     82    ON a.et_name = ctf.et_name
     83   AND a.event_title = ctf.event_title
     84   AND a.event_start_time = ctf.event_start_time
     85   AND a.function_name = ctf.function_name
     86   AND a.application_type = 'core_team_function'
     87   AND a.application_status = 'accepted'
     88LEFT JOIN students s
     89    ON s.student_index = a.student_index
     90WHERE ctf.et_name = 'Hackathon'
     91  AND ctf.event_title = 'Impact Hackathon 2026'
     92  AND ctf.event_start_time = TIMESTAMP '2026-12-12 09:00:00'
     93ORDER BY ctf.function_name;
     94}}}