6347 Commits

Author SHA1 Message Date
graham-dds
8d267a2a45 Remove required title and avatar icon from modal 2019-10-25 13:18:14 -04:00
graham-dds
c534dd10f2 Change text on step 2 of adding a member to an app 2019-10-25 13:17:21 -04:00
leigh-mil
a41c2edca3 add revoke invite link back 2019-10-25 13:16:12 -04:00
Jay R. Newlin (PromptWorks)
2ee30fec79
Merge pull request #1135 from dod-ccpo/readme-fix
Modified README for typo 'script' vs 'scripts' directory
2019-10-24 14:51:29 -04:00
richard-dds
c66b1ef2f9 Add mypy and add typechecking step to script/test
Only check atst/domain/csp/cloud.py for now
2019-10-24 14:44:53 -04:00
Jay R. Newlin (PromptWorks)
c21dc1cf8c Modified for typo script vs scripts directory 2019-10-24 14:18:09 -04:00
leigh-mil
0bb801dd12 Remove horizontal scroll bar from modals 2019-10-23 11:12:08 -04:00
leigh-mil
76ab44ca69
Merge pull request #1130 from dod-ccpo/app-settings-styling_part-4
App settings styling - team table
2019-10-23 10:45:45 -04:00
leigh-mil
60b05a1c6f
Merge pull request #1134 from dod-ccpo/ccpo-label-bug-fix
Remove optional tag from add new ccpo user
2019-10-23 10:31:34 -04:00
richard-dds
bcdff64cc7
Merge pull request #1131 from dod-ccpo/dependabot/npm_and_yarn/safer-eval-1.3.5
Bump safer-eval from 1.3.3 to 1.3.5
2019-10-23 10:31:21 -04:00
leigh-mil
af79de140b Set optional=False on the TextInput macro 2019-10-22 15:23:28 -04:00
leigh-mil
83967e6ed9 Delete unused component and macro 2019-10-22 15:12:19 -04:00
leigh-mil
14fcef8c87 Delete redundant css 2019-10-22 14:33:32 -04:00
leigh-mil
f71f2c91fb Update app members blank slate and section header text 2019-10-22 14:33:30 -04:00
leigh-mil
176b9b4e25 Final tweaks to the app members table 2019-10-22 14:33:06 -04:00
leigh-mil
750ea6568b Add label macro 2019-10-22 14:33:06 -04:00
leigh-mil
b1a18f83f3 Update table border color 2019-10-22 14:33:06 -04:00
leigh-mil
6ca08502ed Import environments macro with context so you don't need to pass perms 2019-10-22 14:33:06 -04:00
leigh-mil
f76fd0b567 Move files into applications/fragments 2019-10-22 14:32:51 -04:00
leigh-mil
0f0d9464d8 Update styling for tables across the site 2019-10-22 14:08:31 -04:00
graham-dds
bb160bbffa
Merge pull request #1132 from dod-ccpo/bugfix/new_app_step_3_modal
Import macro with context to supply perms
2019-10-22 10:14:52 -04:00
graham-dds
0d3aff54c9 Import macro with context to supply perms
A bug was caused by using the MemberManagementTemplate macro and not supplying all of the necessary
kwargs. Intially, this bug was fixed by supplying the kwargs used by the
macro at the time, but in this refactor, we simply remove those kwargs
and refer to the permissions directly in the template by importing the
macro with context.
2019-10-22 09:32:36 -04:00
dependabot[bot]
dc986f186c
Bump safer-eval from 1.3.3 to 1.3.5
Bumps [safer-eval](https://github.com/commenthol/safer-eval) from 1.3.3 to 1.3.5.
- [Release notes](https://github.com/commenthol/safer-eval/releases)
- [Commits](https://github.com/commenthol/safer-eval/compare/v1.3.3...v1.3.5)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-21 22:28:30 +00:00
Jay R. Newlin (PromptWorks)
e39adb9532
Merge pull request #1129 from dod-ccpo/ghost-seed-roles
Seed roles in the container used for integration tests.
2019-10-21 16:01:27 -04:00
graham-dds
7e1a353db5
Merge pull request #1127 from dod-ccpo/audit_log_feature_flag
Audit log feature flag
2019-10-21 15:54:41 -04:00
graham-dds
8c0b0da284
Merge pull request #1128 from dod-ccpo/bugfix/new_app_step_3_modal
Bugfix: Add permissions kwargs to member modal
2019-10-21 15:32:53 -04:00
dandds
62657b36ae Seed roles in the container used for integration tests. 2019-10-21 15:24:07 -04:00
graham-dds
9c50585589 Bugfix: Add permissions kwargs to member modal 2019-10-21 14:11:55 -04:00
graham-dds
9de90d796d Rename audit log feature flag config variable 2019-10-21 11:36:53 -04:00
graham-dds
c27e0e618e apply feature flag to /activity-history route 2019-10-21 11:36:53 -04:00
graham-dds
a1c672d89f Conditionally skip tests related to audit log 2019-10-21 11:36:53 -04:00
graham-dds
1ac9243749 edit create_audit_event method of AuditableMixin
- create dictonary of log data and log it. Only create insance of
AuditEvent if AUDIT_LOG_FEATURE_TOGGLE is set to True
2019-10-21 11:36:40 -04:00
graham-dds
2720240903 Conditionally render logs on AUDIT_LOG_FEATURE_TOGGLE 2019-10-21 10:32:58 -04:00
graham-dds
8e0ce0519d Add AUDIT_LOG_FEATURE_TOGGLE to flask app settings
- set in ini config
2019-10-21 10:32:58 -04:00
dandds
9c89664a64
Merge pull request #1121 from dod-ccpo/allow-pg-ssl
Make Postgres SSL connection configurable.
2019-10-21 10:25:34 -04:00
leigh-mil
4a61625048
Merge pull request #1126 from dod-ccpo/pop-bug-fixes
Display error when PoP start date and end date are the same
2019-10-21 09:26:02 -04:00
leigh-mil
6619c77df5
Merge pull request #1123 from dod-ccpo/add-test-templates-gitignore
Ignore js/test_templates
2019-10-18 12:06:30 -04:00
dandds
efcb9681d3 Make Postgres SSL connection configurable.
This will allow us to force SSL connections to the database in
production by setting two values:

- PGSSLMODE should be set to "verify-full". This forces the client to
  verify the server against a known CA: https://www.postgresql.org/docs/10/libpq-ssl.html
- PGSSLROOTCERT should be set to the path of the public cert for the
  relevant CA.

When the database connection is made, these values are passed to the
adapter. For local development, PGSSLMODE is set to "prefer" and
PGSSLROOTCERT is left unset.

Kubernetes config has been added to maintain the root CAs for both Azure
and AWS as k8s ConfigMap objects. These are mounted into the containers
and referenced by PGSSLROOTCERT in the container environment.
2019-10-17 16:05:19 -04:00
dandds
5cdead1175
Merge pull request #1125 from dod-ccpo/kubectl-migration-bug
Fix bug in kubectl command in script/cluster_migration
2019-10-17 16:04:45 -04:00
dandds
4169dcb310 Fix CI/CD bug with PGSSLROOTCERT.
Because I pushed the environment variable changes to the cluster
already, psycopg2 was automatically trying to connect to the database
using the file specified in PGSSLROOTCERT. That ConfigMap was not
mounted into the migrations container, so I'm doing that here.
2019-10-17 14:59:41 -04:00
leigh-mil
09f718b1d3
Merge pull request #1117 from dod-ccpo/app-settings-styling_part-3
App settings styling - delete app panel
2019-10-17 12:59:31 -04:00
leigh-mil
88d6ef32a4 Display error when PoP start date and end date are the same 2019-10-16 19:28:17 -04:00
leigh-mil
60d8d6ed10 Styling for delete section of app settings page 2019-10-16 18:12:42 -04:00
leigh-mil
1c79f1dfc9
Merge pull request #1114 from dod-ccpo/app-settings-styling_part-2
App settings styling - environments table
2019-10-16 18:10:09 -04:00
dandds
15f9fb8353
Merge pull request #1122 from dod-ccpo/set-server-name-2
Specify Flask SERVER_NAME value for Celery worker.
2019-10-16 14:17:35 -04:00
leigh-mil
75c57fb084
Merge pull request #1124 from dod-ccpo/ppoc-bug-fixes
PPoC bug fixes
2019-10-16 14:08:54 -04:00
leigh-mil
248e93103b Add js/test_templates to .gitignore file and remove ignored folder 2019-10-16 13:53:40 -04:00
leigh-mil
4d59ba68d9 Add optional arg to the OptionsInput macro call to remove the optional label from the form
Disable the button to update the PPoC when there is only one portfolio
member
2019-10-16 12:16:30 -04:00
dandds
fc637e933d Specify Flask SERVER_NAME value for Celery worker.
The Celery worker cannot render URLs for the app without having a
SERVER_NAME value set. AT-AT's ability to send notifications when an
environment is ready is broken as a result.

This commit sets a null default value for SERVER_NAME in the default
config file. A setting must exist in the INI file in order to be
over-written by an environment variable, which is why we declare it as
null here. There is an additional kwarg, "allow_no_value", that must be
passed to ConfigParser to allow null values.

This also applies the correct domains as SERVER_NAME environment
variables in the Kubernetes ConfigMaps for the AWS and Azure Celery
workers.
2019-10-16 11:57:18 -04:00
richard-dds
ff68c640de
Merge pull request #1116 from dod-ccpo/revert-user-deletion
Revert EnvironmentRole deletion functionality
2019-10-16 10:12:46 -04:00