60 Commits

Author SHA1 Message Date
leigh-mil
aa2d353260 Add query for finding new CLINs that have not been sent.
Use fixtures in tests.
2020-02-19 15:59:24 -05:00
graham-dds
108f65f928 Use pendulum for datetime operations when possible
Currently, we use both Python's built-in datetime library and Pendulum
to do datetime operations. For the sake of consistency, we should try to
stick to one library for datetimes. We could have used either, but
Pendulum has a more ergonomic API, so I decided to go with it when
possible.

The places where were we didn't / couldn't replace datetime are:
- checking instances of datetimes. Pendulum's objects are subclasses of
  python native datetime objects, so it's still useful to import
  datetime in those cases of using is_instance()
- WTForms date validators expect datetime style string formats --
  Pendulum has its own format for formatting/ parsing strings. As such,
  our custom validator DateRange needs to use datetime.stptime() to
  account for this format.
2020-02-17 10:38:52 -05:00
leigh-mil
ff82e39626 Remove unsigned from the display statuses, show unsigned TOs display status as DRAFT 2020-02-10 11:48:15 -05:00
leigh-mil
6ec9fb34f9 Add query for finding Task Orders that have not been sent to MS or that have been updated. 2020-02-06 12:04:13 -05:00
leigh-mil
84d0a32694 Update TO form to account for new TO rules: alpha numeric, between 13 and 17 characters, dashes should be stripped, and coerce to uppercase 2020-01-24 09:18:22 -05:00
leigh-mil
6446b4fbd0 Raise AlreadyExistsError if a task order is created or updated with a number of an existing task order 2019-12-13 14:53:58 -05:00
leigh-mil
2552d4c700 Styling for empty status accordion and update Not signed to Unsigned 2019-12-13 11:49:50 -05:00
leigh-mil
ac8dd662d1 Fake task order's expended funds, default task order start and end date to None, fix how task orders are sorted by status 2019-12-12 09:40:18 -05:00
leigh-mil
e32bad0d30 Display TOs grouped by status 2019-12-12 09:40:18 -05:00
leigh-mil
614514d6a2 Update tables to match business logic 2019-12-02 14:46:11 -05:00
richard-dds
79c8e4fc63
Merge pull request #1062 from dod-ccpo/env-provisioning-task
Environment provisioning background jobs
2019-09-16 09:58:18 -04:00
graham-dds
2af0a2ecaf Update existing tests for new CLIN logic
- Factory adds total_amount field, which is always greater than obligated
field
- add total_amount field on tests that create TOs manually
- update tests that calculate total_contract_amount and
total_obligated_amount
2019-09-12 16:11:12 -04:00
richard-dds
6b7db2ca46 Better ergonomics for creating factory portfolios w/ TOs 2019-09-11 11:43:06 -04:00
graham-dds
38ba8b7e5f LOAs are so out of this codebase 2019-08-30 09:57:23 -05:00
richard-dds
8fce880ae6
Merge pull request #1013 from dod-ccpo/fix-cancel-button
Update TO form cancel button behavior
2019-08-09 09:50:38 -04:00
richard-dds
f042b12416 Real assertion in TO delete test 2019-08-08 16:26:59 -04:00
richard-dds
02900ff771 Allow TOs to be deleted, along with their associated CLINs 2019-08-08 16:03:42 -04:00
dandds
9fc6514d80 Clean up defunct upload and CRL logic.
- Applies our previous CSP namespacing pattern to the upload classes.
- Removes code and config for previous uploader implementation.
- Removes Attachment model's ability to upload files directly and
  adjusts tests that expected that behavior.
2019-08-08 13:20:27 -04:00
leigh-mil
c1383e1ec7 Delete unneeded tests 2019-06-20 14:28:56 -04:00
richard-dds
ee46fb2320 Formatting 2019-06-10 15:34:01 -04:00
richard-dds
40b599d1d0 Fix rebase conflicts 2019-06-10 15:33:30 -04:00
richard-dds
6eb64d4aae Add test for TaskOrders.sort 2019-06-10 15:16:26 -04:00
leigh-mil
46cd8f3762 Fix tests and formatting 2019-06-10 12:36:57 -04:00
leigh-mil
36200e01ad Create CLINs when creating a TO 2019-06-10 12:29:54 -04:00
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -04:00
dandds
078264bec7 add access tests for all access-protected routes
- cleans up skipped access tests in domain tests
- cleans up other skipped tests that are no longer relevant
2019-03-22 06:33:01 -04:00
dandds
4a0dd2d432 remove unused domain methods and arguments 2019-03-22 06:31:20 -04:00
dandds
de7c69bde7 apply access decorator to routes 2019-03-22 06:30:21 -04:00
dandds
0ea21fbb9b remove access checks from domain methods 2019-03-22 06:30:02 -04:00
dandds
ee37a5543a organize portfolio permission sets by domain 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
44a4d98978 switch portfolio authorization to rely on new permission sets 2019-03-15 07:14:49 -04:00
montana-mil
3849a69e99
Merge pull request #677 from dod-ccpo/move-component-to-portfolio
Move defense_component to portfolios model
2019-02-27 10:05:30 -05:00
Montana
7ee8858cc7 Add defense_component to Portfolio when new task_order is created without an existing portfolio 2019-02-26 11:29:16 -05:00
George Drummond
46345f9856
Break KO signing into two steps 2019-02-26 10:02:40 -05:00
dandds
4521b7483f better domain method name for checking DD254 completeness 2019-02-20 11:07:50 -05:00
dandds
ad05c448cd DD-254 domain class and method for checking if DD-254 is complete 2019-02-20 10:52:15 -05:00
George Drummond
305a36eef2
Optional radio fields 2019-02-01 13:38:28 -05:00
George Drummond
caddfb5ff0
Save as draft without draft button 2019-02-01 13:38:27 -05:00
Patrick Smith
30ebebb13a Fix failing tests 2019-01-23 11:16:54 -05:00
dandds
d3d36822df workspace -> portfolio everywhere 2019-01-14 16:00:17 -05:00
dandds
ccf1ff2024 authorization checks for task orders 2019-01-10 08:56:40 -05:00
dandds
95e7adfcf3 single workspace role for task order officers 2019-01-08 16:47:55 -05:00
dandds
356a0fab2c TaskOrders domain responsible for adding officers 2019-01-08 16:47:55 -05:00
dandds
9a12c14636 domain methods for checking task order sections 2018-12-18 10:51:37 -05:00
dandds
15d0db01b6 change task orders domain class name 2018-12-13 11:36:45 -05:00
dandds
2f515d7b47 change current task order table name
rename existing task order factory

fix legacy task order repr
2018-12-13 11:36:44 -05:00
richard-dds
0439525f0f Refactor fv form to separate TO from request 2018-10-23 11:45:09 -04:00
richard-dds
39bbfb745a Fix task order creation 2018-10-23 11:45:09 -04:00