491 Commits

Author SHA1 Message Date
richard-dds
3d414e1a60 Fix TO upload tests 2019-08-05 14:58:10 -04:00
leigh-mil
c9451e0f93 Update tests to use proper route
Pass portfolio and creator to TOFactory so user has perms to edit TO
2019-07-30 15:26:07 -04:00
richard-dds
43ed257f10 Future proof edit route 2019-07-30 14:07:04 -04:00
richard-dds
136b97b23f Use new edit route 2019-07-30 14:06:40 -04:00
richard-dds
ce6b526da1 Add task order /edit route 2019-07-30 13:54:47 -04:00
leigh-mil
b3515bb14d Reorder tests so that tests for each step are grouped together 2019-07-18 13:33:37 -04:00
leigh-mil
e3dfd18c7f Raise error if TO review or signature page are accessed when the TO is incomplete 2019-07-18 13:33:37 -04:00
leigh-mil
dc3f9a8c1c Update route to include form so it is clear what step refers to
Move submit route into the same file and the other form steps
2019-07-18 10:31:45 -04:00
leigh-mil
4826e8002b Rename route functions to be clearer 2019-07-18 10:31:45 -04:00
leigh-mil
e3c6b08d34 Remove old task order edit and update routes 2019-07-18 10:31:45 -04:00
leigh-mil
b9e14f8719 Add route and template for signature confirmation 2019-07-18 10:31:45 -04:00
leigh-mil
68e0d261f6 Add review route and template 2019-07-18 10:31:45 -04:00
leigh-mil
b2db53096f Rename routes 2019-07-18 10:31:45 -04:00
leigh-mil
7ebe84a9cb Add step 3 route and template 2019-07-18 10:31:45 -04:00
leigh-mil
6ab3e24883 Add second step 2019-07-18 10:31:45 -04:00
leigh-mil
45390835ed Add routes for first step of TO builder 2019-07-18 10:31:45 -04:00
leigh-mil
a0f6d98d28 Remove more unnecesary tests 2019-06-20 14:28:56 -04:00
leigh-mil
f76d67dddb update comment 2019-06-20 14:28:56 -04:00
leigh-mil
c1383e1ec7 Delete unneeded tests 2019-06-20 14:28:56 -04:00
dandds
0fbc2ea270 Redirect user to TO edit page when they save incomplete state. 2019-06-19 12:10:48 -04:00
dandds
3c5df7b1aa Some environments might not have associated users.
There was a bug in the application settings route that threw an error if
an environment role and its associated application role did not have an
associated user. Updated to check for the user name on the application role.
2019-06-19 10:12:01 -04:00
George Drummond
d672f5792c
Save as draft 2019-06-18 14:11:55 -04:00
leigh-mil
4e46827335 Remove nesting from route when not needed 2019-06-12 15:30:25 -04:00
dandds
30b93d1c50 Remove unused TO code. 2019-06-12 14:27:36 -04:00
dandds
b63da3ad54
Merge pull request #886 from dod-ccpo/upload-fixes
Upload fixes
2019-06-12 11:21:40 -04:00
dandds
06f4aeb74d
Merge pull request #880 from dod-ccpo/to-review-modal
TO Review Submit Modal
2019-06-11 13:10:17 -04:00
Montana
8446a79a9a Sign TO in post route 2019-06-11 12:06:11 -04:00
George Drummond
cad43af455
Portfolio archiving 2019-06-11 11:30:37 -04:00
dandds
0e89a55c07 Display and overwrite task order uploads correctly.
- Populate the POSTed form with additional data from the existing TO
  model. This way the pdf attachment has to be explicitly overwritten.
- Adjust the frontend so that if there is an existing PDF, it only sends
  a file input back if the user removes the existing PDF.
2019-06-11 09:58:32 -04:00
Montana
33248daa6b Add route tests 2019-06-11 09:31:08 -04:00
richard-dds
30ef2a67ef Fix bug in application member deletion 2019-06-10 16:43:47 -04:00
richard-dds
40b599d1d0 Fix rebase conflicts 2019-06-10 15:33:30 -04:00
richard-dds
fd159a2d80 Remove start_time assertion 2019-06-10 15:15:39 -04:00
leigh-mil
36200e01ad Create CLINs when creating a TO 2019-06-10 12:29:54 -04:00
leigh-mil
633e1b6a37 Update TO Form to include CLINs and LOAs 2019-06-10 12:29:54 -04:00
dandds
b0f47bc3ff Backend handling for task order upload
- Move task_orders.edit rendering to function
- Construct task_orders.update form route correctly in template
2019-06-06 13:57:07 -04:00
richard-dds
e6d103a345 Remove a test 2019-06-05 15:37:41 -04:00
dandds
fa50c01e48 New backend flow for application invitations.
Like portfolio invitations, now a user is not associated with an
application role until they accept the associated invitation.
- domain method for inviting user to application
- change application route for inviting a member
- ApplicationRole model knows user name from invitation
2019-06-05 15:02:22 -04:00
leigh-mil
b97ae02a93 Combine similar routes and templates, delete unused TO form templates 2019-06-05 12:58:33 -04:00
leigh-mil
0a2d241dc4 Add validator to TO number input and add cancel button to form 2019-06-05 12:58:33 -04:00
leigh-mil
e7771f789b Start TO form template 2019-06-05 12:58:33 -04:00
leigh-mil
91e41199b7 Update TO form based on new model 2019-06-05 12:58:33 -04:00
richard-dds
783281fade
Merge pull request #853 from dod-ccpo/nav-changes
Portfolio navigation changes
2019-06-04 15:29:29 -04:00
richard-dds
0920d0bf81 Fix test 2019-06-04 14:12:53 -04:00
George Drummond
f7562714cb
Add New Portfolio Workflow 2019-06-04 13:10:42 -04:00
dandds
4f8e9cddc8 Merge portfolio members routes with invitations.
`portfolios.create_member` now just sends an invitation, so it should be
with the invitation routes. This also de-duplicates the function for
sending a portfolio invitation email.
2019-06-03 15:57:49 -04:00
dandds
c085db23d7 New invitation backend for portfolio invitations.
Portfolio invitations do not associate a user entity until the
invitation has been accepted. User info, including DOD ID, is held on
the invitation itself. When a user accepts and invitation, their user
entry is associated with the corresponding `portfolio_role` entry.

The same change will be applied to `application_role` and application
invitations. For now, small changes have been made to
application-related methods so that that flow works as-is.
2019-06-03 15:57:49 -04:00
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -04:00
dandds
df06d1b62f Use application_role_id on environment_roles.
In the future, an `application_invitation1 will not refer to a `user` until
someone accepts the invitation; they'll only reference an
`application_role`. When a user is invited to an application, the
inviter can specify the environments the invitee should have access to.
For this to be possible, an `environment_role` should reference an
`application_role`, because no `user` entity will be known at that time.

In addition to updating all the models and domain methods necessary for
this change, this commit deletes unused code and tests that were
dependent on `environment_roles` having a `user_id` foreign key.
2019-05-31 11:21:20 -04:00
George Drummond
83adf1295c
/home no longer redirects and has add portfolio button 2019-05-30 09:33:33 -04:00