6354 Commits

Author SHA1 Message Date
leigh-mil
c94570f83e Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-14 16:46:35 -05:00
leigh-mil
92ce3420b6
Merge pull request #1146 from dod-ccpo/app-members-perms-form
Add revoke access to app members perms/env roles form
2019-11-13 11:12:16 -05:00
richard-dds
f0101f1230
Merge pull request #1171 from dod-ccpo/remove-unused-config
Remove unused config
2019-11-13 10:09:17 -05:00
leigh-mil
06a36f23bc Raise error when a user attempts to update a disabled env role 2019-11-12 17:02:57 -05:00
leigh-mil
e8f21acf5b PR fixes 2019-11-12 16:59:22 -05:00
richard-dds
6a1e1b8de8 Remove STORAGE_PROVIDER from test config 2019-11-12 16:57:46 -05:00
richard-dds
4a66bf4d29 Remove prod.ini, becase it's useless 2019-11-12 16:57:46 -05:00
richard-dds
4b8296c6ea Remove unused configuration values from base.ini 2019-11-12 16:57:46 -05:00
leigh-mil
b653546768 Styling 2019-11-12 16:56:55 -05:00
leigh-mil
d33fcb6073 Fix issues with deleting roles:
1. Prevents roles from being created with the role 'None'
2. Only call EnvironmentRoles.delete() if the env_role exists
3. Update the filter on the role field of the app member form to return
'No Access'. This fixed an issue where if a role was deleted, then other
env roles belonging to the app member could not be updated because the
role field of the deleted env_role was invalid
2019-11-12 16:54:46 -05:00
leigh-mil
f928b776a6 Properly set deleted data for UpdateMemberForm and display suspended env access text
Styling for env name and role in update app member perms form
2019-11-12 16:54:46 -05:00
leigh-mil
d40c11a8f6 Change how env_roles are updated
This change makes it so that when an env_role is updated to be None, the
role property on the env_role is changed to be None in addition to being
marked as deleted. This also adds in a check so that previously deleted
env_roles cannot be reassigned a role.
2019-11-12 16:54:46 -05:00
leigh-mil
3a1a996469 Create macro for environment role field and update route so the correct data is passed to Environments.update_env_role to update or delete roles 2019-11-12 16:54:46 -05:00
leigh-mil
d324ec57ec Add field for deleted in the app members environment form 2019-11-12 16:54:46 -05:00
leigh-mil
54f3c2f8ba Update text and icon in modal
Update env_role status when it is deleted
2019-11-12 16:54:46 -05:00
leigh-mil
eb617ef68a
Merge pull request #1161 from dod-ccpo/app-members-edit-menu
App members edit menu
2019-11-12 16:46:44 -05:00
graham-dds
948976bb78
Merge pull request #1176 from dod-ccpo/bugfix/date-validation
Tweak date validation logic for months and days
2019-11-12 16:09:00 -05:00
leigh-mil
4218359bac
Merge pull request #1162 from dod-ccpo/env-name-bugfix
Env name bugfix
2019-11-12 15:24:53 -05:00
leigh-mil
9037c44498 Move filter out of class definition and change name of form field 2019-11-12 13:07:50 -05:00
leigh-mil
ab9b62f54b Update validators and filter to remove strings that contain only
whitespace

The validator ListItemRequired() was only checking for None and an empty
string, not for strings that were multiple whitespace characters. This
fixes this issue by checking each item with regex to make sure it
contains non whitespace characters

The filter remove_empty_string() also was not checking for strings that
were multiple whitespace characters. This was also fixed by using regex
tomake sure that the string contains non whitespace characters, and also
clips any trailing whitespace.
2019-11-12 13:07:50 -05:00
leigh-mil
045e06abee When validating that envs have names, make sure that names containing only strings are not valid 2019-11-12 13:07:50 -05:00
graham-dds
295088524c Tweak date validation logic for months and days
- valid months should be between 1 and 12, inclusive
- days should be between 1 and 31, inclusive
- swap a few lets for consts
2019-11-12 13:00:01 -05:00
leigh-mil
cfd73fec78 Use translations file 2019-11-12 12:01:33 -05:00
leigh-mil
aa7dbc2699 Remove unused styles 2019-11-12 11:44:38 -05:00
leigh-mil
98298db5f2 Add toggle drop down menu for app member edit 2019-11-12 11:44:38 -05:00
graham-dds
637a366baf
Merge pull request #1175 from dod-ccpo/bugfix/standardize-ordering
Standardize member and env name ordering
2019-11-11 16:08:23 -05:00
dandds
42e682e63f
Merge pull request #1169 from dod-ccpo/generalize-k8s
Use kustomize and envsubst to generalize k8s config.
2019-11-11 13:14:25 -05:00
Jay R. Newlin (PromptWorks)
608e3436ee
Merge pull request #1174 from dod-ccpo/gi-update-20191108
Ghost Inspector update 20191108
2019-11-11 11:19:03 -05:00
graham-dds
d73af9b919 Change description text to match default envs 2019-11-11 11:04:04 -05:00
graham-dds
a8d5201cc6 Standardize member and env name ordering 2019-11-08 15:06:25 -05:00
dandds
fd57036f74 Keep client CAs as a K8s ConfigMap.
The CAs used to verify clients are not secrets and can be committed to
the repository as K8s ConfigMaps. This updates the config to include
them.
2019-11-08 14:28:45 -05:00
dandds
630469744a Use kustomize and envsubst to generalize k8s config.
Adds a [kustomize](https://github.com/kubernetes-sigs/kustomize) overlay
for a new staging environment. Additionally, adds environment variables
in the place of certain pieces of information that need to be templated.

The K8s README ("deploy/README.md") has been updated to reflect the new
method for applying config.

This commit also removes the configuration for the AWS cluster and
references to AWS in the README.
2019-11-08 14:28:45 -05:00
leigh-mil
3d92ac4840
Merge pull request #1164 from dod-ccpo/env-members-bugfix
Environment bugfixes
2019-11-08 13:23:03 -05:00
dandds
0cee3c9959
Merge pull request #1172 from dod-ccpo/crl-storage-container
Create CRL_STORAGE_CONTAINER if it does not exist.
2019-11-08 10:49:39 -05:00
Jay R. Newlin (PromptWorks)
3a9070c154 Weekly updates or additions to Ghost Inspector tests 2019-11-08 10:39:37 -05:00
Jay R. Newlin (PromptWorks)
bf487b282d Added two new tests this week 2019-11-08 10:30:41 -05:00
dandds
1654d2ea9f Create CRL_STORAGE_CONTAINER if it does not exist.
In local development, the app will fail to start if it does not find the
directory specified by CRL_STORAGE_CONTAINER. This adds a few lines to
safely create that directory on startup and corresponding tests.
2019-11-08 06:21:56 -05:00
dandds
9cceb1880c
Merge pull request #1170 from dod-ccpo/static-fonts
Force removal of existing fonts symlink in Docker build.
2019-11-07 16:27:34 -05:00
dandds
253cc29c56 Force removal of existing fonts symlink in Docker build.
For local development, we symlink the USWDS fonts from the npm installed
copy into our static directory. This causes problems for the Docker
build because it is not expecting to find a pre-existing "static/fonts"
directory. This forcibly removes any existing "static/fonts" directory
to fix the issue.
2019-11-07 15:22:16 -05:00
graham-dds
e6d9dcf4bd
Merge pull request #1168 from dod-ccpo/bugfix/sort_environments
Bugfix: Ensure environment names are sorted when rendered
2019-11-07 13:55:13 -05:00
leigh-mil
865613935d Remove optional tag from edit env name form 2019-11-07 11:53:37 -05:00
leigh-mil
e5f83d2456 Update relationship between Environment and EnvironmentRole so only environment roles that are not deleted are included 2019-11-07 11:53:37 -05:00
graham-dds
f705ac2303 Ensure env roles are sorted for each member 2019-11-07 09:36:45 -05:00
dandds
17149efa09
Merge pull request #1167 from dod-ccpo/crl-test-bugfix
CRL test should skip JSON cache.
2019-11-06 12:00:05 -05:00
graham-dds
6bc1e0ba9a Ensure environment names are sorted when rendered 2019-11-06 11:53:31 -05:00
dandds
7ac29eff56 CRL test should skip JSON cache. 2019-11-06 06:08:48 -05:00
leigh-mil
7b96a05f95
Merge pull request #1154 from dod-ccpo/add-env-roles-to-app-members-table
Add env role to the app members table and truncate long env names
2019-11-05 15:58:25 -05:00
leigh-mil
da516554c2 Add env role to the app members table and truncate long env names 2019-11-05 11:46:33 -05:00
leigh-mil
6569bbd135
Merge pull request #1165 from dod-ccpo/ccpo-users-order
Sort ccpo users
2019-11-05 10:43:15 -05:00
dandds
d5bc49a7b9
Merge pull request #1156 from dod-ccpo/crl-issuer-cache
CRL Issuer Cache
2019-11-05 09:59:43 -05:00