graham-dds
156d733aee
Add missing regex and validation for StringFields
...
This commit adds further validation for StringFields that were missing
it. This mostly amounted to being Regex patters and max lengths.
2020-01-22 15:20:18 -05:00
tomdds
d81d953c31
Fix formatting and some typos
2020-01-14 16:36:16 -05:00
Philip Kalinsky
69bd2f43a5
provision portfolio state machine
2020-01-14 16:36:16 -05:00
leigh-mil
17864cc060
Add migration to change environment_roles role column from string to
...
enum type.
Fix tests and functions affected by the column type change.
2020-01-14 13:12:29 -05:00
leigh-mil
8710028256
Fix factories and seed sample script
...
Update display of defense component on portfolio settings page
2020-01-06 13:08:57 -05:00
graham-dds
a097a0ce61
Refactor New Portfolio page according to designs.
...
New designs call for a streamlined New Portfolio page, with far
fewer input options. This commit refactors that page according to those
designs.
Some of the route functions in this commit refer to a "step 1" of creating
a new Portfolio. Though there is no "step 2" right now, the designs call
for a multistep flow for Portfolio creation process, so this commit sets
the stage for that.
2019-12-13 13:17:30 -05:00
leigh-mil
614514d6a2
Update tables to match business logic
2019-12-02 14:46:11 -05:00
graham-dds
d4cc887f80
add signed_at field to TaskOrderFactory
2019-11-25 13:12:34 -05:00
leigh-mil
ef12701dbb
Default creating an invite in the AppliationRoleFactory to True and fix tests
2019-11-20 12:09:46 -05:00
leigh-mil
9f90f5abbd
Update app member status labels to accurately reflect member's current status
2019-11-20 11:59:48 -05:00
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