leigh-mil
2a2fafe7ea
Use Environment.portofolio and portfolio_id properties instead of accessing them through application
2020-02-26 16:05:16 -05:00
leigh-mil
668aa89edf
fix circular import
2020-02-26 11:39:39 -05:00
leigh-mil
7a790b4b70
move creating the users principal name and mail nickname into a util file.
...
Fix typo.
2020-02-26 11:36:20 -05:00
graham-dds
bb886dbe0f
Add tests for portfolio.initial_clin_dict property
...
In doing this, fixed a bug on the clin.is_active property
2020-02-21 14:31:29 -05:00
graham-dds
dba63cdd15
Refactor Portfolio to_dictionary method
...
In refactoring this method, refactor some other areas:
- add a property to generate a dict needed for the "initial clin"
- add new relationship field to get all CLINs associated with a
portfolio
- add a property to either get or generate a portfolio's domain name
- least importantly, sort imports
- On the CLIN model, add a property to get a JEDI clin type's number,
i.e. JEDI_CLIN_3 -> 3. This should be the "initial_clin_type".
2020-02-21 14:31:29 -05:00
graham-dds
d46ed2b5b4
Specify clin sorting in TO <> CLIN relationship
...
This also removes the sorted_clins property on the task_order model
2020-02-21 14:31:29 -05:00
tomdds
be53a1fd1a
Merge branch 'staging' into state-machine-unit-tests
2020-02-20 10:21:41 -05:00
leigh-mil
0bda0c481e
Explicitly pass in kwargs instead of splatting clin and portfolio data
2020-02-19 16:07:45 -05:00
leigh-mil
6ef3265cb5
Create celery task for create_billing_instruction
2020-02-19 16:03:30 -05:00
tomdds
f956b41f98
Fully set up portfolio fixture for state machine tests
...
Also fixes some formatting problems
2020-02-19 10:40:06 -05:00
daf4a0ba68
state machine unit tests
2020-02-18 15:56:01 -05:00
tomdds
b7d044b3b1
Merge branch 'staging' into state-machine-error-handling
2020-02-18 13:08:33 -05:00
graham-dds
061af339e0
Merge branch 'staging' into datetime-to-pendulum
2020-02-17 14:12:08 -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
tomdds
ccc8fbb233
Merge branch 'staging' into state-machine-error-handling
2020-02-13 14:23:50 -05:00
leigh-mil
876cddbfe3
Merge branch 'staging' into remove-invoiced-from-task-orders
2020-02-13 14:07:14 -05:00
89d56d55a1
merge staging
2020-02-13 12:49:29 -05:00
leigh-mil
0b1628008f
Include unsigned TOs in the is_draft property
2020-02-13 10:45:03 -05:00
leigh-mil
fc0af1558d
Remove all references to funds expended on a TO level
2020-02-13 10:27:39 -05:00
88b3df7906
csp provider tests requests.HTTPError exceptions
2020-02-12 21:32:48 -05:00
4569066024
state machine last CREATED state transition to COMPLETED
2020-02-12 09:31:52 -05:00
efe042fac3
merge staging. update create_create_billing_owner azure csp tests
2020-02-11 16:57:37 -05:00
dandds
285021de7c
Merge branch 'staging' into billing-owner
2020-02-11 16:01:27 -05:00
3163c73a0d
resolve merge conflict
2020-02-11 15:40:15 -05:00
41e2ae5253
azure csp tests catch exceptions resulting from raised requests exceptions
2020-02-11 15:32:47 -05:00
dandds
facaae5cb1
Merge branch 'staging' into billing-owner
2020-02-11 14:50:11 -05:00
graham-dds
52489b6bca
Add upcoming_obligated_funds property to portfolio
2020-02-11 14:27:29 -05:00
441e81ba8d
azure csp unit tests WIP
2020-02-11 14:11:11 -05:00
tomdds
6079e01fb0
Ensure non-none value for csp_data state machine arg
2020-02-11 13:23:11 -05:00
tomdds
91d3795a92
Fix formatting issue
2020-02-11 13:21:53 -05:00
tomdds
2ed5c5b588
Merge branch 'staging' into portfolio-data-as-dict
2020-02-11 13:17:18 -05:00
dandds
10014e696d
Merge branch 'staging' into environment-role-creation
2020-02-11 12:12:45 -05:00
tomdds
17b281b11a
Merge branch 'staging' into azure-initial-mgmt-grp
2020-02-11 11:06:28 -05:00
leigh-mil
7d867457fc
Merge branch 'staging' into to-index-fixes
2020-02-11 09:40:50 -05:00
tomdds
ccbc61f34f
Merge branch 'staging' into azure-initial-mgmt-grp
2020-02-10 17:44:19 -05:00
graham-dds
55736b723e
Move calc of a portfolio's obligated funds to prop
...
Add a property on the portfolio model to calculate the total
obligated funds for a portfolio. This replaces a one-off calculation
in a view function, and sets up functionality for future access
2020-02-10 14:49:04 -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
dandds
80894a5fb9
add to mock and FSMstates
2020-02-09 16:52:29 -05:00
dandds
3f60d3494e
Merge branch 'staging' into environment-role-creation
2020-02-09 14:29:03 -05:00
a2201a0edf
portfolio data dict. domain name uses random string suffix. do not set the password
2020-02-07 14:00:16 -05:00
6f6d3720bc
class method to export portfolio data as dictionary as an arg to state machine
2020-02-07 12:05:02 -05:00
leigh-mil
c76ee1546d
Merge branch 'staging' into add-celery-job-for-sending-tos
2020-02-06 14:27:16 -05:00
leigh-mil
03d6e7c21a
Add column to clins for last_sent_at and column to task_orders for pdf_last_sent_at
2020-02-06 12:04:13 -05:00
leigh-mil
2c8f4eeaa0
Add Environment property is_pending back because it is used in the UI to display the "Pending Creation" tag
2020-02-06 11:03:04 -05:00
1da7d42eb7
merge staging
2020-02-06 10:39:08 -05:00
7559875d64
resolve conflict with staging
2020-02-06 10:19:47 -05:00
6420cce4fc
initial mgmt group stage data classes extend the management group data class
2020-02-06 10:13:27 -05:00
dandds
872500099e
Merge branch 'staging' into environment-role-creation
2020-02-06 05:57:06 -05:00
tomdds
13aca270ca
Remove unused code in both the cloud interfaces and environment models. Also add tests for some untested code in the cloud interface.
2020-02-05 14:48:54 -05:00
dandds
7c7dd08827
Add environment_roles.cloud_id and update query for finding pending
...
roles.
2020-02-05 13:48:59 -05:00