6569 Commits

Author SHA1 Message Date
dandds
969293f5b2 Remove the Celery schedule for the environment baseline task. 2019-10-30 13:03:11 -04:00
dandds
23c4ba32eb CI/CD uses Docker containers exclusively and removes CircleCI Orbs.
The CircleCI Orbs were useful for getting started, but now that we only
have to deploy to one provider our pipeline should be tailored to
efficiently push to just that environment. This inlines all the relevant
pieces from the Orbs we were relying on as bash/sh commands instead.

This builds the Docker images upfront. Since we have a multi-stage
Dockerfile, it builds the first stage as a separate image and then
proceeds to build the complete image. This is done so that the first
stage (called "builder") can be used for testing. It retains executables
like pipenv that we need to install development dependencies needed for
tests.

Other notes:
- CircleCI does not persist Docker images between jobs. As a
  work-around, we use the CircleCI caching mechanism to create a named
  cache with *.tar copies of the images. Subsequent jobs use the cache
  and load the images.
- Both the test and integration-tests jobs need to make minor
  modifications to the container to run correctly. The test job needs to
  install the development Python dependencies, and the integration-tests
  job needs to rebuild the JS bundle so that it uses the mock uploader
  (the container is build to use the Azure uploader by default).
- The test and integration-tests jobs run in parallel.
- This adjusts the Dockerfile so that the TZ environment variable is set
  for both stages of the build.
2019-10-30 12:04:21 -04:00
richard-dds
36dc66504c
Merge pull request #1147 from dod-ccpo/disable-user
Implement EnvironmentRoles.disable
2019-10-30 11:35:39 -04:00
richard-dds
1746c297d1 Use deterministic "mock-test" CSP in CI 2019-10-29 16:19:53 -04:00
richard-dds
910d31df30 Remove AwsUploader 2019-10-29 16:02:48 -04:00
richard-dds
d1e6533824 Implement EnvironmentRoles.disable 2019-10-29 15:57:57 -04:00
richard-dds
ec44d4a560
Merge pull request #1143 from dod-ccpo/consolidate-csp-interface
Simplify CloudProviderInterface and remove AWS impl.
2019-10-29 13:47:14 -04:00
dandds
3456f37396
Merge pull request #1142 from dod-ccpo/bugfix/revoke-deleted-user
Bugfix: Invited but disabled portfolio member shouldn't be able to reactivate self
2019-10-29 11:53:58 -04:00
graham-dds
5526356938 remove TODO from admin.py 2019-10-28 15:37:50 -04:00
graham-dds
eb22d5ec1e Invitation revoking & role disabling to base class 2019-10-28 15:37:43 -04:00
graham-dds
5f5fbd2b91 Allow submit buttons to be valid on initial render 2019-10-28 15:25:18 -04:00
richard-dds
4da8c923ed Remove boto3 dependency 2019-10-28 14:01:03 -04:00
richard-dds
184b58d5d2 Remove AWSCloudProvider 2019-10-28 13:55:34 -04:00
richard-dds
6ea17bb4f8 Merge create_environment and create_environment_baseline 2019-10-28 13:39:40 -04:00
graham-dds
ccaabcaab0 Add revoke invitation logic to port. admin route 2019-10-28 13:15:42 -04:00
graham-dds
a0bccc64a9 Disable PortfolioRole when revoking an invite 2019-10-28 13:14:39 -04:00
leigh-mil
27df678aaf
Merge pull request #1138 from dod-ccpo/remove-scroll-revoke-button
App settings bugfixes
2019-10-28 12:52:16 -04:00
dandds
380a9beb6f
Merge pull request #1140 from dod-ccpo/azure-ci
Update CI and remove AWS config.
2019-10-28 11:34:25 -04:00
richard-dds
7c0179a108
Merge pull request #1136 from dod-ccpo/typecheck-cloud
Add mypy and add typechecking step to script/test
2019-10-28 10:24:11 -04:00
dandds
85da084cd7 Update CI and remove AWS config.
This does the following:
- Consolidates the app_setup and test jobs into one. The test job was
  only one additional step, so it's not worth separating.
- Updates the Postgres image used to reflect what we're using for the
  deployed version of the site (i.e., v 10).
- Removes some unnecessary steps from the first job.
- Removes all AWS config so that CD will only push to the Azure
  container registry, run migrations against the Azure-hosted database,
  and rotate the container images in the Azure k8s cluster.
2019-10-27 15:07:23 -04:00
dandds
d514305f26 Remove unused scripts. 2019-10-26 16:15:32 -04:00
graham-dds
854ca686c0
Merge pull request #1139 from dod-ccpo/app-invitation-modal-changes
App invitation modal step 2 changes
2019-10-25 14:47:50 -04:00
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