| | 1 | = UC0007 - Review Applications = |
| | 2 | |
| | 3 | '''Initiating actor:''' Main Organiser |
| | 4 | |
| | 5 | A Main Organiser reviews applications for their event edition and updates application statuses. The scenario reviews Hackathon participation applications. |
| | 6 | |
| | 7 | == Scenario == |
| | 8 | |
| | 9 | 1. The Main Organiser opens the application review page for Impact Hackathon 2026. |
| | 10 | |
| | 11 | 2. The application lists applications for Impact Hackathon 2026. |
| | 12 | |
| | 13 | {{{#!sql |
| | 14 | SELECT |
| | 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 |
| | 23 | FROM applications a |
| | 24 | JOIN students s |
| | 25 | ON s.student_index = a.student_index |
| | 26 | WHERE 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' |
| | 29 | ORDER BY a.application_type, a.function_name, a.application_status, s.last_name, s.first_name; |
| | 30 | }}} |
| | 31 | |
| | 32 | 3. The Main Organiser selects Lina Stamenovska's participation application and accepts it. |
| | 33 | |
| | 34 | 4. The application updates the application status. |
| | 35 | |
| | 36 | {{{#!sql |
| | 37 | UPDATE applications |
| | 38 | SET application_status = 'accepted' |
| | 39 | WHERE 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 | |
| | 52 | 5. The application shows the updated application. |
| | 53 | |
| | 54 | {{{#!sql |
| | 55 | SELECT |
| | 56 | a.application_id, |
| | 57 | s.first_name, |
| | 58 | s.last_name, |
| | 59 | a.application_type, |
| | 60 | a.function_name, |
| | 61 | a.application_status |
| | 62 | FROM applications a |
| | 63 | JOIN students s |
| | 64 | ON s.student_index = a.student_index |
| | 65 | WHERE 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' |
| | 70 | ORDER BY a.application_id; |
| | 71 | }}} |
| | 72 | |
| | 73 | 6. The application shows accepted function applications for Impact Hackathon 2026. |
| | 74 | |
| | 75 | {{{#!sql |
| | 76 | SELECT |
| | 77 | ctf.function_name, |
| | 78 | COALESCE(s.first_name || ' ' || s.last_name, 'not assigned') AS accepted_member, |
| | 79 | a.application_status |
| | 80 | FROM core_team_functions ctf |
| | 81 | LEFT 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' |
| | 88 | LEFT JOIN students s |
| | 89 | ON s.student_index = a.student_index |
| | 90 | WHERE 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' |
| | 93 | ORDER BY ctf.function_name; |
| | 94 | }}} |