133 Commits

Author SHA1 Message Date
dandds
c4b7fdc015
Merge pull request #350 from dod-ccpo/coverage-#160694116
Coverage #160694116
2018-10-15 09:04:47 -04:00
richard-dds
76854acf81
Merge pull request #376 from dod-ccpo/auth-patterns
Standardize auth patterns
2018-10-09 11:06:22 -04:00
dandds
d9d7917dd8 ignore dev routes for tests coverage and add placeholders for reports 2018-10-09 10:55:21 -04:00
dandds
12307769d4 rerun formatter for pretty 3.6.6 numbers 2018-10-09 10:55:21 -04:00
montana-mil
4e24666f16
Merge pull request #377 from dod-ccpo/email-not-unique
Handle AlreadyExistsError on user creation with non-unique email
2018-10-09 10:24:24 -04:00
richard-dds
7a800507dd Remove duplicate test 2018-10-08 14:47:45 -04:00
richard-dds
2568387902 Add tests for RequestsAuthorization 2018-10-08 12:05:15 -04:00
richard-dds
fcc1caca1c Move Request-specific auth checks into requests.authorization 2018-10-08 12:05:15 -04:00
richard-dds
7a23b09676 Formatting 2018-10-08 11:40:15 -04:00
richard-dds
7df8d3bfa4 Replace setup with WorkspaceFactory 2018-10-08 10:44:38 -04:00
Montana
3c95063293 Handle AlreadyExistsError on user creation with non-unique email 2018-10-08 10:36:40 -04:00
richard-dds
40557a5494 Merge SuperFactories into Factories, overriding _create 2018-10-08 10:36:02 -04:00
richard-dds
9061c3515c Refactor test_update_environment_roles 2018-10-07 11:52:28 -04:00
richard-dds
e383ee533a Super factories! 2018-10-05 16:48:12 -04:00
Montana
55394b65db Use workspace permissions to limit project viewability 2018-10-04 14:24:35 -04:00
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