-
Notifications
You must be signed in to change notification settings - Fork 1
#171: Refactor Submission Record data access layer for new schema #209
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
Changes from 16 commits
34acebc
9baedba
54bd443
f302376
59076b4
430e989
4a94d8f
bd93529
aa765ad
5679af7
3431f4b
61e6dd4
31d9020
c8c98b6
9bbde93
9342c16
b809f03
5bfd1a2
8868970
9b351b6
3ab1534
38fdf50
d34774e
563881f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ | |
|
|
||
| /submission/{submissionId}/details: | ||
| get: | ||
| summary: Fetch Submission Data records. Sorted in their original file order and grouped by `inserts`, `updates`, and `deletes`. | ||
| summary: Fetch Submission Data records. Sorted in their original file order and grouped by `insert`, `update`, and `delete`. | ||
| tags: | ||
| - Submission | ||
| parameters: | ||
|
|
@@ -67,9 +67,9 @@ | |
| type: array | ||
| items: | ||
| type: string | ||
| enum: [inserts, updates, deletes] | ||
| enum: [insert, update, delete] | ||
| uniqueItems: true | ||
| description: Filters the Submission Data records by action type. Valid values are `inserts`, `updates`, and `deletes` (case insensitive). If not provided, all action types are returned. | ||
| description: Filters the Submission Data records by action type. Valid values are `insert`, `update`, and `delete` (case insensitive). If not provided, all action types are returned. | ||
| - name: entityNames | ||
| in: query | ||
| schema: | ||
|
|
@@ -98,7 +98,7 @@ | |
| 503: | ||
| $ref: '#/components/responses/ServiceUnavailableError' | ||
|
|
||
| /submission/{submissionId}/{actionType}: | ||
| /submission/{submissionId}/data: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. renamed this endpoint to |
||
| delete: | ||
| summary: Clear Active Submission by entity name | ||
| tags: | ||
|
|
@@ -109,24 +109,18 @@ | |
| type: string | ||
| required: true | ||
| description: The ID of the Submission | ||
| - name: actionType | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| enum: [inserts, updates, deletes] | ||
| description: Parameter to specify the type of record to remove from the Submission. Must be one of `inserts`, `updates`, or `deletes` (case insensitive) | ||
| - name: entityName | ||
| - name: recordId | ||
| in: query | ||
| type: string | ||
| required: true | ||
| description: The name of the entity | ||
| - name: index | ||
| required: false | ||
| schema: | ||
| type: integer | ||
| description: An optional query parameter used to specify the record ID within the submission to be deleted. <br />Only one of `recordId` or `fileId` can be provided | ||
| - name: fileId | ||
| in: query | ||
| required: false | ||
| schema: | ||
| type: integer | ||
| description: An optional query parameter used to specify the index of the item within the submission type to be deleted. <br />If not provided all the items within the submission type will be deleted. | ||
| description: An optional query parameter used to specify the file ID within the submission to be deleted. <br />Only one of `recordId` or `fileId` can be provided | ||
| responses: | ||
| 200: | ||
| description: Submission cleared successfully. Returns the current Active Submission | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ALTER TABLE "submissions" DROP COLUMN IF EXISTS "data";--> statement-breakpoint | ||
| ALTER TABLE "submissions" DROP COLUMN IF EXISTS "errors"; | ||
|
Comment on lines
+1
to
+2
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removing data and errors column from submission table, this PR assumes the SQL script migration (0016) moved all submissions data into it's own separate table |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the values of this query param to be consistent through all the application