Update to SQL objects and CSS adjustment

This commit is contained in:
ivan-pelly
2026-03-03 11:48:10 -08:00
parent 3453096f89
commit 5b7bd8cfb4
11 changed files with 51 additions and 87 deletions
+6 -8
View File
@@ -2,16 +2,14 @@ DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Goal_GetAll`()
BEGIN
SELECT
id_goal,
id_goal_parent,
id_student,
id_user_created,
goalId,
goalParentId,
studentId,
title,
description,
category,
created_at,
updated_at
FROM goal
ORDER BY id_goal;
progressEventCount
FROM v_goal_card
ORDER BY goalId;
END;;
DELIMITER ;
+6 -8
View File
@@ -2,17 +2,15 @@ DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Goal_GetById`(IN p_id_goal CHAR(36))
BEGIN
SELECT
id_goal,
id_goal_parent,
id_student,
id_user_created,
goalId,
goalParentId,
studentId,
title,
description,
category,
created_at,
updated_at
FROM goal
WHERE id_goal = p_id_goal
progressEventCount
FROM v_goal_card
WHERE goalId = p_id_goal
LIMIT 1;
END;;
DELIMITER ;
@@ -1,7 +1,6 @@
DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_ProgressEvent_Insert`(
IN p_id_progress_event CHAR(36),
IN p_id_student CHAR(36),
IN p_id_goal CHAR(36),
IN p_id_user_created CHAR(36),
IN p_content TEXT,
@@ -11,7 +10,6 @@ BEGIN
INSERT INTO progress_event
(
id_progress_event,
id_student,
id_goal,
id_user_created,
content,
@@ -22,7 +20,6 @@ BEGIN
VALUES
(
p_id_progress_event,
p_id_student,
p_id_goal,
p_id_user_created,
p_content,
@@ -32,7 +29,6 @@ BEGIN
);
SELECT
id_progress_event,
id_student,
id_goal,
id_user_created,
content,
+7 -8
View File
@@ -2,14 +2,13 @@ DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_GetAll`()
BEGIN
SELECT
id_student,
id_program,
studentId,
identifier,
program_year,
enrollment_date,
expected_grad,
created_at
FROM student
ORDER BY id_student;
expectedGradDate,
lastEntryDate,
goalCount,
progressEventCount
FROM v_student_card
ORDER BY studentId;
END;;
DELIMITER ;
+7 -8
View File
@@ -2,15 +2,14 @@ DELIMITER ;;
CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_GetById`(IN p_id_student CHAR(36))
BEGIN
SELECT
id_student,
id_program,
studentId,
identifier,
program_year,
enrollment_date,
expected_grad,
created_at
FROM student
WHERE id_student = p_id_student
expectedGradDate,
lastEntryDate,
goalCount,
progressEventCount
FROM v_student_card
WHERE studentId = p_id_student
LIMIT 1;
END;;
DELIMITER ;
@@ -4,18 +4,18 @@ CREATE DEFINER=`root`@`%` PROCEDURE `sp_Student_GetWithAssignments`(
IN p_id_user CHAR(36)
)
BEGIN
-- Result set 1: All students in the program
-- Result set 1: All students in the program (card shape)
SELECT
s.id_student,
s.id_program,
s.identifier,
s.program_year,
s.enrollment_date,
s.expected_grad,
s.created_at
FROM student s
vc.studentId,
vc.identifier,
vc.expectedGradDate,
vc.lastEntryDate,
vc.goalCount,
vc.progressEventCount
FROM v_student_card vc
INNER JOIN student s ON s.id_student = vc.studentId
WHERE s.id_program = p_id_program
ORDER BY s.id_student;
ORDER BY vc.studentId;
-- Result set 2: user_student assignments for the requesting user in this program
SELECT
us.id_user_student,