126 Commits

Author SHA1 Message Date
leigh-mil
5c54c043c0 Add route for applications.revoke_invite 2019-09-26 09:46:23 -04:00
richard-dds
79c8e4fc63
Merge pull request #1062 from dod-ccpo/env-provisioning-task
Environment provisioning background jobs
2019-09-16 09:58:18 -04:00
graham-dds
2af0a2ecaf Update existing tests for new CLIN logic
- Factory adds total_amount field, which is always greater than obligated
field
- add total_amount field on tests that create TOs manually
- update tests that calculate total_contract_amount and
total_obligated_amount
2019-09-12 16:11:12 -04:00
graham-dds
f3eea39536 Add "total amount" to CLINS
- includes migration for change to model
2019-09-12 16:11:10 -04:00
richard-dds
6b7db2ca46 Better ergonomics for creating factory portfolios w/ TOs 2019-09-11 11:43:06 -04:00
richard-dds
f6cb6f2a31 Change Environment.creator relation from ApplicationRole to User 2019-09-11 11:42:59 -04:00
graham-dds
38ba8b7e5f LOAs are so out of this codebase 2019-08-30 09:57:23 -05:00
richard-dds
3d414e1a60 Fix TO upload tests 2019-08-05 14:58:10 -04:00
leigh-mil
299804ade2 Check to make sure clins complete as part of checking if TO is complete 2019-07-29 15:50:50 -04:00
George Drummond
14b3e3f933
LazyFunction in CLINFactory 2019-06-12 14:10:12 -04:00
George Drummond
9edf816765
More realistic seeds 2019-06-12 11:41:40 -04:00
richard-dds
40b599d1d0 Fix rebase conflicts 2019-06-10 15:33:30 -04:00
richard-dds
0f4d17a94a Implemen TaskOrder.is_completed 2019-06-10 15:15:39 -04:00
richard-dds
7b8ccbf145 Implement TO start_date and end_date 2019-06-10 15:15:08 -04:00
richard-dds
898f63a2f5 Fix CLINFactory 2019-06-10 15:15:08 -04:00
leigh-mil
36200e01ad Create CLINs when creating a TO 2019-06-10 12:29:54 -04:00
Montana
f462c3bd5e Add unit tests 2019-06-05 09:40:33 -04:00
George Drummond
f7562714cb
Add New Portfolio Workflow 2019-06-04 13:10:42 -04:00
leigh-mil
1784318e0e Update seed_sample with new TO info 2019-05-31 13:07:03 -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
richard-dds
a6c5f484b9 Add NotificationSender, one test 2019-05-15 14:57:46 -04:00
dandds
054f6b80b9 add application_invitation table 2019-04-30 14:41:55 -04:00
dandds
c4ad7b4378 Make portfolio invitation specific to portfolio
- add a base domain class
- extract shared model code to mixin
- rename invitation classes
- invitation model relationship to portfolio_role name is now more
  generic "role"
2019-04-30 14:41:55 -04:00
leigh-mil
c085f27af8 Update env roles by environment 2019-04-25 10:47:39 -04:00
leigh-mil
fbd9c9db66 Create form in view route for application settings 2019-04-25 10:47:39 -04:00
dandds
1c0c5dd9c5 soft deletes available for applications and environments
- parent relation will not include applications or environments marked
  as deleted
- domain classes will exclude deleted objects from selections
- changed some test factories to use domain_word for resource names,
  because they were using person names and it bugged me
2019-04-15 15:58:38 -04:00
dandds
9c10a14827 update authorization decorator to check for application permissions 2019-04-08 13:31:19 -04:00
dandds
866043495b updates to test factories to accomodate application roles 2019-04-08 13:31:19 -04:00
dandds
bec5d11bfe users have permission sets for site-wide perms 2019-03-21 05:38:28 -04:00
dandds
ad56ddc60e implement PermissionSets.get_many for getting multiple permission sets by name 2019-03-15 07:14:49 -04:00
dandds
ee37a5543a organize portfolio permission sets by domain 2019-03-15 07:14:49 -04:00
dandds
d3c3209fc0 cleanup unused portfolio roles 2019-03-15 07:14:49 -04:00
dandds
1a122c5335 rename role -> permission_set everywhere 2019-03-15 07:14:49 -04:00
dandds
0c2ab6fb7a remove portfolio_role direct relationship to role 2019-03-15 07:14:49 -04:00
dandds
44a4d98978 switch portfolio authorization to rely on new permission sets 2019-03-15 07:14:49 -04:00
Montana
7ee8858cc7 Add defense_component to Portfolio when new task_order is created without an existing portfolio 2019-02-26 11:29:16 -05:00
Patrick Smith
2d03111a9d Remove legacy task order model 2019-02-25 14:54:14 -05:00
Patrick Smith
75f9b57979 Remove PE number model 2019-02-25 14:54:14 -05:00
Patrick Smith
2c62f54b83 Remove request-related models 2019-02-25 14:54:14 -05:00
dandds
41e715a404 use full prefix for certifying official in SO review 2019-02-20 11:37:49 -05:00
dandds
ad05c448cd DD-254 domain class and method for checking if DD-254 is complete 2019-02-20 10:52:15 -05:00
leigh-mil
11ba4807c4 Use LazyFunction to return unique data 2019-01-23 16:57:56 -05:00
Patrick Smith
f580f69d35 Raise error if csp estimate is not of proper type 2019-01-23 11:16:54 -05:00
leigh-mil
bf302a8800 Use choice() instead of choices() so a string is returned 2019-01-16 11:03:59 -05:00
Patrick Smith
e41f01398c Update seed sample to create multiple task orders for each portfolio 2019-01-15 11:16:40 -05:00
Patrick Smith
8f8e7fa65e Add active & expired task order statuses 2019-01-15 10:51:00 -05:00
dandds
0eec42c55b change constant names 2019-01-14 16:00:17 -05:00
dandds
d3d36822df workspace -> portfolio everywhere 2019-01-14 16:00:17 -05:00
dandds
3fc323d785 project -> application everywhere 2019-01-14 16:00:17 -05:00