6561 Commits

Author SHA1 Message Date
leigh-mil
6e6b910d5a
Merge pull request #1198 from dod-ccpo/ignore-audit-log-in-coverage
Exclude audit log from coverage
2019-11-21 16:25:37 -05:00
dandds
e0c58290c9
Merge pull request #1201 from dod-ccpo/reset-reset-db
Adjust script to drop all tables and reset from scratch.
2019-11-21 15:56:02 -05:00
tomdds
f4c1055c29
Merge pull request #1181 from dod-ccpo/load-testing
Load Testing
2019-11-21 15:38:16 -05:00
dandds
cd3cb7b614 Adjust script to drop all tables and reset from scratch.
This updates the script for resetting the database so that it drops and
recreates all the tables, instead of disabling Postgres triggers and
truncating most of the tables. The latter strategy requires superuser
permissions in Postgres that the db user we manage in Azure does not
have. The script now:

- drops the tables
- reruns the alembic migrations
- reseeds the permission sets
2019-11-21 15:37:31 -05:00
leigh-mil
dd148f0837 exclude audit log related functions from coverage 2019-11-20 13:46:44 -05:00
leigh-mil
ef12701dbb Default creating an invite in the AppliationRoleFactory to True and fix tests 2019-11-20 12:09:46 -05:00
leigh-mil
8aa302357b Move label display logic into the Label macro 2019-11-20 12:09:46 -05:00
leigh-mil
58a0b2dd9d Move display status logic to be a property of an ApplicationRole 2019-11-20 12:08:41 -05:00
leigh-mil
9f90f5abbd Update app member status labels to accurately reflect member's current status 2019-11-20 11:59:48 -05:00
leigh-mil
3f146c7da8
Merge pull request #1195 from dod-ccpo/vue-emitters-fix_part-4
Vue emitters fix part 4 - clean up
2019-11-20 11:54:51 -05:00
leigh-mil
223420a747
Merge pull request #1197 from dod-ccpo/remove-csp-alert
Remove csp alert
2019-11-20 11:54:27 -05:00
leigh-mil
516a01840e Remove csp alert 2019-11-19 16:48:43 -05:00
graham-dds
8767ed8a27
Merge pull request #1193 from dod-ccpo/goodbye_styleguide
Remove developer styleguide from project
2019-11-19 15:16:12 -05:00
leigh-mil
a6a908ae55 Remove other events emitted from root 2019-11-19 14:49:11 -05:00
leigh-mil
04b9250ea1 Create emitter function for field-change event 2019-11-19 14:49:11 -05:00
leigh-mil
bc0382834b Remove old field-mount and field-change emitters and listeners.
Replace FormMixin with new functionality.
2019-11-19 14:49:11 -05:00
dandds
280778ab5f Set SERVER_NAME correctly for staging Celery workers. 2019-11-19 13:36:47 -05:00
graham-dds
fea8c9bce9 Remove developer styleguide from project
Since we're actively moving our styles toward a pure of a USWDS
implementation as possible, this styleguide page is becoming
increasingly outdated.
2019-11-19 13:34:14 -05:00
leigh-mil
3576551f42
Merge pull request #1191 from dod-ccpo/vue-emitters-fix_part-3
Vue emitters fix part 3 - Portfolio Settings page
2019-11-19 10:21:41 -05:00
leigh-mil
05210d434b
Merge pull request #1188 from dod-ccpo/new-app-form-step-3-bug
Edit member perms in new app form bugfix
2019-11-19 10:20:53 -05:00
tomdds
e08c5b278e Add load testing readme 2019-11-18 15:13:23 -05:00
tomdds
a4c106ee0f Add referer headers to load tests for csrf 2019-11-18 14:30:34 -05:00
leigh-mil
622234bc51 Remove unused Vue component 2019-11-18 14:14:31 -05:00
leigh-mil
d4facd1e36 Update emitters for vue components on portfolio settings page 2019-11-18 14:14:31 -05:00
leigh-mil
7c8717c2fe Add tests for the applications.new routes for adding a new member and updating a member
Add tests for creating and updating app member helper methods
2019-11-18 14:09:52 -05:00
tomdds
84e5fa9bd1 Improve id extraction for apps and portfolios 2019-11-18 13:47:42 -05:00
tomdds
9b64d26961 Extract new entity creation percentages to constants 2019-11-18 13:47:17 -05:00
dandds
b6e8db2e50
Merge pull request #1190 from dod-ccpo/reset-db
Rename script for resetting the database.
2019-11-18 10:53:04 -05:00
dandds
7e468f8ac6 Rename script for resetting the database.
Renamed this script because it's current name is misleading. It does not
just remove sample data; it truncates every table except the alembic
version table and `permission_sets`.
2019-11-18 10:17:44 -05:00
leigh-mil
522f91795c
Merge pull request #1180 from dod-ccpo/vue-emitters-fix_part-2
Vue emitters fix part 2 -- New app form and app settings
2019-11-18 10:08:50 -05:00
leigh-mil
f40ce3d1aa
Merge pull request #1189 from dod-ccpo/remove-edit-link-for-viewonly
Remove edit links and menus for users with view only access
2019-11-18 09:40:33 -05:00
leigh-mil
f9fd9cac13 When editing member perms through the new app form, return to new app form step 3 after update member form is submitted 2019-11-15 17:37:32 -05:00
leigh-mil
1ecd786857 Update BaseForm and nested vue components to properly use emitters 2019-11-15 17:36:57 -05:00
leigh-mil
0abe27eb36 Remove form mixin from toggler component 2019-11-15 17:36:57 -05:00
leigh-mil
3e57579990 Use BaseForm instead of specialized Vue component for step 1 of the application form
Remove unnecessary event listener
2019-11-15 17:35:11 -05:00
leigh-mil
d1e1a2a36a Update TO form and nested components to emit directly to parent components instead of emitting from the root component 2019-11-15 17:35:11 -05:00
leigh-mil
f76af8f646 Remove edit links and menus for users with view only access 2019-11-15 15:48:09 -05:00
tomdds
03d816884b Expose locust port, add csrf support, and fix app_links 2019-11-15 15:10:24 -05:00
leigh-mil
1eaa14d603
Merge pull request #1179 from dod-ccpo/vue-emitters-fix
Vue emitters fix - TO form
2019-11-15 14:57:30 -05:00
leigh-mil
5c3643a18b
Merge pull request #1186 from dod-ccpo/fix-revoke-env-access-bug
Fix revoke env role bug
2019-11-15 14:48:03 -05:00
Jay R. Newlin (PromptWorks)
c226dd13a1
Merge pull request #1187 from dod-ccpo/ghost-update-20191115
Modifications to Ghost Inspector tests for the week ended 11-15-19
2019-11-15 11:41:34 -05:00
leigh-mil
a4f21dc7e6 Prevent error from being raised when user is not trying to update a
disabled env role

We were only checking to see if a role was disabled or deleted before
raising an error, so I added in a check to see if the user was trying to
update the env role before raising an error. The error should only be
raised if the role is disabled or deleted AND the user is trying to
assign a new role to the env role.

I also added in a disabled property to the EnvironmentRole model to make
things more readable.
2019-11-15 09:51:02 -05:00
Jay R. Newlin (PromptWorks)
889a0090aa Modifications to Ghost Inspector tests for the current week 2019-11-14 18:05:14 -05:00
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
dandds
b034d668a1
Merge pull request #1185 from dod-ccpo/celery-queues
Supply named default queue for Celery.
2019-11-14 16:12:07 -05:00
dandds
a0e2332b05
Merge pull request #1184 from dod-ccpo/fix-crl-test-bug
Fix bug in static CRL test.
2019-11-14 16:11:29 -05:00
dandds
88171aaee7 Supply named default queue for Celery.
Supplying this will prevent queue clashes between various ATAT sites
sharing the same Redis instance.

Note that the Celery documentation is currently wrong about the name for
configuring this:

https://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-task_default_queue

It specifies `CELERY_TASK_DEFAULT_QUEUE`, but
`CELERY_DEFAULT_QUEUE` is the value that Celery currently looks for.
This appears to be fixed in on an upcoming release:

https://github.com/celery/celery/issues/5575

This is worth keeping an eye on, since the configuration key could
change in the future.
2019-11-14 15:48:14 -05:00
dandds
3ddfc5c179 Fix bug in static CRL test.
A CRL test that relies on fixtures files was not getting a working copy
of the relevant CRL list it needed. This also adds a setup function to
the relevant test module so that we can clear and rebuild the CRL
location cache for the fixtures.
2019-11-14 14:12:07 -05:00
tomdds
c5c667a436 Remove load-test dependencies from main project 2019-11-14 12:52:59 -05:00
dandds
bf1badeff0
Merge pull request #1182 from dod-ccpo/lets-encrypt-manually
Configure K8s deployment for easy LetsEncrypt verification.
2019-11-14 12:46:25 -05:00