5824 Commits

Author SHA1 Message Date
dandds
74f012cb07 Fix migration chain. 2019-09-10 09:46:32 -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
a02066c6f4 Styling 2019-09-09 16:54:04 -04:00
leigh-mil
4fba3ecaaf Rearrange form fields 2019-09-09 16:24:50 -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
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
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
leigh-mil
6dea274c0a Put showClin back into data -- removing it messed up the removeClin function 2019-09-09 14:21:20 -04:00
leigh-mil
d802a53db6 Only show contract date validation messages if the date has been completely filled in 2019-09-06 10:12:35 -04:00
leigh-mil
2cefe93136 Use date-fns instead of moment 2019-09-06 10:12:35 -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
e4ca027065 Validate CLIN PoP against configurable contract start and end dates 2019-09-06 10:12:34 -04:00
leigh-mil
5419e1c475
Merge pull request #1058 from dod-ccpo/cancel-clin-entry
Remove CLIN
2019-09-05 15:05:35 -04:00
leigh-mil
20871e787f Remove code related to Totals box from CLIN fields vue component 2019-09-05 10:19:12 -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
leigh-mil
5d34899127 Fix hr elements -- add back in border and remove the extra hr from the totals box 2019-09-04 16:59:51 -04:00
leigh-mil
f9f0ab2575 Make x gray 2019-09-04 16:59:51 -04:00
leigh-mil
654f20e8eb Remove optional flag from required fields 2019-09-04 16:59:51 -04:00
leigh-mil
48a8a80f87 Move text to translations file 2019-09-04 16:59:51 -04:00
leigh-mil
0bf685311a Fix validation icon positioning for date picker field 2019-09-04 16:59:51 -04:00
leigh-mil
eb58612182 Add remove CLIN confirmation modal 2019-09-04 16:59:51 -04:00
leigh-mil
46345657c7 Remove unused code from the totals box functionality that has been since removed 2019-09-04 14:50:26 -04:00
leigh-mil
f5ce35187b Make sure form correctly validates after CLIN is removed 2019-09-04 14:50:26 -04:00
leigh-mil
27d3f46cc9 Make remove CLIN button work 2019-09-04 14:09:34 -04:00
leigh-mil
6f1f7f0d3d Use to-form Vue component instead of base-form in TO builder base template 2019-09-04 14:09:34 -04:00
leigh-mil
23b67ede15 Add remove CLIN button 2019-09-04 14:09:34 -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
dandds
dfb4536b5d Do not add User.permission_sets to sample portfolio users 2019-09-04 13:02:53 -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
leigh-mil
7f4e200bc3
Merge pull request #1047 from dod-ccpo/optional-tag
Add optional label to inputs
2019-09-04 11:28:38 -04:00
leigh-mil
e39d2fe191 Use caller for date picker to show alert message 2019-09-04 11:21:12 -04:00
leigh-mil
659bd131b3 Fix card and input widths 2019-09-04 11:14:31 -04:00
leigh-mil
08b4513797 Remove conditional before assigning clinNumber because an empty string was returning false 2019-09-04 11:04:05 -04:00
leigh-mil
cbbbfad494 Don't use nbsp 2019-09-04 10:51:34 -04:00
dandds
d62027b2e7
Merge pull request #1046 from dod-ccpo/tests-debug
Enable debug mode in tests.
2019-09-03 16:08:42 -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
leigh-mil
4d24f97ed7 Add optional label to text, options, phone, and multi-checkbox inputs
Use new optional attribute on fields that are optional
Update styling to fit optional label and update translations
2019-09-03 15:34:07 -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
1b6a3ca644 Fix header layout 2019-09-03 13:52:16 -04:00
leigh-mil
90b84a1ffe move text to translations file 2019-09-03 13:38:05 -04:00
leigh-mil
68cd90a7a4 Style PoP Section 2019-09-03 13:25:53 -04:00
leigh-mil
f08088c736 Styling for Period of Performance Section 2019-09-03 13:25:53 -04:00
leigh-mil
8a16b61e80 Styling for CLIN Funding section 2019-09-03 13:25:53 -04:00