6096 Commits

Author SHA1 Message Date
graham-dds
66f606d951 add permissions to new application routes 2019-09-24 10:16:49 -04:00
graham-dds
0bdbe755e3 Allow the ability to update environment names 2019-09-24 10:16:49 -04:00
graham-dds
2dd24aa286 Allow application creation without environments 2019-09-24 10:16:49 -04:00
graham-dds
8c8f0be761 Allow application creation without environments 2019-09-24 10:16:49 -04:00
graham-dds
6b74766df9 Add translation for next button in new app form 2019-09-24 10:16:48 -04:00
graham-dds
4c8bb0a35d change ulr_for arguments to new multistep form 2019-09-24 10:16:48 -04:00
graham-dds
f0593cde70 Break new application template into form steps 2019-09-24 10:16:48 -04:00
graham-dds
1a11182eef Break new-application JS component into form steps 2019-09-24 10:16:48 -04:00
graham-dds
8914419dac Break new application route into multiple routes 2019-09-24 10:16:48 -04:00
graham-dds
cd37e18178 Rename application-related forms 2019-09-24 10:16:48 -04:00
graham-dds
83479f60af Flash messages for saving/ submitting applications 2019-09-24 10:16:39 -04:00
dandds
7ea1ae5a34 Add a JS test for the clin-fields Vue component.
In order to do this, it was expedient to move the CLINFields Jinja macro
into its own file and pass in all the data it requires.
2019-09-24 09:37:30 -04:00
dandds
526dc94455
Merge pull request #1089 from dod-ccpo/quick-test-fix
Adjust environment claim test to avoid race condition
2019-09-23 15:27:09 -04:00
dandds
0d45be68d5 Adjust environment claim test to avoid race condition 2019-09-23 14:53:18 -04:00
richard-dds
23319e0c39 Remove unused import 2019-09-23 11:45:33 -04:00
richard-dds
399cf74ed6 Only provision EnvironmentRoles with active ApplicationRoles 2019-09-23 11:30:06 -04:00
richard-dds
f523db4d2d Squash migrations related to env role provisioning 2019-09-23 10:44:37 -04:00
dandds
46f8e07729
Merge pull request #1087 from dod-ccpo/to-step3-testing
Initial JS tests for the Vue TOForm component.
2019-09-23 10:32:23 -04:00
leigh-mil
c18d44701e
Merge pull request #1086 from dod-ccpo/ie11-header-bug
Ie11 header bug
2019-09-23 10:24:05 -04:00
leigh-mil
b837700612
Merge pull request #1085 from dod-ccpo/total-funding-bug-168516197
Total and Obligated Funding % Bug
2019-09-23 10:19:38 -04:00
dandds
112f0e0ab2 Initial JS tests for the Vue TOForm component.
This adds BeautifulSoup to the Python dev dependencies so that we can
render an entire page and then extract the Vue component we need.
Ideally, we should refactor all the Vue components so that they live in
Jinja macros and we can render those macros directly.
2019-09-20 15:24:55 -04:00
leigh-mil
7402c0c84e Fix icon alignment 2019-09-20 13:39:09 -04:00
leigh-mil
a342aed7e2 Remove max width on p element in the header 2019-09-20 13:38:56 -04:00
leigh-mil
61a3affd11 Add if statement for when percentage is over 100 2019-09-20 13:13:15 -04:00
richard-dds
4eee06ba44 Add test for do_provision_user 2019-09-20 11:43:19 -04:00
richard-dds
2fca542100 Implement dispatch query for provision_user 2019-09-20 11:37:18 -04:00
richard-dds
1ef4e437d7 Schedule beat task for dispatch_create_user 2019-09-20 11:00:52 -04:00
richard-dds
d9e52c7741 Fix test_create_or_update_user 2019-09-20 10:12:23 -04:00
richard-dds
d1e146f577 Add create_user task 2019-09-19 16:56:36 -04:00
richard-dds
4ba3e6cd97
Merge pull request #1082 from dod-ccpo/env-provisioning-tweaks
Tweaks to environment provisioning jobs
2019-09-19 15:29:25 -04:00
richard-dds
48decf0f8b Record failures to env provisioning jobs 2019-09-19 14:38:53 -04:00
richard-dds
6c7667b7fc Filter out deleted envs in dispatch_create_environment 2019-09-19 14:24:39 -04:00
graham-dds
d6742e5169
Merge pull request #1081 from dod-ccpo/vscode-debugging
coerce unipath objects to strings in app.py
2019-09-19 13:49:25 -04:00
dandds
2ba8c1b0cb
Merge pull request #1078 from dod-ccpo/env-beat-schedule
Add a beat processing schedule for environment provisioning jobs.
2019-09-19 10:55:33 -04:00
graham-dds
dab1efd564 coerce unipath objects to strings in app.py
- This change allows the VSCode debugger to work with the app, since it
expects filepaths to be string objects
2019-09-19 10:39:31 -04:00
dandds
b58c3d1222
Merge pull request #1080 from dod-ccpo/new-app-member-flash-update
Update the flash message for when a new application member is added.
2019-09-19 09:40:29 -04:00
dandds
7bb9400ea7 Update the flash message for when a new application member is added. 2019-09-19 09:34:00 -04:00
richard-dds
60a5bb8c19
Merge pull request #1079 from dod-ccpo/auto-allowlist-revision-ids
Secrets whitelist alembic revision ids
2019-09-18 16:46:59 -04:00
richard-dds
292cfdd0e8 Secrets whitelist alembic revision ids 2019-09-18 16:40:36 -04:00
dandds
67ff70201e Add beat worker to the deployment.
We will run a separate pod for the beat worker. There should only ever
be a single beat worker (to avoid redundant work) so the number of
replicas needs to be managed independently.

This adds both the Kubernetes config for the new pod and additional
CircleCI config to swap a new image into the pod during CD.
2019-09-18 16:34:56 -04:00
dandds
82c34ee9b1 Display real environment processing status. 2019-09-18 16:34:56 -04:00
richard-dds
2fc7a0d460 Add small sleep to claims test to avoid random failures 2019-09-18 16:34:56 -04:00
dandds
3a23c54723 Add a beat processing schedule for environment provisioning jobs.
The beat schedule is set to once per minute for each of the three
environment provisioning tasks.

Adding a beat schedule surfaced two problems that are addressed here
with the following changes:
- Commit the SQLALchemy session in order to release the environment
  lock. Otherwise the change to the `claimed_until` field is not
  persisted.
- Set `none_as_null` on the JSOB fields on the `Environment`. This
  avoids problems with querying on Postgres JSON fields that are empty.

This also adds a small change to the development command for the Celery
worker. Multiple child processes were executing the beat jobs, which
lead to exceptions for environment locks and confusing log output. This
contrains the dev command to a single Celery worker.
2019-09-18 16:34:56 -04:00
leigh-mil
71befc96ef
Merge pull request #1070 from dod-ccpo/edit-app-member-modal
Edit app member modal
2019-09-18 11:39:33 -04:00
leigh-mil
b7b625750f Use data property of PermissionsForm to return the form data is the correct format 2019-09-18 11:16:55 -04:00
leigh-mil
b35e8cfe8e Update NewMemberForm so that it has the same data structure as the UpdateMemberForm 2019-09-18 11:16:55 -04:00
leigh-mil
a7f9be5d48 Add comments to explain test 2019-09-18 11:16:55 -04:00
leigh-mil
cf172c486c Remove test for old applications.settings data structure and replace with test for refactored get_members_data() function 2019-09-18 11:16:55 -04:00
leigh-mil
d019989f6d Refactor get_members_data() into multiple smaller functions 2019-09-18 11:16:55 -04:00
leigh-mil
6de02e874b Update edit app member form so the save button becomes active on change 2019-09-18 11:16:55 -04:00