5651 Commits

Author SHA1 Message Date
dandds
4d7af9a4d0 Fix portfolio user names in seed_sample.py script.
`script/seed_sample.py` was creating portfolio users with no names
because it was calling `Users.get_or_create_by_dod_id` with a DOD ID as
its only argument. This updates it to pass the rest of the profile
information for the sample user.
2019-08-14 14:43:35 -04:00
dandds
16c9b826b3
Merge pull request #1019 from dod-ccpo/upload-error-handling
Add validations and error states for TO upload form
2019-08-14 14:30:46 -04:00
richard-dds
51272922bb Update Vue test templates 2019-08-14 11:54:56 -04:00
richard-dds
56cec0694f Formatting 2019-08-14 11:40:23 -04:00
richard-dds
a7417b4f39 Add upload errors to translations file 2019-08-14 11:35:07 -04:00
richard-dds
36d39dc949 Use unique attachment object names 2019-08-14 10:39:58 -04:00
dandds
b1582e73d4
Merge pull request #1020 from dod-ccpo/pipenv-sync
Use pipenv sync command in Dockerfile.
2019-08-14 10:21:00 -04:00
leigh-mil
f4737ba7ff
Merge pull request #1014 from dod-ccpo/record-ccpo-user-activity
Record adding/removing CCPO users in Activity History
2019-08-14 09:53:33 -04:00
dandds
4baf397be2 Use pipenv sync command in Dockerfile.
`sync` is recommended for deployments. It installs exactly what's in
the Pipfile.lock and does not try to update the lockfile.

https://docs.pipenv.org/en/latest/advanced/#using-pipenv-for-deployments
2019-08-14 09:46:42 -04:00
leigh-mil
e59e3b959c Add listener to User model to record permission set updates and update user audit log template 2019-08-13 16:36:38 -04:00
leigh-mil
b26d8d575c
Merge pull request #1011 from dod-ccpo/remove-ccpo-user
Remove CCPO user
2019-08-13 16:29:07 -04:00
leigh-mil
852046a3e7 Change variable name from data to user_info because it was more descriptive 2019-08-13 16:23:11 -04:00
leigh-mil
87b173b035 Use tuple instead of a dict for the user data and form 2019-08-13 14:09:53 -04:00
richard-dds
330c9ef365 Correctly set and unset uploadError 2019-08-13 14:08:53 -04:00
richard-dds
6652d47104 Add custom message for object_name length validation 2019-08-13 13:58:36 -04:00
richard-dds
ac7de6b4d2 Formatting 2019-08-13 13:49:49 -04:00
richard-dds
b48154f738 Fix MockUploader by returning ok response 2019-08-13 10:51:49 -04:00
richard-dds
034645d013 Fix seed script 2019-08-13 10:51:44 -04:00
richard-dds
bc0fd4900a Prevent "there were some errors" from being flashed twice 2019-08-13 10:51:09 -04:00
richard-dds
71bb1be130 Validate filename and object_name for TO PDF upload 2019-08-13 10:51:09 -04:00
richard-dds
3ecb2cf84f Update copy for file upload failure 2019-08-13 10:51:09 -04:00
richard-dds
8d7c4672b0 Display file upload errors in form 2019-08-13 10:51:09 -04:00
leigh-mil
8b23173fef Only show disable link if user has delete ccpo user perms 2019-08-13 10:32:26 -04:00
leigh-mil
14978142b1 Use DeleteConfirmation macro 2019-08-13 10:32:26 -04:00
leigh-mil
7c65783d08 Add csrf token to remove ccpo user form 2019-08-13 10:32:26 -04:00
leigh-mil
0745539853 Move text into translations 2019-08-13 10:32:26 -04:00
leigh-mil
e35399d8f5 Update route function to revoke CCPO superuser status 2019-08-13 10:32:26 -04:00
leigh-mil
54239a520e Add revoke access button and modal, sketch out route function for removing cppo perms from a user 2019-08-13 10:17:24 -04:00
dandds
529a7b71c9
Merge pull request #1016 from dod-ccpo/detect-secrets
Scripts for finding accidental secrets in the repo.
2019-08-13 10:16:13 -04:00
tomdds
0410d82359
Merge pull request #1018 from dod-ccpo/new-user-dev
Allow creation of new users in dev mode
2019-08-13 10:13:56 -04:00
dandds
2a0168b1e6 Scripts for finding accidental secrets in the repo.
This adds the following:
- A detect-secrets dependency and a related script
  (`script/detect_secrets`) to find and alert developers to secrets
  added to the code. By default, the script will search staged and new,
  unstaged files. It can optionally search only staged files.
- A whitelist, `.secrets.baseline`, that tracks instances of secrets or
  false positives already in the repo.
- Modifies `script/test` to detect secrets as part of the test suite.
- Updates to the README regarding the use of detect-secrets.
2019-08-13 05:59:56 -04:00
tomdds
59f43c69ee Only populate passed info when creating new user 2019-08-12 10:14:49 -04:00
tomdds
f6447d49e0 Allow creation of new users in dev mode 2019-08-09 16:01:32 -04:00
dandds
a426af0d7d
Merge pull request #1017 from dod-ccpo/dotenv-script-update
Fix newline issues in script/write_dotenv.
2019-08-09 15:08:59 -04:00
dandds
d5706454e3 Fix newline issues in script/write_dotenv.
In `sh` on Alpine Linux in our Docker images, the newline characters in
the script were being interpreted as literals. This substitutes a
HEREDOC instead.
2019-08-09 14:55:18 -04:00
leigh-mil
0777bd3369
Merge pull request #1008 from dod-ccpo/add-ccpo-user
Add CCPO user
2019-08-09 14:15:40 -04:00
leigh-mil
14327e9a8b Use common translations for table headings, remove unnecessary class 2019-08-09 11:08:23 -04:00
leigh-mil
fa83dfe6bd When user not found, redirect to users page and show flash message 2019-08-09 11:08:23 -04:00
leigh-mil
43855c5495 Remove alert from confirm ccpo user page 2019-08-09 11:08:23 -04:00
leigh-mil
1783cd494d Add max length to dod id field in CCPO user form 2019-08-09 11:08:23 -04:00
leigh-mil
864e11ea11 Remove redundant 'ccpo' from ccpo route function names 2019-08-09 11:08:23 -04:00
leigh-mil
feb24b8e16 Break class method for ccpo perms into two methods instead of switching on a kwarg to determine if perms are given or removed 2019-08-09 11:08:23 -04:00
leigh-mil
0b2c7f5957 Remove unused imports and context processor 2019-08-09 11:08:23 -04:00
leigh-mil
1b86147ab6 Move text into translations file 2019-08-09 11:08:23 -04:00
leigh-mil
a6eb89ffb8 Add tests for route functions 2019-08-09 11:08:22 -04:00
leigh-mil
1f8337485f Move ccpo routes into their own file 2019-08-09 11:08:22 -04:00
leigh-mil
5b008e044a Add tests 2019-08-09 10:50:34 -04:00
leigh-mil
6b15b41d56 Formatting and styling of form 2019-08-09 10:50:34 -04:00
leigh-mil
9f54501df4 Add in alert for when user isn't found 2019-08-09 10:50:34 -04:00
leigh-mil
811a498bf4 Finish route for confirming CCPO user, add function to update user's ccpo perms, and add success flash message to template 2019-08-09 10:50:34 -04:00