Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/monitoring feedback #133

Merged
merged 2 commits into from
Sep 19, 2024
Merged

Feat/monitoring feedback #133

merged 2 commits into from
Sep 19, 2024

Conversation

Luburic
Copy link
Contributor

@Luburic Luburic commented Sep 19, 2024

Change goal

  • Instructors can now give weekly feedback for their students to highlight the student's general progress. The feedback is used internally for now and is not available to the student.

Database change

Run the following SQL script:

CREATE TABLE courses."WeeklyProgress"
(
    "Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
    "CourseId" integer NOT NULL,
    "LearnerId" integer NOT NULL,
    "InstructorId" integer NOT NULL,
    "InstructorName" integer NOT NULL,
    "WeekEnd" timestamp with time zone NOT NULL,
    "Semaphore" integer NOT NULL,
    "SemaphoreJustification" text COLLATE pg_catalog."default",
    "AverageSatisfaction" double precision NOT NULL,
    "AchievedTaskPoints" double precision NOT NULL,
    "MaxTaskPoints" double precision NOT NULL,
    CONSTRAINT "PK_WeeklyProgress" PRIMARY KEY ("Id"),
    CONSTRAINT "FK_WeeklyProgress_Courses_CourseId" FOREIGN KEY ("CourseId")
        REFERENCES courses."Courses" ("Id") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE CASCADE
)

TABLESPACE pg_default;

ALTER TABLE courses."WeeklyProgress"
    OWNER to postgres;

CREATE INDEX "IX_WeeklyProgress_CourseId"
    ON courses."WeeklyProgress" USING btree
    ("CourseId" ASC NULLS LAST)
    TABLESPACE pg_default;

Copy link

sonarcloud bot commented Sep 19, 2024

@Luburic Luburic merged commit e5ca29f into development Sep 19, 2024
3 checks passed
@Luburic Luburic deleted the feat/monitoring-feedback branch September 19, 2024 10:49
@Luburic
Copy link
Contributor Author

Luburic commented Sep 30, 2024

🎉 This PR is included in version 2.21.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant