5968 Commits

Author SHA1 Message Date
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
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
leigh-mil
e341a73dd1 Remove unused code 2019-09-18 11:16:55 -04:00
leigh-mil
303d89088b Styling for edit member modal 2019-09-18 11:16:54 -04:00
leigh-mil
2deaea98aa Move common form fields from app member form into a macro 2019-09-18 11:16:54 -04:00
leigh-mil
80dcb9c580 Move perms so they are at the top level of the form so that the data is properly populated
Add form fields for all environments in update member form
2019-09-18 11:16:54 -04:00
leigh-mil
93530e903f Create route for updating app member 2019-09-18 11:16:54 -04:00
leigh-mil
ee0e6c7200 Move converting the form.permission_sets data from and obj to a list out of the form 2019-09-18 11:16:54 -04:00
leigh-mil
4dab326eef Clean up code and formatting 2019-09-18 11:16:54 -04:00
leigh-mil
d296d3c237 Move modal outside of table and add csrf token 2019-09-18 11:16:54 -04:00
leigh-mil
89cb5a160c Populate form w/ data 2019-09-18 11:16:54 -04:00
leigh-mil
ab102470bf Make checkboxes work 2019-09-18 11:16:54 -04:00
leigh-mil
1fd2d9f496 Make form class for updating application member 2019-09-18 11:16:54 -04:00
richard-dds
4cafa513a2
Merge pull request #1074 from dod-ccpo/lock-environments
Implement simple locking system for environments
2019-09-17 15:44:25 -04:00
richard-dds
343e5a52ac Use session.refresh in tests 2019-09-17 15:29:33 -04:00
richard-dds
3f072bac3c Remove unused users 2019-09-17 15:28:07 -04:00
richard-dds
ade7dc08fd Only fetch environment_id in provisioning queries 2019-09-17 15:27:03 -04:00
richard-dds
53e993ea34 Filter out claimed environments 2019-09-17 11:54:18 -04:00
richard-dds
5b7a544403 Claim environment in all three provisioning tasks 2019-09-17 11:51:09 -04:00
richard-dds
68ac7aecdf More test cleanup 2019-09-17 11:47:06 -04:00
richard-dds
7004f7d37e Add a docstring and some comments 2019-09-17 11:32:24 -04:00
richard-dds
23261da3af Use None isntead of sql.null 2019-09-17 11:15:25 -04:00
richard-dds
c1b87356ce Update session while claiming
Not totally sure if this is necessary, but I feel like it makes more
sense to err on the side of more data correctness, rather than
hypothesizing about performance
2019-09-17 11:06:23 -04:00
richard-dds
abeadee3f3 Claim resource only temporarily 2019-09-17 11:03:33 -04:00
richard-dds
945debe6ee Move claim_for_update to models.utils 2019-09-17 10:39:59 -04:00
leigh-mil
799112ba5d
Merge pull request #1076 from dod-ccpo/home-pg-content
Updates to homepage
2019-09-17 10:07:15 -04:00
leigh-mil
70b142071e
Merge pull request #1075 from dod-ccpo/mock-data-for-testing
Mock data for testing
2019-09-17 10:07:05 -04:00
leigh-mil
c1476ae3d9 Updates to homepage 2019-09-17 09:54:29 -04:00
leigh-mil
15a844fa80 Fix html 2019-09-17 09:53:26 -04:00
richard-dds
67a2905d51 Make claim_for_update easier to follow 2019-09-16 17:03:57 -04:00