26 Commits

Author SHA1 Message Date
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
cbcac2b142 Rename review route and template to view because it better reflects the purpose of the route and template 2020-01-02 12:45:52 -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
614514d6a2 Update tables to match business logic 2019-12-02 14:46:11 -05:00
leigh-mil
c9451e0f93 Update tests to use proper route
Pass portfolio and creator to TOFactory so user has perms to edit TO
2019-07-30 15:26:07 -04:00
leigh-mil
dc3f9a8c1c Update route to include form so it is clear what step refers to
Move submit route into the same file and the other form steps
2019-07-18 10:31:45 -04:00
leigh-mil
4826e8002b Rename route functions to be clearer 2019-07-18 10:31:45 -04:00
leigh-mil
b2db53096f Rename routes 2019-07-18 10:31:45 -04:00
leigh-mil
45390835ed Add routes for first step of TO builder 2019-07-18 10:31:45 -04:00
leigh-mil
c1383e1ec7 Delete unneeded tests 2019-06-20 14:28:56 -04:00
George Drummond
d672f5792c
Save as draft 2019-06-18 14:11:55 -04:00
dandds
30b93d1c50 Remove unused TO code. 2019-06-12 14:27:36 -04:00
Montana
8446a79a9a Sign TO in post route 2019-06-11 12:06:11 -04:00
Montana
33248daa6b Add route tests 2019-06-11 09:31:08 -04:00
richard-dds
e6d103a345 Remove a test 2019-06-05 15:37:41 -04:00
leigh-mil
7bec073f78 Delete things related to deleted columns and table 2019-05-31 13:07:03 -04:00
dandds
782a532c32 reorganize task order routes 2019-04-22 07:20:07 -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
Montana
9182b1078c Refactor attachment setters and add tests 2019-02-07 11:27:03 -05:00
Patrick Smith
c155de0e84 Add tests for downloading csp estimate 2019-01-23 11:16:54 -05:00
dandds
d3d36822df workspace -> portfolio everywhere 2019-01-14 16:00:17 -05:00
dandds
74ed550292 fix ampersands when comparing docx output in tests 2019-01-10 11:37:26 -05:00
dandds
ccf1ff2024 authorization checks for task orders 2019-01-10 08:56:40 -05:00
dandds
b694f6ac9d remove rogue debugger 2019-01-08 08:53:37 -05:00
dandds
718f88d828 download link for task order summary 2019-01-02 09:36:29 -05:00