Commit Graph

2187 Commits

Author SHA1 Message Date
dandds
eaeeed0b05 Added BaseDomainClass with a get method.
The BaseDomainClass.get can accept any number of keyword arguments and
will add a filter to the query for each kwarg. This will allow the
caller to scope the query as needed with kwargs.
2019-04-16 14:18:53 -04:00
dandds
5ea70a486a Do not pass portfolio to render_template calls in portfolio context.
The context processor in the init file for the portfolio routes takes
care of this. Also eliminates any unnecessary portfolio lookups in the
route functions.
2019-04-16 14:18:53 -04:00
George Drummond
13a16dc83f Merge pull request #761 from dod-ccpo/environment-lists
Environment lists
2019-04-16 09:44:38 -04:00
George Drummond
9c89a8e7a5 Rename get_environments_obj_for_app method 2019-04-16 09:41:48 -04:00
dandds
e4c50da363 push environment deletion info to CSP 2019-04-15 16:03:32 -04:00
dandds
a2e815afd9 move application deletion alert content into translations file 2019-04-15 16:03:32 -04:00
dandds
0bde431a70 extend soft delete functionality to app and env roles 2019-04-15 15:58:38 -04:00
dandds
dac764ab82 route for deleting an application 2019-04-15 15:58:38 -04:00
dandds
0348af7ce7 record soft deletion in audit log for applications and environments 2019-04-15 15:58:38 -04:00
dandds
b58aef2c6b domain methods for deleting apps and environments 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
George Drummond
5bf8022a51 Fix specs 2019-04-15 13:50:29 -04:00
Montana
1d46ecebd1 Add environments-table component 2019-04-11 15:54:56 -04:00
Montana
7c484f6a90 Send template an environments object 2019-04-11 15:54:56 -04:00
George Drummond
25c1490afb Merge pull request #755 from dod-ccpo/application-role-seeds
ApplicationRoles seed and domain
2019-04-11 15:51:27 -04:00
dandds
9084dce762 build out seed sample script
- semi-random data for applications and environments
- added users to applications and environments
- updated CSPRole enum with current CSP roles
2019-04-11 15:38:27 -04:00
dandds
265833f3fc ApplicationRoles.create should accept permission set names 2019-04-11 11:32:17 -04:00
George Drummond
50a532ddbb ApplicationRoles seed and domain 2019-04-11 10:03:21 -04:00
rachel-dtr
6d4cd59e0b Updating PPoC language 2019-04-10 10:13:47 -04:00
leigh-mil
6bca7c7660 Merge pull request #747 from dod-ccpo/disable-edit-ppoc
Disable edit ppoc
2019-04-09 10:00:18 -04:00
leigh-mil
51a5929b52 Check if member is PPoC before updating perms 2019-04-09 08:42:35 -04:00
dandds
d0bf5745e6 Merge pull request #746 from dod-ccpo/application_roles
Application roles
2019-04-08 14:22:52 -04:00
dandds
b17741acd1 Adds an ORM permission set listener for application roles.
Application role changes will be recorded in the audit log. Generalizes
pre-existing listener that was in user for portfolio roles.
2019-04-08 14:00:26 -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
0ac8c9632b add application permission sets 2019-04-08 13:31:19 -04:00
dandds
f1bd1eea7e add application role model 2019-04-08 13:31:19 -04:00
George Drummond
090e13f083 Update Point of Contact 2019-04-08 13:31:00 -04:00
dandds
80254c6b8b Merge pull request #744 from dod-ccpo/record-portfolio-permission-changes
record portfolio_role permission_set changes with bulk_replace event
2019-04-08 11:03:36 -04:00
rachel-dtr
40a4e205d9 Merge pull request #745 from dod-ccpo/delete-user-update
Delete user update
2019-04-05 14:02:37 -04:00
Montana
48d7918b66 Use translate function directly 2019-04-05 11:47:58 -04:00
rachel-dtr
5401fd4769 Updating translation file 2019-04-05 11:22:06 -04:00
dandds
8827130444 record portfolio_role permission_set changes with bulk_replace event 2019-04-04 19:00:48 -04:00
dandds
bee4cf289c Merge pull request #740 from dod-ccpo/uwsgi-logging
uWSGI JSON logging
2019-04-04 16:47:31 -04:00
rachel-dtr
d34e90a76c Updating language for deleting portfolio members 2019-04-04 14:32:51 -04:00
rachel-dtr
aecb4fc583 Merge branch 'master' of github-DDS:dod-ccpo/atst into delete-user-update 2019-04-04 14:05:32 -04:00
rachel-dtr
265612c339 Updating some more capitalization and word choice 2019-04-04 13:56:41 -04:00
rachel-dtr
5b77d6c0d0 Updating some more capitalization 2019-04-04 13:26:40 -04:00
Montana
8057c7b2fc Log audit events before we save them to the DB 2019-04-04 08:58:27 -04:00
Montana
a5848877ae No need to include user_id in audit event log 2019-04-04 08:33:07 -04:00
Montana
747a59825a Use JSONLogger to log audit event information 2019-04-03 15:39:18 -04:00
leigh-mil
f1c6717a1e Merge pull request #733 from dod-ccpo/add-last-login-timestamp
Add last login timestamp
2019-04-03 13:10:52 -04:00
George Drummond
48d9506f96 Merge pull request #730 from dod-ccpo/archive-portfolio-member
Remove Portfolio User
2019-04-03 13:06:41 -04:00
leigh-mil
cc11123eba Simplify get_last_login() 2019-04-03 13:03:17 -04:00
leigh-mil
215c2b4cbc Updates from PR feedback 2019-04-03 12:24:02 -04:00
leigh-mil
610aef428d Add user's last login to the session data 2019-04-03 12:24:02 -04:00
leigh-mil
dec3a0eb48 Migration for last_login column 2019-04-03 12:24:02 -04:00
George Drummond
83b071bf20 Get changes working with merged PRs 2019-04-03 10:32:03 -04:00
George Drummond
bcfc8ee8e1 Remove double import 2019-04-03 09:48:30 -04:00
George Drummond
270b8d0db6 We aren't using this import 2019-04-03 09:43:40 -04:00