generated from hmcts/expressjs-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
VIBE-192 Add and Remove Subscription for Verified Users #130
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
Merged
junaidiqbalmoj
merged 32 commits into
master
from
feature/VIBE-192-verified-user-email-subscriptions
Nov 27, 2025
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
36446d6
Add technical planning for VIBE-192: Verified User Email subscriptions
github-actions[bot] 5156984
Add technical planning for VIBE-192
github-actions[bot] fe6062a
Add technical planning for VIBE-192
github-actions[bot] 28afa43
docs: Add technical planning for VIBE-192 - Email subscriptions
github-actions[bot] c4b1947
docs: Add specification and technical plan for VIBE-192
github-actions[bot] c1dae48
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj 72dcc10
WIP
junaidiqbalmoj d76ac66
fix sign in page
junaidiqbalmoj a67f20c
subscription journey include remove subscription
junaidiqbalmoj cb63eae
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj ab09143
improve code coverage
junaidiqbalmoj 77ccd4e
fix build
junaidiqbalmoj 89e0331
refactoring
junaidiqbalmoj 647b1e3
refactoring, code review comments, adding e2e tests
junaidiqbalmoj 049f9fd
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj 01a31cf
refactoring, code review fixes and fixing end to end tests
junaidiqbalmoj bb1ced2
fix end to end tests
junaidiqbalmoj 8cf16f9
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj efb511a
fix build
junaidiqbalmoj e234618
fix code review comments
junaidiqbalmoj 6de235e
refactor css inline style
junaidiqbalmoj 8e28595
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj d573144
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj 4afb5d5
fix build
junaidiqbalmoj 9ccc1f3
fix build
junaidiqbalmoj 16845e0
fix build
junaidiqbalmoj e167e3f
Merge branch 'master' into feature/VIBE-192-verified-user-email-subsc…
junaidiqbalmoj 942c672
fix code review comments
junaidiqbalmoj 956d778
fix bug
junaidiqbalmoj 0e1fb38
fix build
junaidiqbalmoj 791752e
code review comment
junaidiqbalmoj d54f4e9
remove unnecessary files
junaidiqbalmoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
apps/postgres/prisma/migrations/20251124104824_add_email_subscriptions/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| -- CreateTable | ||
| CREATE TABLE "subscription" ( | ||
| "subscription_id" UUID NOT NULL, | ||
| "user_id" UUID NOT NULL, | ||
| "location_id" TEXT NOT NULL, | ||
| "date_added" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
|
||
| CONSTRAINT "subscription_pkey" PRIMARY KEY ("subscription_id") | ||
| ); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "idx_subscription_user" ON "subscription"("user_id"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "idx_subscription_location" ON "subscription"("location_id"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "subscription_user_id_location_id_key" ON "subscription"("user_id", "location_id"); | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "subscription" ADD CONSTRAINT "subscription_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("user_id") ON DELETE CASCADE ON UPDATE CASCADE; |
20 changes: 20 additions & 0 deletions
20
...res/prisma/migrations/20251127162616_change_subscription_location_id_to_int/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* | ||
| Warnings: | ||
| - Changed the type of `location_id` on the `subscription` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
| */ | ||
| -- Drop existing indexes and constraints | ||
| DROP INDEX IF EXISTS "idx_subscription_location"; | ||
| DROP INDEX IF EXISTS "subscription_user_id_location_id_key"; | ||
|
|
||
| -- AlterTable - Cast location_id from TEXT to INTEGER | ||
| ALTER TABLE "subscription" | ||
| ALTER COLUMN "location_id" TYPE INTEGER USING "location_id"::INTEGER; | ||
|
|
||
| -- Recreate indexes | ||
| CREATE INDEX "idx_subscription_location" ON "subscription"("location_id"); | ||
| CREATE UNIQUE INDEX "subscription_user_id_location_id_key" ON "subscription"("user_id", "location_id"); | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "subscription" ADD CONSTRAINT "subscription_location_id_fkey" FOREIGN KEY ("location_id") REFERENCES "location"("location_id") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| // Schema discovery functionality for module integration | ||
| import { prismaSchemas as locationSchemas } from "@hmcts/location/config"; | ||
| import { prismaSchemas as subscriptionsSchemas } from "@hmcts/subscriptions/config"; | ||
|
|
||
| export function getPrismaSchemas(): string[] { | ||
| return [locationSchemas]; | ||
| return [subscriptionsSchemas, locationSchemas]; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.