161 Commits

Author SHA1 Message Date
leigh-mil
c60e1a29f6 Add CLIN table 2019-05-31 14:49:39 -04:00
leigh-mil
fbfb04d763 Update task order table and remove dd254 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
a56d9c9ca8 Fix migration path 2019-05-28 10:50:38 -04:00
richard-dds
7aa238c59f Remove last_session_id server_default 2019-05-28 10:45:36 -04:00
richard-dds
9291ea497c Fix migration path 2019-05-28 10:45:12 -04:00
richard-dds
e037c81338 Only allow one session 2019-05-28 10:44:40 -04:00
leigh-mil
b3ecd1658c Add application_id column to AuditEvent
Use application_id and portfolio_id if the resource is a portfolio in AuditableMixin
Clean up some residual references to workspace
2019-05-22 13:08:44 -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
Montana
89b5bfdef5 User no longer has unique email 2019-04-17 11:06:10 -04:00
dandds
0bde431a70 extend soft delete functionality to app and env roles 2019-04-15 15:58:38 -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
f1bd1eea7e add application role model 2019-04-08 13:31:19 -04:00
leigh-mil
dec3a0eb48 Migration for last_login column 2019-04-03 12:24:02 -04:00
dandds
bec5d11bfe users have permission sets for site-wide perms 2019-03-21 05:38:28 -04:00
dandds
0a2e5607b9 fix migration downgrades 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
31bcb662b5 add join table between portfolio_roles and roles 2019-03-15 07:14:49 -04:00
leigh-mil
8b0a11b005 Fix migration chain after rebase 2019-03-01 11:05:37 -05:00
leigh-mil
9f47f54751 Fix migration and tests after rebase 2019-03-01 11:02:16 -05:00
leigh-mil
c5e012e521 Fix migration so it will downgrade 2019-03-01 11:02:16 -05:00
leigh-mil
113cc5c0a4 Update migrations after rebase 2019-03-01 11:02:16 -05:00
leigh-mil
f1b9bf19a7 Update migration order and change loa to loas 2019-03-01 11:02:15 -05:00
leigh-mil
070ccec23f Add migration for LOA array type 2019-03-01 11:02:15 -05:00
George Drummond
b2ea53f2eb
Fix down migration 2019-03-01 10:28:52 -05:00
George Drummond
d6b9ce62da
Add in default False for unlimited_level_of_warrant 2019-02-28 14:01:28 -05:00
George Drummond
17c175b698
Invite Officer From Manage Invitations Page 2019-02-28 11:44:07 -05:00
Montana
f739d2d20f Update migration pointer to account for rebase 2019-02-26 11:34:53 -05:00
Montana
f8a6d04d64 Move defense_component to portfolios model 2019-02-26 11:22:24 -05:00
Patrick Smith
9594e02562 Re-order migration so downgrade/upgrade work correctly 2019-02-25 15:36:12 -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
2e0ae917ff Add migration to remove request tables 2019-02-25 14:54:14 -05:00
Patrick Smith
e2692bf647 Add migration for missing indexes
A couple of us have generated migrations and these indexes are
automatically added. Rather than removing them for each migration, let's
make it official.
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
bfcee47db6 added dd-254 model 2019-02-20 10:52:15 -05:00
George Drummond
f4612f5165
Fix migration 2019-02-12 10:16:52 -05:00
George Drummond
15e75faa39
Add in columns and fix migration 2019-02-12 10:07:41 -05:00
George Drummond
8689748d10
Add in basic implementation of the KO TO signature page 2019-02-12 10:06:57 -05:00
dandds
44cf360687 display status as pending for officer invites awaiting TO completion 2019-02-11 15:13:36 -05:00
dandds
a85487a2d1 send officer invitations when MO completes TO form 2019-02-11 15:13:36 -05:00
Montana
b5e6e67212 Add names to foreign keys on latest migration 2019-02-07 13:24:02 -05:00
Montana
ce2b4b6ea1 Add pdf column and uploader 2019-02-07 11:27:03 -05:00
Montana
40780bf244 Migration to add custom_clauses to TO; form fixes 2019-02-05 10:49:51 -05:00
Patrick Smith
c8174bdc10 Remove TaskOrder.status column from database 2019-01-15 10:36:25 -05:00
dandds
cfe454be40 cleanup from rebase 2019-01-14 16:00:17 -05:00
dandds
372dac306f update workspace and project table names 2019-01-14 16:00:17 -05:00
dandds
48954ded11 update foreign key names; workspace_id -> portfolio_id, project_id -> application_id 2019-01-14 16:00:17 -05:00