Commit Graph

2161 Commits

Author SHA1 Message Date
richard-dds
e84e61bbad Update seed script with TOs of various statuses 2019-06-10 15:15:39 -04:00
richard-dds
0f4d17a94a Implemen TaskOrder.is_completed 2019-06-10 15:15:39 -04:00
richard-dds
8ecf112c48 Implement new CLIN-based TO statuses 2019-06-10 15:15:08 -04:00
richard-dds
7b8ccbf145 Implement TO start_date and end_date 2019-06-10 15:15:08 -04:00
leigh-mil
00f323f9f5 Only call commit() once and use translations in template 2019-06-10 14:09:31 -04:00
leigh-mil
46cd8f3762 Fix tests and formatting 2019-06-10 12:36:57 -04:00
leigh-mil
42970ded6f Render pdf in existing TO 2019-06-10 12:29:54 -04:00
leigh-mil
732830a500 Fix form so TO saves properly 2019-06-10 12:29:54 -04:00
leigh-mil
454643c3c9 Post rebase fixes 2019-06-10 12:29:54 -04:00
leigh-mil
e017cd12af Vue for adding multiple CLINs 2019-06-10 12:29:54 -04:00
leigh-mil
36200e01ad Create CLINs when creating a TO 2019-06-10 12:29:54 -04:00
leigh-mil
633e1b6a37 Update TO Form to include CLINs and LOAs 2019-06-10 12:29:54 -04:00
George Drummond
5226736de4 Logout message on session expiration visiting /logout 2019-06-10 11:18:42 -04:00
dandds
159360692f Improve task order upload validation handling.
- Display validation errors.
- Rerender validated form data correctly.
- Clear error state correctly.
2019-06-06 13:57:07 -04:00
dandds
318257e32c File length validation for task order upload 2019-06-06 13:57:07 -04:00
dandds
b0f47bc3ff Backend handling for task order upload
- Move task_orders.edit rendering to function
- Construct task_orders.update form route correctly in template
2019-06-06 13:57:07 -04:00
dandds
fb430e76e9 Basic frontend uploader component 2019-06-06 13:57:07 -04:00
richard-dds
38291937f9 Remove unused imports 2019-06-05 15:37:41 -04:00
richard-dds
c3911c89a3 Tests should be deterministic 2019-06-05 15:37:41 -04:00
richard-dds
34dd418750 Formatting 2019-06-05 15:37:41 -04:00
richard-dds
2de8f64645 More variety in fake TO statuses 2019-06-05 15:34:34 -04:00
richard-dds
c9674255d1 Display all task orders in the same list 2019-06-05 15:34:34 -04:00
richard-dds
d7346d5a32 Try using new styles in the task orders page 2019-06-05 15:34:34 -04:00
dandds
aefc86e908 Clean up code for sending invitations.
- Move subject lines to translations file.
- Use keyword arguments for invitation function.
2019-06-05 15:02:23 -04:00
dandds
bd4f2b3dde Delete unused Applications domain method and invitation service 2019-06-05 15:02:22 -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
dandds
a2d1c470c1 Merge pull request #861 from dod-ccpo/new-to-form
New TO form
2019-06-05 14:56:43 -04:00
leigh-mil
b97ae02a93 Combine similar routes and templates, delete unused TO form templates 2019-06-05 12:58:33 -04:00
leigh-mil
0a2d241dc4 Add validator to TO number input and add cancel button to form 2019-06-05 12:58:33 -04:00
leigh-mil
d7d239d406 Alphabetize flash messages 2019-06-05 12:58:33 -04:00
leigh-mil
e7771f789b Start TO form template 2019-06-05 12:58:33 -04:00
leigh-mil
91e41199b7 Update TO form based on new model 2019-06-05 12:58:33 -04:00
George Drummond
0fa43021f8 Use python rather than string for primaryjoin 2019-06-05 11:12:46 -04:00
dandds
c90e574e83 Merge pull request #869 from dod-ccpo/filter-app-environment-roles
Filter out deleted application environment roles
2019-06-05 10:50:06 -04:00
Montana
e4cbe892fc Use clin values to render budget information
- creates a relationship `clins` on task order model
- two properties on task order model to calculate budget amounts
2019-06-05 09:40:10 -04:00
dandds
82e048387e Filter out deleted application environment roles 2019-06-05 09:34:55 -04:00
George Drummond
dbbbacd24d Merge pull request #857 from dod-ccpo/new-portfolio-workflow
New Portfolio Workflow
2019-06-04 13:12:39 -04:00
George Drummond
f7562714cb Add New Portfolio Workflow 2019-06-04 13:10:42 -04:00
montana-mil
6e6b0f9256 Merge pull request #860 from dod-ccpo/to-review-page
Basic Task Order Review Page
2019-06-04 10:59:03 -04:00
dandds
4f8e9cddc8 Merge portfolio members routes with invitations.
`portfolios.create_member` now just sends an invitation, so it should be
with the invitation routes. This also de-duplicates the function for
sending a portfolio invitation email.
2019-06-03 15:57:49 -04:00
dandds
25ad9ebcd6 Do not check if user is a task order officer when user accepts an
invite.

That functionality is deprecated for now.
2019-06-03 15:57:49 -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
Montana
67be7d99a4 Replace ko_review template with new task order review
- deletes ko_review vue component
2019-06-03 14:19:04 -04:00
leigh-mil
c60e1a29f6 Add CLIN table 2019-05-31 14:49:39 -04:00
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -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
George Drummond
83adf1295c /home no longer redirects and has add portfolio button 2019-05-30 09:33:33 -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