626 Commits

Author SHA1 Message Date
Montana
39c5f3e00e Add two more tests 2018-10-09 09:34:35 -04:00
dandds
ef75c15b99 small tweaks and test setup for FinancialVerification 2018-10-09 09:34:35 -04:00
richard-dds
74a04b6750 Formatting 2018-10-08 15:24:17 -04:00
richard-dds
d51d5e2ca9 Root url should redirect if user is already logged in 2018-10-08 15:23:13 -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
e06025366a Allow RequestFactory to generate task order 2018-10-08 10:35:36 -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
5ac8bc476c Delete empty test 2018-10-03 09:34:58 -04:00
Patrick Smith
8bb9c1ab8a Add __repr__ to models 2018-10-02 14:14:39 -04:00
Montana
95f3b9d048 Hide Budget Report from admins and developers 2018-10-01 17:15:40 -04:00
Montana
685c0e3658 Make the requirement for dod_id explicit when creating a user 2018-10-01 17:11:36 -04:00
dandds
8a89c519eb on user login, redirect based on next query parameter if available 2018-10-01 16:16:30 -04:00
dandds
8b8d694abd apply destination url path as next parameter to login redirect 2018-10-01 16:16:30 -04:00
dandds
cbcd61c018
Merge pull request #352 from dod-ccpo/hide-pdf-#160757166
hide PDF link when PDF download is not available
2018-10-01 13:26:04 -04:00
montana-mil
388ff899a2
Merge pull request #343 from dod-ccpo/more-tests-for-workspaces
Add more tests for workspaces routes
2018-10-01 13:23:47 -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
dandds
6245ab3f5e hide PDF link when PDF download is not available 2018-09-28 14:21:12 -04:00
Montana
5561bdc44c Fix deprecation warnings 2018-09-28 10:05:20 -04:00
Montana
066ade7f52 Add more tests for workspaces routes 2018-09-28 10:05:20 -04:00
Patrick Smith
a859af9eea Pass in request as jedi_request in request detail template
Fixes the user sessions/daily traffic fields not being shown when they
should be.
2018-09-28 09:48:41 -04:00
Patrick Smith
7d7afebede Update modal content for approval/acceptance 2018-09-28 09:48:41 -04:00
Patrick Smith
a27c1b5712 Set current user for public routes as well 2018-09-26 16:50:43 -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
54af62a58a Test workspace update_member route 2018-09-25 11:13:24 -04:00
Montana
3a978a1673 Fix bugs and write a test 2018-09-25 11:13:24 -04:00
andrewdds
2bbb859ad8
Merge pull request #327 from dod-ccpo/dummy-help-page
Dummy help page
2018-09-25 11:08:56 -04:00
richard-dds
daa41609e1
Merge pull request #324 from dod-ccpo/fix-members-list-screen
Use proper display name for workspace roles
2018-09-25 10:12:57 -04:00
Patrick Smith
5a18536125 Rename internal comment test 2018-09-25 09:45:34 -04:00
Patrick Smith
fafe98756b Show error on page if submitting an empty comment 2018-09-25 09:45:34 -04:00
Patrick Smith
bed03901c2 Allow adding an internal comment on a request 2018-09-25 09:45:34 -04:00
Patrick Smith
0f14eabc44 Allow having multiple internal comments on a request 2018-09-25 09:45:34 -04:00
dandds
dbe1c0ff5b better date range for task order expiration date in test factory 2018-09-25 09:45:34 -04:00
dandds
32a97c29be better fake task order numbers for tests 2018-09-25 09:45:34 -04:00
dandds
1768dea235 formatting and add financial details to requests in seed_sample script 2018-09-25 09:45:34 -04:00
patricksmithdds
6ac19d315d
Merge pull request #323 from dod-ccpo/internal-comments
Hook up internal request comments
2018-09-24 17:53:06 -04:00
dandds
04d03f3c93 fix and refactor test for protected routes 2018-09-24 16:59:08 -04:00
Patrick Smith
0b81ccb254 Rename internal comment test 2018-09-24 15:56:36 -04:00