118 Commits

Author SHA1 Message Date
Montana
685c0e3658 Make the requirement for dod_id explicit when creating a user 2018-10-01 17:11:36 -04:00
Patrick Smith
7b2a099ef3 Filter environments for user with given project id
Previously, calling `Environment.for_user(user, project)` would return
environments a user has access to across all projects. Now, we will only
return the relevant environements. This was the cause of a visual bug
where extra environments were shown in the project list.
2018-09-30 22:06:10 -04:00
richard-dds
885b2da308 Remove workspaces.name unique constraint
- Added some random indexes
- Fixed audit_events.request_id foreign key constraint
2018-09-26 10:23:54 -04:00
richard-dds
c9c387b06d Don't explicitly add project creator to environments 2018-09-25 15:54:57 -04:00
richard-dds
b65fdd56a0 Fix regression in Projects.create
A new project's creator was not being assigned a role in the project's
environments.
2018-09-25 14:07:15 -04:00
richard-dds
22f02f604f Add test which ensures that CCPO can view the audit log 2018-09-25 13:09:54 -04:00
richard-dds
ddc2e2fad7 Automatic audit logging using SQLA events 2018-09-25 13:09:54 -04:00
Montana
18776aa71c Fix tests 2018-09-25 11:13:24 -04:00
Montana
3a978a1673 Fix bugs and write a test 2018-09-25 11:13:24 -04:00
Patrick Smith
99a745904f Allow having multiple internal comments on a request 2018-09-24 13:52:50 -04:00
richard-dds
18bc8afeb7 Formatting 2018-09-21 14:00:01 -04:00
richard-dds
519b5caa4c Fix tests that were broken by new constraints 2018-09-21 14:00:01 -04:00
dandds
8fc5a4a092 show request name where appropriate and set as default workspace name 2018-09-19 10:44:21 -04:00
dandds
ca8b9028bc reports shows real budget information for total spend 2018-09-18 16:04:03 -04:00
dandds
bba2a2b283 restrict workspace information updates to owner and admins 2018-09-17 13:30:25 -04:00
dandds
021871ec16 route, form, and domain methods for updating workspace name 2018-09-17 11:40:58 -04:00
richard-dds
e35c60aa67 Factor out queries 2018-09-12 22:04:25 -04:00
richard-dds
5ab1ce9cdc Clean up workspaces tests 2018-09-12 21:25:48 -04:00
richard-dds
e997c5cedd Allow CCPO to view workspaces 2018-09-12 11:13:06 -04:00
richard-dds
0ddbeaf176 Domain method for adding an internal comment 2018-09-11 16:41:09 -04:00
dandds
6859d562d6 requests domain method for rejecting request with appropriate status 2018-09-11 13:27:15 -04:00
dandds
68a32e0a08 requests domain method for advancing a request to the next stage 2018-09-11 11:20:59 -04:00
richard-dds
6a8cbcf1c2
Merge pull request #264 from dod-ccpo/view-pe-as-workspace-user
View projects and environments as a workspace user
2018-09-11 10:16:18 -04:00
richard-dds
607effcd1e Rename and comment test for clarity 2018-09-10 23:36:21 -04:00
dandds
d38261f439 associate ccpo user to request review 2018-09-10 16:42:42 -04:00
richard-dds
79ba272f70 Check workspace permissions, not project 2018-09-10 14:01:36 -04:00
richard-dds
7126670d56 Formatting 2018-09-10 13:46:40 -04:00
richard-dds
eb99e72659 Create Projects.for_user and Environments.for_user 2018-09-10 13:42:24 -04:00
richard-dds
996596f2b3 Automatically assign workspace owner to environments 2018-09-10 13:35:16 -04:00
dandds
ebac93bc23 run reformatter 2018-09-10 11:22:59 -04:00
dandds
24cbb90ce2 ccpo can request changes on a request 2018-09-10 11:17:47 -04:00
dandds
c4e9971206 distinguish final CCPO approval from acceptance of initial request 2018-09-10 10:29:04 -04:00
dandds
14d03e7e66 requests domain can approve a request for financial verification 2018-09-10 10:29:04 -04:00
richard-dds
b2717ca62c Add additional test 2018-09-06 16:21:24 -04:00
richard-dds
549e4d6263 Use Workspaces.get_with_members 2018-09-06 16:21:24 -04:00
Montana
6444325f42 Update test for updating user role 2018-09-05 15:13:08 -04:00
Montana
8faed87e00 Update workspace role in the DB, add tests 2018-09-05 14:16:20 -04:00
dandds
1e0523ebf6 new request statues events should be associated with latest revision 2018-09-04 16:15:36 -04:00
dandds
59fdad8554 use regular WTForms DateField for requests dates 2018-09-04 16:15:36 -04:00
dandds
cc7ddd9468 update to use request revisions 2018-09-04 16:14:53 -04:00
richard-dds
3af630e4dd Return pendulum instance from last_submission_timestamp 2018-09-04 13:09:27 -04:00
richard-dds
6af50b78b0 Implement Request.last_submission_date 2018-09-04 12:47:17 -04:00
richard-dds
c78aac2dea Formatting 2018-08-31 13:25:14 -04:00
richard-dds
a7678cad12 New domain method for adding workspace user 2018-08-31 13:25:14 -04:00
Patrick Smith
6bfc7f77bc Add test for new Authorization check 2018-08-30 14:45:39 -04:00
Patrick Smith
d785f19b5b Enforce authorization when getting a request 2018-08-30 14:45:39 -04:00
Montana
be080ed205 Add new filter for rendering FileStorage name in case of invalid financial form submission 2018-08-27 14:22:44 -04:00
Montana
6df897191c Test that the pdf is attached 2018-08-27 13:08:05 -04:00
Montana
4f9e7c3408 Fix tests, add financial verification data fixture 2018-08-27 13:07:14 -04:00
dandds
43f1866783 record invalid task order number on the request body 2018-08-27 09:29:40 -04:00