You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Missing user.id is a course-config bug (bootstrap action didn't run) —
28
+
# not student-recoverable, so fail hard and surface in CI logs.
27
29
if [ -z "$USER_ID" ] || [ "$USER_ID" = "null" ]; then
28
30
echo "::error::Could not read user.id from setup_data.json"
29
31
exit 1
30
32
fi
33
+
34
+
# Missing facility_id IS student-recoverable: the previous target
35
+
# (Create Facility) hasn't been *passed* yet. Pupilfirst lets students
36
+
# submit this target after merely *submitting* the prerequisite, so we
37
+
# need to give actionable feedback here instead of failing the job.
31
38
if [ -z "$EXPECTED_FACILITY_ID" ] || [ "$EXPECTED_FACILITY_ID" = "null" ]; then
32
-
echo "::error::Could not read facility_management.facility_id from setup_data.json — has the previous target (Create Facility) been completed?"
33
-
exit 1
39
+
FEEDBACK="Please pass the **Create Facility** target first. Submitting it isn't enough — it needs a passing grade so this evaluation can verify the department belongs to your facility."
0 commit comments