leigh-mil
05aca75679
Fix typo and add flash message for when invite can't be revoked
2019-09-26 09:53:20 -04:00
leigh-mil
663fb9f288
Use ApplicationRoles.disable() instead of Applications.remove_member()
2019-09-26 09:53:20 -04:00
leigh-mil
a03ff56017
Invites are revokable if they are not expired, and add success flash message
2019-09-26 09:46:24 -04:00
leigh-mil
fd691bc0c1
Refactor Applications.remove_member
2019-09-26 09:46:24 -04:00
leigh-mil
ed116ee791
Delete env roles associated with disabled app role
2019-09-26 09:46:23 -04:00
leigh-mil
5c54c043c0
Add route for applications.revoke_invite
2019-09-26 09:46:23 -04:00
dandds
4f8cbc2b68
Delete unused Jinja macros and rearrange templates.
...
Templates and fragments that relate to specific resources (portfolios,
applications, task orders) should reside in directories named for the
relevant resource. This also matches the way the application routes are
distributed among modules named for each resource type.
2019-09-25 11:19:56 -04:00
tomdds
494978fabd
Merge pull request #1077 from dod-ccpo/cloud-provision-errors
...
First pass at Cloud Provision Exceptions
2019-09-24 14:00:47 -04:00
graham-dds
7e340936dc
Merge pull request #1088 from dod-ccpo/make-application-creation-multistep
...
Make application creation multistep
2019-09-24 13:56:36 -04:00
tomdds
ff8119acd1
Integrate errors with MockCloudProvider
2019-09-24 13:54:41 -04:00
tomdds
5aa5acfb2a
Remove redundant EnvironmentExistsException
2019-09-24 13:53:41 -04:00
tomdds
08f98a557f
Create separate authentication and authorization exceptions
2019-09-24 13:53:41 -04:00
tomdds
34c616ce63
First pass at Cloud Provision Exceptions
2019-09-24 13:53:41 -04:00
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
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
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
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
d1e146f577
Add create_user task
2019-09-19 16:56:36 -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
7bb9400ea7
Update the flash message for when a new application member is added.
2019-09-19 09:34:00 -04:00
dandds
82c34ee9b1
Display real environment processing status.
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
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
d019989f6d
Refactor get_members_data() into multiple smaller functions
2019-09-18 11:16:55 -04:00
leigh-mil
e341a73dd1
Remove unused code
2019-09-18 11:16:55 -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
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
7004f7d37e
Add a docstring and some comments
2019-09-17 11:32:24 -04:00