Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
736d738
feat: add exceptions to schema
thesleepyniko Apr 20, 2026
8eacfff
feat: add isActive for manual expiry
thesleepyniko Apr 20, 2026
2a7960d
feat: add template for exceptions page
thesleepyniko Apr 21, 2026
741be26
feat: db changes & migrations
thesleepyniko Apr 21, 2026
43011a6
feat: add exception service
thesleepyniko Apr 21, 2026
e34b04f
feat: implement user exceptions
thesleepyniko Apr 21, 2026
41b935d
test: tests for exception service
thesleepyniko Apr 21, 2026
d9814b3
style: add semicolon
thesleepyniko Apr 21, 2026
0f8be92
fix: prevent ambassadors from viewing exceptions for unassigned pathways
thesleepyniko Apr 21, 2026
84465e4
fix: ensure space between first and last name
thesleepyniko Apr 21, 2026
d98719a
fix: render name with space
thesleepyniko Apr 21, 2026
e8b7f67
fix: update exception expiration handling to use date type and adjust…
thesleepyniko Apr 21, 2026
544598d
fix: db FK stuff
thesleepyniko Apr 21, 2026
c68a44a
fix: add pathway assignment check for non-admin users in exception ac…
thesleepyniko Apr 21, 2026
f75f5eb
fix: increase accessibility
thesleepyniko Apr 21, 2026
4442f79
feat: add slack ID for submissions
thesleepyniko Apr 28, 2026
5880801
fix: validation and normalization for some stuff
thesleepyniko Apr 30, 2026
9720af5
Merge pull request #84 from hackclub/feat/reviewer-slack-id
jeninh Apr 30, 2026
6e455f5
fix: squash migrations into one
thesleepyniko May 1, 2026
3c0854a
feat: fix wrap-around + replace name
thesleepyniko May 1, 2026
d6153da
fix: exception comments in PR #82
thesleepyniko May 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions resolution-frontend/drizzle/0005_productive_madripoor.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CREATE TABLE "submission_closure_exception" (
"id" text PRIMARY KEY NOT NULL,
"user_id" text NOT NULL,
"season_id" text NOT NULL,
"pathway" "pathway" NOT NULL,
"week_number" integer NOT NULL,
"reason" text NOT NULL,
"is_active" boolean DEFAULT true NOT NULL,
"expires_at" date NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
"created_by" text NOT NULL
);
--> statement-breakpoint
ALTER TABLE "submission_closure_exception" ADD CONSTRAINT "submission_closure_exception_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "submission_closure_exception" ADD CONSTRAINT "submission_closure_exception_season_id_program_season_id_fk" FOREIGN KEY ("season_id") REFERENCES "public"."program_season"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "submission_closure_exception" ADD CONSTRAINT "submission_closure_exception_created_by_user_id_fk" FOREIGN KEY ("created_by") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "submission_exception_unique_idx" ON "submission_closure_exception" USING btree ("user_id","season_id","pathway","week_number");--> statement-breakpoint
CREATE INDEX "submission_exception_lookup_idx" ON "submission_closure_exception" USING btree ("season_id","pathway","week_number");--> statement-breakpoint
CREATE INDEX "submission_exception_user_idx" ON "submission_closure_exception" USING btree ("user_id","season_id");
Loading
Loading