-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: permission check for approve Agreement page (#2846)
* feat: permission check * feat: adds division_id to CAN prop * docs: fixes openapi issues * feat: adds feature-flag
- Loading branch information
Showing
10 changed files
with
197 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.cwd": "./backend/ops_api", | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
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 |
---|---|---|
|
@@ -227,11 +227,11 @@ paths: | |
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "#/components/schemas/CreateCANRequestSchema" | ||
examples: | ||
"0": | ||
$ref: "#/components/examples/CreateCANRequestSchema" | ||
schema: | ||
$ref: "#/components/schemas/CreateUpdateCANRequestSchema" | ||
examples: | ||
"0": | ||
$ref: "#/components/examples/CreateUpdateCANRequestSchema" | ||
responses: | ||
"201": | ||
description: Created | ||
|
@@ -440,7 +440,7 @@ paths: | |
application/json: | ||
schema: | ||
type: array | ||
properties: { } | ||
properties: {} | ||
items: | ||
type: string | ||
examples: | ||
|
@@ -619,7 +619,7 @@ paths: | |
type: integer | ||
first_name: | ||
type: string | ||
updated: { } | ||
updated: {} | ||
email: | ||
type: string | ||
examples: | ||
|
@@ -2058,7 +2058,11 @@ components: | |
type: string | ||
id: | ||
type: integer | ||
CreateCANRequestSchema: | ||
required: | ||
- number | ||
- portfolio_id | ||
- id | ||
CreateUpdateCANRequestSchema: | ||
description: The request object for creating a new Common Accounting Number (CAN) object. | ||
properties: | ||
nick_name: | ||
|
@@ -2069,6 +2073,8 @@ components: | |
type: string | ||
portfolio_id: | ||
type: integer | ||
funding_details_id: | ||
type: integer | ||
required: | ||
- number | ||
- portfolio_id | ||
|
@@ -2097,7 +2103,7 @@ components: | |
funding_received: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/FundingReceived" | ||
$ref: "#/components/schemas/FundingReceived" | ||
number: | ||
type: string | ||
portfolio: | ||
|
@@ -2559,16 +2565,8 @@ components: | |
type: object | ||
example: | ||
[ | ||
{ | ||
"id": 1, | ||
"full_name": "Chris Fortunato", | ||
"email": "[email protected]", | ||
}, | ||
{ | ||
"id": 2, | ||
"full_name": "Amy Madigan", | ||
"email": "[email protected]", | ||
}, | ||
{ "id": 1, "full_name": "Chris Fortunato", "email": "[email protected]" }, | ||
{ "id": 2, "full_name": "Amy Madigan", "email": "[email protected]" }, | ||
{ | ||
"id": 3, | ||
"full_name": "Ivelisse Martinez-Beck", | ||
|
@@ -2740,6 +2738,9 @@ components: | |
can_id: | ||
type: integer | ||
example: 1 | ||
can: | ||
type: object | ||
$ref: "#/components/schemas/BudgetLineItemCAN" | ||
comments: | ||
type: string | ||
date_needed: | ||
|
@@ -2765,16 +2766,8 @@ components: | |
type: object | ||
example: | ||
[ | ||
{ | ||
"id": 1, | ||
"full_name": "Chris Fortunato", | ||
"email": "[email protected]", | ||
}, | ||
{ | ||
"id": 2, | ||
"full_name": "Amy Madigan", | ||
"email": "[email protected]", | ||
}, | ||
{ "id": 1, "full_name": "Chris Fortunato", "email": "[email protected]" }, | ||
{ "id": 2, "full_name": "Amy Madigan", "email": "[email protected]" }, | ||
{ | ||
"id": 3, | ||
"full_name": "Ivelisse Martinez-Beck", | ||
|
@@ -2805,6 +2798,37 @@ components: | |
description: optional notes added to a Change Request when a PATCH is made that creates a CR | ||
type: string | ||
writeOnly: true | ||
BudgetLineItemCAN: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
example: 1 | ||
portfolio: | ||
type: object | ||
$ref: "#/components/schemas/PortfolioBLISchema" | ||
portfolio_id: | ||
type: integer | ||
example: 1 | ||
display_name: | ||
type: string | ||
nick_name: | ||
type: string | ||
number: | ||
type: string | ||
description: | ||
type: string | ||
active_period: | ||
type: integer | ||
expiration_date: | ||
type: integer | ||
appropriation_date: | ||
type: integer | ||
PortfolioBLISchema: | ||
type: object | ||
properties: | ||
division_id: | ||
type: integer | ||
BudgetLineItemRequest: | ||
type: object | ||
properties: | ||
|
@@ -2929,7 +2953,7 @@ components: | |
type: array | ||
items: | ||
type: object | ||
example: [ { "id": 1 }, { "id": 2 }, { "id": 3 } ] | ||
example: [{ "id": 1 }, { "id": 2 }, { "id": 3 }] | ||
|
||
required: | ||
- title | ||
|
@@ -3248,7 +3272,8 @@ components: | |
document_name: | ||
type: string | ||
document_size: | ||
type: number(10, 2) | ||
type: number | ||
description: precision number with 10 digits and 2 decimal places | ||
status: | ||
type: string | ||
created_on: | ||
|
@@ -3623,7 +3648,7 @@ components: | |
"updated_by": 1 | ||
} | ||
] | ||
CreateCanRequestSchema: | ||
CreateUpdateCANRequestSchema: | ||
value: | | ||
{ | ||
nick_name: "Very Good CAN", | ||
|
@@ -3636,4 +3661,4 @@ components: | |
[ | ||
] | ||
security: | ||
- bearerAuth: [ ] | ||
- bearerAuth: [] |
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
Oops, something went wrong.