169 Commits

Author SHA1 Message Date
dandds
45818106c9 Squash the migrations into one reset.
This required destroying the database. The existing migrations are not
worthwhile history, though, and are available in the git history if
needed.
2019-06-19 15:29:31 -04:00
dandds
f793973da4 Do not enforce TO number uniqueness.
We don't know for a fact that TO number uniqueness is a requirement at
the database level. For now, remove the unique constraint so that users
can enter redundant TOs.
2019-06-19 13:03:41 -04:00
George Drummond
d672f5792c
Save as draft 2019-06-18 14:11:55 -04:00
George Drummond
cad43af455
Portfolio archiving 2019-06-11 11:30:37 -04:00
Montana
08c1a967ba Add jedi clin type column to clin model 2019-06-04 16:19:37 -04:00
George Drummond
f7562714cb
Add New Portfolio Workflow 2019-06-04 13:10:42 -04:00
dandds
c085db23d7 New invitation backend for portfolio invitations.
Portfolio invitations do not associate a user entity until the
invitation has been accepted. User info, including DOD ID, is held on
the invitation itself. When a user accepts and invitation, their user
entry is associated with the corresponding `portfolio_role` entry.

The same change will be applied to `application_role` and application
invitations. For now, small changes have been made to
application-related methods so that that flow works as-is.
2019-06-03 15:57:49 -04:00
dandds
755fabd725 Database changes for new portfolio invitation flow.
- user_id is nullable on role tables
- invitation tables hold basic user information
2019-06-03 15:57:49 -04:00
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