64 Commits

Author SHA1 Message Date
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
5aabf92316 Rebase and fix migration path 2018-09-25 13:09:54 -04:00
richard-dds
4a5b9967ef Store request_id when available 2018-09-25 13:09:54 -04:00
richard-dds
85d866956b Add display_name property to AuditEvent 2018-09-25 13:09:54 -04:00
richard-dds
870929afd6 Rename resource_name to resource_type 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
richard-dds
e64b2dd034 Add Role.display_name 2018-09-24 14:19:17 -04:00
richard-dds
de338f675f Add lots of NOT NULL constraints 2018-09-21 14:00:01 -04:00
richard-dds
5f54468082 Timestamps and uuids everywhere 2018-09-21 14:00:01 -04:00
richard-dds
4fc1f9f2d4 Squashed migrations and created seed_roles.py 2018-09-21 14:00:01 -04:00
dandds
abfde388b7 fix bug in a migration 2018-09-19 10:44:21 -04:00
dandds
ec5c3e8ce8 add request name 2018-09-19 10:44:21 -04:00
dandds
c1f99389e1 resolve migration chain 2018-09-17 16:58:45 -04:00
dandds
a2e8caf23b add expiration_date to manual task order form 2018-09-17 16:56:10 -04:00
dandds
bba2a2b283 restrict workspace information updates to owner and admins 2018-09-17 13:30:25 -04:00
richard-dds
100048afdf Add Request.internal_comments
Using a one to one relationship to avoid the migration hell
that we're temporarily stuck in.
2018-09-11 16:37:55 -04:00
richard-dds
11484244a4 Fix migration path 2018-09-11 10:39:14 -04:00
richard-dds
6a8cbcf1c2
Merge pull request #264 from dod-ccpo/view-pe-as-workspace-user
View projects and environments as a workspace user
2018-09-11 10:16:18 -04:00
dandds
d38261f439 associate ccpo user to request review 2018-09-10 16:42:42 -04:00
richard-dds
39a1a5508c Remove VIEW_{APPLICATION,ENVIRONMENT}_IN_WORKSPACE from some roles 2018-09-10 13:41:48 -04:00
dandds
aadedfc3b0 small schema refinements for request_reviews 2018-09-10 13:33:10 -04:00
dandds
139103b2ce all request review fields are nullable 2018-09-10 12:01:30 -04:00
dandds
bad78b7c64 refine required fields for request review 2018-09-10 10:42:04 -04:00
dandds
15713d78a4 resolve migration chain 2018-09-10 10:29:04 -04:00
dandds
8e000e3e77 add request review 2018-09-10 10:29:04 -04:00
richard-dds
1620403cda Add view_workspace_members permission to admin role 2018-09-06 16:21:58 -04:00
richard-dds
674477042b Fix migration path 2018-09-06 16:21:58 -04:00
richard-dds
bdab58f150 Add a new "view workspace" permission 2018-09-06 16:21:24 -04:00
richard-dds
361630e446 Use helper methods for adding and removing permissions 2018-09-06 16:21:24 -04:00
richard-dds
19d88ce4f5 Changes to mutable arrays need to be flagged 2018-09-06 16:21:24 -04:00
richard-dds
4fe758c4ff Fix migration path 2018-09-06 16:21:24 -04:00
richard-dds
398bdac871 Add new VIEW_WORKSPACE_MEMBERS permission to owner and ccpo 2018-09-06 16:21:24 -04:00
richard-dds
e5a0d69844 Add migration for EnvironmentRole 2018-09-06 13:51:31 -04:00
dandds
e03ddd9474 make uii_ids an array column 2018-09-05 12:42:33 -04:00
dandds
7ab313b100 migrations updates:
- retain relevant task order data when migrating request bodies
- set revision relationship for status events
- make relationship between status events and revisions not nullable
2018-09-04 16:15:36 -04:00
dandds
1e0523ebf6 new request statues events should be associated with latest revision 2018-09-04 16:15:36 -04:00
dandds
b20d91c784 migrate existing request bodies to revisions and remove requests body column 2018-09-04 16:15:36 -04:00
dandds
cc7ddd9468 update to use request revisions 2018-09-04 16:14:53 -04:00
dandds
56a991a44d add request revision 2018-09-04 16:13:35 -04:00
dandds
42f95eb17d resolve migration chain 2018-08-29 11:45:14 -04:00
dandds
46f2a00ee3 move pe number ingestion for setup into a migration 2018-08-29 11:13:54 -04:00
dandds
54d1e7235b add attachment model and task order relation to it 2018-08-27 13:04:41 -04:00
dandds
b2ec0764a7 fix alembix migration chain after rebase 2018-08-23 09:27:52 -04:00
dandds
e3631da8ea request can update financial verification data 2018-08-23 09:11:21 -04:00
dandds
f2dbed1ef1 add new task order fields 2018-08-23 09:11:21 -04:00
richard-dds
6236999caf Fix migration so that we can downgrade 2018-08-21 20:21:10 -04:00
richard-dds
43263f35cc Fix workspace_role workspace relationship 2018-08-21 20:21:10 -04:00
richard-dds
8d58b2a7a0 WIP: created Project and Environment models 2018-08-21 20:21:10 -04:00
richard-dds
01778ada05 Add timestamps to workspace 2018-08-21 20:21:10 -04:00
dandds
75f41d4d2b remove workspaces task order association for now 2018-08-21 20:21:10 -04:00