Commit Graph

189 Commits

Author SHA1 Message Date
Montana
99ab0c22bc Add Success banner on submit 2019-06-11 09:31:08 -04:00
richard-dds
48d4b466b1 Formatting 2019-06-10 15:16:26 -04:00
richard-dds
a2d201e43b Use UTC tz for determining TO status 2019-06-10 15:16:26 -04:00
dandds
fa50c01e48 New backend flow for application invitations.
Like portfolio invitations, now a user is not associated with an
application role until they accept the associated invitation.
- domain method for inviting user to application
- change application route for inviting a member
- ApplicationRole model knows user name from invitation
2019-06-05 15:02:22 -04:00
leigh-mil
d7d239d406 Alphabetize flash messages 2019-06-05 12:58:33 -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
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -04:00
richard-dds
6a504fdf89 Merge pull request #834 from dod-ccpo/limit-concurrent-logins
Prevent multiple active sessions
2019-05-29 16:19:58 -04:00
richard-dds
c653cf2dbf Display a flash message when a user logs out 2019-05-28 16:55:52 -04:00
richard-dds
5dcbee333a Make session limiter configurable 2019-05-28 10:45:12 -04:00
George Drummond
6487fe91ba Applications users were invited to were not showing in the portfolios
sidebar
2019-05-22 11:19:13 -04:00
richard-dds
32df561c6d Merge pull request #827 from dod-ccpo/stig-notifications
Create Notification System
2019-05-20 09:51:09 -04:00
dandds
01a935f257 Merge pull request #822 from dod-ccpo/app-members-edit
App members edit
2019-05-17 14:08:06 -04:00
dandds
0dc0397702 Update user's environment role on the team page.
- Includes adjustments to the applications.update_team route
- Adds hidden environment ID to the HTML form
2019-05-17 14:00:45 -04:00
George Drummond
15d4b48184 Looking up g.portfolio when g.current_user is None raises an error 2019-05-17 13:29:40 -04:00
richard-dds
d8e75668b0 Log notifications at the time of sending 2019-05-15 14:57:46 -04:00
richard-dds
9ba1def91c Use separate queue method for notifications 2019-05-15 14:57:46 -04:00
richard-dds
97b9d84c38 Select only recipient emails from the db 2019-05-15 14:57:46 -04:00
richard-dds
d3b42d5bfc Formatting 2019-05-15 14:57:46 -04:00
richard-dds
c03b69b351 More idiomatic initialization of notification_sender 2019-05-15 14:57:46 -04:00
richard-dds
aaa9d47ccf Wire up NotificationSender to the app's error handler 2019-05-15 14:57:46 -04:00
richard-dds
a6c5f484b9 Add NotificationSender, one test 2019-05-15 14:57:46 -04:00
rachel-dtr
c6790e5d7a Updating alert language 2019-05-15 13:28:46 -04:00
montana-mil
1c4725840c Merge pull request #815 from dod-ccpo/add-new-env-app-settings
Add New Environment via app settings
2019-05-15 11:30:29 -04:00
George Drummond
b8ea1349b2 Merge pull request #817 from dod-ccpo/delete-user-from-application
Delete an application member
2019-05-14 15:45:32 -04:00
Montana
53d09deb22 Clean up imports 2019-05-14 11:51:34 -04:00
Montana
caf3a47c68 Update banners
- Adds "Create a new environment" title to info banner
- Adds a new "environment added" success banner
2019-05-14 11:51:10 -04:00
leigh-mil
4c2b6c331b Merge pull request #799 from dod-ccpo/edit-env-form-view-part-2
Edit env form view part 2
2019-05-14 11:14:46 -04:00
George Drummond
27a4ef12c6 Delete an application member 2019-05-14 11:07:08 -04:00
leigh-mil
060c6834bf Add save button and temp member role toggle to env member form 2019-05-14 10:58:22 -04:00
George Drummond
dc629192df Remove unused constant 2019-05-14 10:53:54 -04:00
Montana
74422c57aa Use common "View" for translations
-also pipe translate in injected html for a flash
2019-05-13 09:28:47 -04:00
rachel-dtr
39a0716028 Updating content across the site 2019-05-10 10:28:02 -04:00
dandds
2435f91b13 Merge pull request #809 from dod-ccpo/resource-finder
Resource finder
2019-05-10 06:07:45 -04:00
dandds
2d99b5cfc5 Permission-check for templates accounts for all permission levels.
`user_can` function built for Jinja template contexts should check
application, portfolio, and atat level permissions depending on what
resources are available on `g`.
2019-05-08 13:25:38 -04:00
montana-mil
fb7efc6057 Merge pull request #801 from dod-ccpo/app-team-permissions
Application Team Table Permissions
2019-05-07 16:27:23 -04:00
dandds
3c1f4ac6df Standardize token argument in routes.
- `token` becomes `portfolio_token` in routes.
- Find relevant portfolio from token in `before_request` hook, like
  other routes.
2019-05-06 16:35:33 -04:00
dandds
42b912d4cb Look up major database resources in a before_request hook.
A `before_request` hook queries the database for portfolios, requests,
and task orders based on the route arguments. The resources are added as
attributes on `g`. The portfolio context processor and the access
decorator now rely on those resources being available on `g`.

WIP: find major resources in before_request hook, apply to g

WIP: use g.portfolio for portfolio context processor

WIP: the access decorator should rely on the resources being available on g
2019-05-06 16:32:55 -04:00
Montana
1759732d38 Add success banner
- The banner does not display which members were updated
2019-05-06 15:17:48 -04:00
George Drummond
037fe09163 Delete environments from an application 2019-05-06 13:51:57 -04:00
dandds
ade77e6b91 Route for adding new application member
- domain method for creating a new application member
- ApplicationInvitations domain class
- nested form for adding a new user that holds user data, application
  permission sets, and environment roles
- Invitation service can infer invitation type based on role it's given
- new invitation email templates
2019-04-30 14:41:55 -04:00
George Drummond
079672c818 Update application environments 2019-04-29 10:46:21 -04:00
leigh-mil
99a3534d03 Update route to include environment_id 2019-04-25 10:47:39 -04:00
dandds
ed25078c39 move portfolio context processor to generic location 2019-04-22 07:15:18 -04:00
dandds
a2e815afd9 move application deletion alert content into translations file 2019-04-15 16:03:32 -04:00
dandds
dac764ab82 route for deleting an application 2019-04-15 15:58:38 -04:00
rachel-dtr
6d4cd59e0b Updating PPoC language 2019-04-10 10:13:47 -04:00
George Drummond
090e13f083 Update Point of Contact 2019-04-08 13:31:00 -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