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

Adding "approval" concepts to Moves, Orders, and PPMs #508

Merged
merged 5 commits into from
May 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 27 additions & 12 deletions docs/schema/dp3.sqs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</location>
<size>
<width>300.00</width>
<height>280.00</height>
<height>300.00</height>
</size>
<zorder>19</zorder>
<SQLField>
Expand Down Expand Up @@ -123,6 +123,11 @@
<type><![CDATA[CHARACTER VARYING(255)]]></type>
<uid><![CDATA[A88EC654-C0AA-4D83-AECE-0FF0F39E7243]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[status]]></name>
<type><![CDATA[TEXT]]></type>
<uid><![CDATA[481E6D30-CC47-4D2B-9D37-7FFAEFAE015E]]></uid>
</SQLField>
<labelWindowIndex><![CDATA[23]]></labelWindowIndex>
<ui.treeExpanded><![CDATA[1]]></ui.treeExpanded>
<uid><![CDATA[018DD725-1E55-4EAB-8FD4-429130A16C59]]></uid>
Expand Down Expand Up @@ -1382,7 +1387,7 @@
</location>
<size>
<width>276.00</width>
<height>260.00</height>
<height>280.00</height>
</size>
<zorder>18</zorder>
<SQLField>
Expand Down Expand Up @@ -1463,6 +1468,11 @@
<type><![CDATA[integer]]></type>
<uid><![CDATA[33ADC06E-692B-4B0F-8958-8708B66FA1B7]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[status]]></name>
<type><![CDATA[TEXT]]></type>
<uid><![CDATA[EED0D417-1A0E-4308-9120-1D735B739607]]></uid>
</SQLField>
<labelWindowIndex><![CDATA[22]]></labelWindowIndex>
<ui.treeExpanded><![CDATA[1]]></ui.treeExpanded>
<uid><![CDATA[46E01A41-38AB-4A8D-9239-A816D2A8E279]]></uid>
Expand Down Expand Up @@ -1553,7 +1563,7 @@
</location>
<size>
<width>273.00</width>
<height>120.00</height>
<height>140.00</height>
</size>
<zorder>20</zorder>
<SQLField>
Expand Down Expand Up @@ -1583,6 +1593,11 @@
<type><![CDATA[character varying(255)]]></type>
<uid><![CDATA[D075227E-3106-4027-B8F8-B12A853929A6]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[status]]></name>
<type><![CDATA[TEXT]]></type>
<uid><![CDATA[6D20F8E5-DF4A-493B-9B6C-18219B20C4B4]]></uid>
</SQLField>
<SQLField>
<name><![CDATA[created_at]]></name>
<type><![CDATA[timestamp without time zone]]></type>
Expand Down Expand Up @@ -2618,7 +2633,7 @@
<name><![CDATA[public.social_security_numbers]]></name>
<schema><![CDATA[public]]></schema>
<location>
<x>554.00</x>
<x>555.00</x>
<y>464.00</y>
</location>
<size>
Expand Down Expand Up @@ -2920,7 +2935,7 @@
<SQLDocumentInfo>
<encodedPrintInfo><![CDATA[BAtzdHJlYW10eXBlZIHoA4QBQISEhAtOU1ByaW50SW5mbwGEhAhOU09iamVjdACFkoSEhBNOU011dGFibGVEaWN0aW9uYXJ5AISEDE5TRGljdGlvbmFyeQCUhAFpDZKEhIQITlNTdHJpbmcBlIQBKw5OU1BNUGFnZUZvcm1hdIaShISEDU5TTXV0YWJsZURhdGEAhIQGTlNEYXRhAJSXgbIbhAdbNzA5MGNdPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VOIiAiaHR0cDovL3d3dy5hcHBsZS5jb20vRFREcy9Qcm9wZXJ0eUxpc3QtMS4wLmR0ZCI+CjxwbGlzdCB2ZXJzaW9uPSIxLjAiPgo8ZGljdD4KCTxrZXk+Y29tLmFwcGxlLnByaW50LlBhZ2VGb3JtY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Z2luhpKEo56oojSGkoSZmQtOU1BhcGVyTmFtZYaShJmZCW5hLWxldHRlcoaShJmZD05TU2NhbGluZ0ZhY3RvcoaShKOeqKIBhoaG]]></encodedPrintInfo>
<autoSizeTablesOption><![CDATA[0]]></autoSizeTablesOption>
<documentScaleFactor><![CDATA[0.496]]></documentScaleFactor>
<documentScaleFactor><![CDATA[1]]></documentScaleFactor>
<exportDialect><![CDATA[postgres]]></exportDialect>
<fileversion><![CDATA[4]]></fileversion>
<generator><![CDATA[com.malcolmhardie.sqleditor]]></generator>
Expand All @@ -2930,17 +2945,17 @@
<overviewPanelHidden><![CDATA[0]]></overviewPanelHidden>
<pageBoundariesVisible><![CDATA[0]]></pageBoundariesVisible>
<PageGridVisible><![CDATA[0]]></PageGridVisible>
<RightSidebarWidth><![CDATA[1148.000000]]></RightSidebarWidth>
<sidebarIndex><![CDATA[5]]></sidebarIndex>
<RightSidebarWidth><![CDATA[1163.000000]]></RightSidebarWidth>
<sidebarIndex><![CDATA[2]]></sidebarIndex>
<snapToGrid><![CDATA[0]]></snapToGrid>
<SourceSidebarWidth><![CDATA[312.000000]]></SourceSidebarWidth>
<SQLEditorFileFormatVersion><![CDATA[4]]></SQLEditorFileFormatVersion>
<uid><![CDATA[2D9326C9-9311-4608-922D-10EEAD4704B1]]></uid>
<windowHeight><![CDATA[832.000000]]></windowHeight>
<windowLocationX><![CDATA[13.000000]]></windowLocationX>
<windowLocationY><![CDATA[45.000000]]></windowLocationY>
<windowScrollOrigin><![CDATA[{340.5, 0}]]></windowScrollOrigin>
<windowWidth><![CDATA[1425.000000]]></windowWidth>
<windowHeight><![CDATA[877.000000]]></windowHeight>
<windowLocationX><![CDATA[0.000000]]></windowLocationX>
<windowLocationY><![CDATA[0.000000]]></windowLocationY>
<windowScrollOrigin><![CDATA[{476.5, 278.5}]]></windowScrollOrigin>
<windowWidth><![CDATA[1440.000000]]></windowWidth>
</SQLDocumentInfo>
<AllowsIndexRenamingOnInsert><![CDATA[1]]></AllowsIndexRenamingOnInsert>
<defaultLabelExpanded><![CDATA[1]]></defaultLabelExpanded>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
drop_column("moves", "status")
drop_column("orders", "status")
drop_column("personally_procured_moves", "status")
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_column("moves", "status", "string", {"default": "DRAFT"})
add_column("orders", "status", "string", {"default": "DRAFT"})
add_column("personally_procured_moves", "status", "string", {"default": "DRAFT"})
76 changes: 76 additions & 0 deletions swagger/internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ definitions:
type: string
title: Estimated Incentive
x-nullable: true
status:
$ref: '#/definitions/PPMStatus'
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -322,6 +324,8 @@ definitions:
example: c56a4180-65aa-42ec-a945-5fd21dec0538
selected_move_type:
$ref: '#/definitions/SelectedMoveType'
status:
$ref: '#/definitions/MoveStatus'
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -1139,6 +1143,45 @@ definitions:
- city
- state
- postal_code
MoveStatus:
type: string
title: Move status
enum:
- DRAFT
- SUBMITTED
- APPROVED
- COMPLETED
x-display-value:
DRAFT: Draft
SUBMITTED: Submitted
APPROVED: Approved
COMPLETED: Completed
PPMStatus:
type: string
title: Move status
enum:
- DRAFT
- SUBMITTED
- APPROVED
- IN_PROGRESS
- COMPLETED
x-display-value:
DRAFT: Draft
SUBMITTED: Submitted
APPROVED: Approved
IN_PROGRESS: In Progress
COMPLETED: Completed
OrdersStatus:
type: string
title: Move status
enum:
- DRAFT
- SUBMITTED
- APPROVED
x-display-value:
DRAFT: Draft
SUBMITTED: Submitted
APPROVED: Approved
OrdersType:
type: string
title: Orders type
Expand Down Expand Up @@ -1202,6 +1245,8 @@ definitions:
format: date
example: "2018-04-26"
title: Report-by date
orders_status:
$ref: '#/definitions/OrdersStatus'
orders_type:
$ref: "#/definitions/OrdersType"
orders_type_detail:
Expand Down Expand Up @@ -2050,6 +2095,37 @@ paths:
description: move not found
500:
description: internal server error
/moves/{moveId}/approve:
post:
summary: Approves a move to proceed
description: Approves the basic details of a move. The status of the move will be updated to APPROVED
operationId: approveMove
tags:
- office
parameters:
- name: moveId
in: path
type: string
format: uuid
required: true
description: UUID of the move
responses:
200:
description: returns updated (approved) move object
schema:
$ref: '#/definitions/MovePayload'
400:
description: invalid request
401:
description: must be authenticated to use this endpoint
403:
description: not authorized to approve this move
409:
description: the move is not in a state to be approved
schema:
$ref: '#/definitions/MovePayload'
500:
description: server error
/documents:
post:
summary: Create a new document
Expand Down