Commit Graph

2343 Commits

Author SHA1 Message Date
graham-dds
6f13b8a179 Add WTForms min and max validation for clin $
- above 0 and below $1,000,000,000.00, inclusive
2019-09-12 16:11:12 -04:00
graham-dds
f3eea39536 Add "total amount" to CLINS
- includes migration for change to model
2019-09-12 16:11:10 -04:00
leigh-mil
e565913f48 Merge pull request #1067 from dod-ccpo/app-settings-cleanup
App settings cleanup
2019-09-11 16:01:37 -04:00
leigh-mil
ddcd91964f Remove route 'applications.update_env_roles' and related functions and tests 2019-09-11 15:29:09 -04:00
leigh-mil
a265c12a52 Merge pull request #1065 from dod-ccpo/new-member-modal-part-2
New member modal part 2
2019-09-10 15:04:14 -04:00
leigh-mil
ade3dd083e Use translations 2019-09-10 13:54:13 -04:00
richard-dds
c9dcacddb0 Merge pull request #1056 from dod-ccpo/mock-csp
Mock implementation of CSP interface
2019-09-10 12:46:52 -04:00
leigh-mil
117a3e2162 Styling for app perms 2019-09-10 11:54:17 -04:00
leigh-mil
dcb70ad925 Merge pull request #1060 from dod-ccpo/app-settings-redesign
App settings redesign
2019-09-10 11:20:38 -04:00
leigh-mil
ebe82a3452 Merge pull request #1063 from dod-ccpo/new-member-modal-part-1
New member modal part 1
2019-09-10 09:36:36 -04:00
leigh-mil
aa45e6b2e1 Merge pull request #1059 from dod-ccpo/pop-configs
PoP validation & Contract date configs
2019-09-10 09:35:46 -04:00
dandds
07ffaae22a Merge pull request #1061 from dod-ccpo/csp-retry-failure
Record job failures with application context.
2019-09-10 09:13:41 -04:00
leigh-mil
c7d8bc260c Add phone ext column to invites and phone ext field to new member form 2019-09-09 16:24:18 -04:00
leigh-mil
e391c3269d Remove unused route to update team roles 2019-09-09 15:23:37 -04:00
dandds
7010bdb09c Record job failures with application context.
AT-AT needs to be able to track which user tasks failed and why. To
accomplish this we:

- Enabled Celery's results backend, which logs task results to a data
  store; a Postgres table, in our case.
  (https://docs.celeryproject.org/en/latest/userguide/tasks.html#result-backends)
- Created tables to track the relationships between the relevant models
  (Environment, EnvironmentRole) and their task failures.
- Added an `on_failure` hook that tasks can use. The hook will add
  records to the job failure tables.

Now a resource like an `Environment` has access to it task failures
through the corresponding failure table.

Notes:
- It might prove useful to use a real foreign key to the Celery results
  table eventually. I did not do it here because it requires that we
  explicitly store the Celery results table schema as a migration and
  add a model for it. In the current implementation, AT-AT can be
  agnostic about where the results live.
- We store the task results indefinitely, so it is important to specify
  tasks for which we do not care about the results (like `send_mail`)
  via the `ignore_result` kwarg.
2019-09-09 14:54:46 -04:00
leigh-mil
3e3dfc5056 Remove inflect dependency 2019-09-09 14:51:59 -04:00
leigh-mil
09efa4f434 use lowercase for variable names and remove unused import 2019-09-09 14:33:05 -04:00
leigh-mil
3683c79ae0 Use template args for the contract start and end date
pointing to base.ini in the JS file resulted in the raw string content of base.ini to be in the JS bundle
2019-09-09 14:23:38 -04:00
richard-dds
6c0420d6c5 Read config to determine mock CSP type 2019-09-09 10:45:38 -04:00
richard-dds
fd65a3a972 Rename "throw" to "raise" 2019-09-09 10:41:17 -04:00
richard-dds
43d5be4e19 Add network failures to suspend / delete user 2019-09-09 10:41:17 -04:00
richard-dds
62795561a8 All the methods 2019-09-09 10:41:17 -04:00
richard-dds
25bedb816d Auth create_environment 2019-09-09 10:41:17 -04:00
richard-dds
f757e86eb3 Update TODOs 2019-09-09 10:41:17 -04:00
richard-dds
523f41a75d Delay and network errors 2019-09-09 10:41:17 -04:00
richard-dds
b247c53cd2 id helper 2019-09-09 10:41:17 -04:00
leigh-mil
a6caafada4 Update delete app button and section 2019-09-06 11:28:43 -04:00
leigh-mil
3428551cec Team members section read only version
- display all members in a table and list perms and environments
2019-09-06 10:43:05 -04:00
leigh-mil
2efd2c968d Use translations and make errors look pretty 2019-09-06 10:12:35 -04:00
leigh-mil
d7b86491ae Validate PoP dates against contract dates config on the backend 2019-09-06 10:12:35 -04:00
leigh-mil
7c7624f25e Move team routes to the settings file and delete files related to applications/team 2019-09-05 16:54:16 -04:00
leigh-mil
de74c1f533 Remove route for applications.team 2019-09-05 16:18:47 -04:00
leigh-mil
50ceaa39de Move team table into app settings page 2019-09-05 16:09:26 -04:00
dandds
e948007a8b Merge pull request #1057 from dod-ccpo/seed-sample-perms
Seed sample perms
2019-09-05 09:44:08 -04:00
graham-dds
0f185d3e09 Merge pull request #1054 from dod-ccpo/clin-summary-page
Refactor CLIN summary page
2019-09-04 13:40:44 -04:00
dandds
e259e7e440 Simplify User model string serialization.
There was a leftover method listing all the portfolios a user has access
to inside the string-serialization for the User. This is too verbose.
The leftover method was not being used anywhere else, so it was removed.
2019-09-04 13:03:09 -04:00
graham-dds
41bbbe8a39 add a sorted_clins property for clin sorting logic
CLINS have a special ordering:
 - First, they are sorted by the last three digits
 - Then, they are sorted by the first digit

Trying to add CLIN sorting logic to the relationship field in the task
order proved to be more challenging than expected. So, a separate
property was defined in order to access the clins in sorted order.
2019-09-04 12:35:56 -04:00
graham-dds
e2bd6bd823 Reorganize task order review template
- update copy in translations
 - Move TO totals out of sidebar
 - Group CLINs into 1 table with altered columns, instead of a
    separate table for each
 - edit CSS on CLIN table
2019-09-04 12:14:53 -04:00
leigh-mil
1cbefb099b Merge pull request #1055 from dod-ccpo/clin-card-styling
TO Form Step 3/CLIN page styling
2019-09-04 11:36:51 -04:00
tomdds
85f8c8f9e0 Merge pull request #1050 from dod-ccpo/cloud-provision-interface
Update CloudProviderInterface for provision job consumption
2019-09-03 15:59:55 -04:00
tomdds
84580a1330 Add type hinting to cloud interface and fix mismatch in mock implementation 2019-09-03 15:12:14 -04:00
leigh-mil
90b84a1ffe move text to translations file 2019-09-03 13:38:05 -04:00
leigh-mil
f08088c736 Styling for Period of Performance Section 2019-09-03 13:25:53 -04:00
leigh-mil
274fa4470c Update text on clin card and reorder fields 2019-09-03 11:35:15 -04:00
tomdds
a23a484630 add Environment model to create_environment arguments 2019-09-03 10:43:04 -04:00
tomdds
74ad006428 Specify return type of create_or_update_user 2019-09-03 10:41:45 -04:00
richard-dds
c5284fd8f9 Merge pull request #1005 from dod-ccpo/cloud-pdf-downloads
Cloud pdf downloads
2019-08-30 16:11:27 -04:00
richard-dds
7d3bda9496 Update permission for download_link endpoint 2019-08-30 15:53:26 -04:00
graham-dds
38ba8b7e5f LOAs are so out of this codebase 2019-08-30 09:57:23 -05:00
tomdds
e5e9f5a3e2 Directly pass EnvironmentUser to CSP User upsert 2019-08-30 09:57:42 -04:00