-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/60290 pupil feedback persistence move to sql from table stora…
…ge (#3008) * build out skeleton controller * feedback controller implementation complete * controller, service and queue definitions complete * align tests with removal of pupil feedback storage queue * feedback function and tests * create migrations for pupil feedback table * finish off feedback service * fix issues with sql and types, update validation * implement pupil feedback submission * lint fix * updates to pupil feedback tests * lint fixes --------- Co-authored-by: Mohsen Qureshi <[email protected]>
- Loading branch information
1 parent
ead6f1d
commit e9950f8
Showing
44 changed files
with
736 additions
and
489 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
14 changes: 14 additions & 0 deletions
14
db/migrations/schema-objects/20250117111900.do.pupil-feedback-table.sql
This file contains 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,14 @@ | ||
CREATE TABLE [mtc_admin].[pupilFeedback] ( | ||
[id] INT IDENTITY (1, 1) NOT NULL, | ||
[createdAt] DATETIMEOFFSET (3) CONSTRAINT [DEFAULT_pupilFeedback_createdAt] DEFAULT GETUTCDATE() NOT NULL, | ||
[updatedAt] DATETIMEOFFSET (3) CONSTRAINT [DEFAULT_pupilFeedback_updatedAt] DEFAULT GETUTCDATE() NOT NULL, | ||
[version] [timestamp] NOT NULL, | ||
[check_id] INT NOT NULL, | ||
[pupil_id] INT NOT NULL, | ||
[school_id] INT NOT NULL, | ||
[feedback] NVARCHAR (255) NOT NULL, | ||
CONSTRAINT [PK_pupilFeedback] PRIMARY KEY CLUSTERED ([id] ASC), | ||
CONSTRAINT [FK_pupilFeedback_check] FOREIGN KEY ([check_id]) REFERENCES [mtc_admin].[check] ([id]), | ||
CONSTRAINT [FK_pupilFeedback_pupil] FOREIGN KEY ([pupil_id]) REFERENCES [mtc_admin].[pupil] ([id]), | ||
CONSTRAINT [FK_pupilFeedback_school] FOREIGN KEY ([school_id]) REFERENCES [mtc_admin].[school] ([id]) | ||
); |
1 change: 1 addition & 0 deletions
1
db/migrations/schema-objects/20250117111900.undo.pupil-feedback-table.sql
This file contains 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 @@ | ||
DROP TABLE [mtc_admin].[pupilFeedback]; |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -292,23 +292,6 @@ | |
events "^3.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@azure/storage-queue@^12.22.0": | ||
version "12.25.0" | ||
resolved "https://registry.yarnpkg.com/@azure/storage-queue/-/storage-queue-12.25.0.tgz#69803070857d2341ab22941e2409ed5994e70f66" | ||
integrity sha512-uoobHFbH/o7wIul/sCm32X2YFq6zb1XpNdpKIms9I60mwG3BBaOpEs5pgQV5a5ONG5WMSHlo8E1dNFB5ZZIa1g== | ||
dependencies: | ||
"@azure/abort-controller" "^2.1.2" | ||
"@azure/core-auth" "^1.4.0" | ||
"@azure/core-client" "^1.6.2" | ||
"@azure/core-http-compat" "^2.0.0" | ||
"@azure/core-paging" "^1.1.1" | ||
"@azure/core-rest-pipeline" "^1.10.1" | ||
"@azure/core-tracing" "^1.1.2" | ||
"@azure/core-util" "^1.6.1" | ||
"@azure/core-xml" "^1.4.3" | ||
"@azure/logger" "^1.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@colors/[email protected]", "@colors/colors@^1.6.0": | ||
version "1.6.0" | ||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -292,23 +292,6 @@ | |
events "^3.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@azure/storage-queue@^12.22.0": | ||
version "12.25.0" | ||
resolved "https://registry.yarnpkg.com/@azure/storage-queue/-/storage-queue-12.25.0.tgz#69803070857d2341ab22941e2409ed5994e70f66" | ||
integrity sha512-uoobHFbH/o7wIul/sCm32X2YFq6zb1XpNdpKIms9I60mwG3BBaOpEs5pgQV5a5ONG5WMSHlo8E1dNFB5ZZIa1g== | ||
dependencies: | ||
"@azure/abort-controller" "^2.1.2" | ||
"@azure/core-auth" "^1.4.0" | ||
"@azure/core-client" "^1.6.2" | ||
"@azure/core-http-compat" "^2.0.0" | ||
"@azure/core-paging" "^1.1.1" | ||
"@azure/core-rest-pipeline" "^1.10.1" | ||
"@azure/core-tracing" "^1.1.2" | ||
"@azure/core-util" "^1.6.1" | ||
"@azure/core-xml" "^1.4.3" | ||
"@azure/logger" "^1.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@colors/[email protected]", "@colors/colors@^1.6.0": | ||
version "1.6.0" | ||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -292,23 +292,6 @@ | |
events "^3.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@azure/storage-queue@^12.22.0": | ||
version "12.25.0" | ||
resolved "https://registry.yarnpkg.com/@azure/storage-queue/-/storage-queue-12.25.0.tgz#69803070857d2341ab22941e2409ed5994e70f66" | ||
integrity sha512-uoobHFbH/o7wIul/sCm32X2YFq6zb1XpNdpKIms9I60mwG3BBaOpEs5pgQV5a5ONG5WMSHlo8E1dNFB5ZZIa1g== | ||
dependencies: | ||
"@azure/abort-controller" "^2.1.2" | ||
"@azure/core-auth" "^1.4.0" | ||
"@azure/core-client" "^1.6.2" | ||
"@azure/core-http-compat" "^2.0.0" | ||
"@azure/core-paging" "^1.1.1" | ||
"@azure/core-rest-pipeline" "^1.10.1" | ||
"@azure/core-tracing" "^1.1.2" | ||
"@azure/core-util" "^1.6.1" | ||
"@azure/core-xml" "^1.4.3" | ||
"@azure/logger" "^1.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@colors/[email protected]", "@colors/colors@^1.6.0": | ||
version "1.6.0" | ||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -299,23 +299,6 @@ | |
events "^3.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@azure/storage-queue@^12.22.0": | ||
version "12.25.0" | ||
resolved "https://registry.yarnpkg.com/@azure/storage-queue/-/storage-queue-12.25.0.tgz#69803070857d2341ab22941e2409ed5994e70f66" | ||
integrity sha512-uoobHFbH/o7wIul/sCm32X2YFq6zb1XpNdpKIms9I60mwG3BBaOpEs5pgQV5a5ONG5WMSHlo8E1dNFB5ZZIa1g== | ||
dependencies: | ||
"@azure/abort-controller" "^2.1.2" | ||
"@azure/core-auth" "^1.4.0" | ||
"@azure/core-client" "^1.6.2" | ||
"@azure/core-http-compat" "^2.0.0" | ||
"@azure/core-paging" "^1.1.1" | ||
"@azure/core-rest-pipeline" "^1.10.1" | ||
"@azure/core-tracing" "^1.1.2" | ||
"@azure/core-util" "^1.6.1" | ||
"@azure/core-xml" "^1.4.3" | ||
"@azure/logger" "^1.0.0" | ||
tslib "^2.2.0" | ||
|
||
"@colors/[email protected]", "@colors/colors@^1.6.0": | ||
version "1.6.0" | ||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" | ||
|
This file contains 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.