dandds
43ea922218
Simplify environment role updates in app settings.
...
Use ApplicationRole.id instead of User.id in forms. This eliminates the
need for the function that checks whether a user is in a given
application, because looking up the application role will raise an error
if the user is not.
2019-05-24 13:35:00 -04:00
dandds
129f5e3031
Rewrite function that builds form data for app environment roles form.
...
- Adds a property to ApplicationRole model so that it knows its related
EnvironmentRole models.
- Rewrite the form data builder in the routes file so that it loops the
application members and their environment roles to build the data
structure.
2019-05-24 13:34:53 -04:00
leigh-mil
546e04555d
Update role div height
...
Move serialization into the route
change member.role to member.role_name in form and route
Return 400 for invalid form submission
2019-05-14 11:00:14 -04:00
leigh-mil
319cc17c1c
Start vue component for edit-environment-role
2019-05-14 10:58:22 -04:00
leigh-mil
addf2e97a1
Update form to nest all envs in one form
2019-05-14 10:58:22 -04:00
leigh-mil
060c6834bf
Add save button and temp member role toggle to env member form
2019-05-14 10:58:22 -04:00
montana-mil
0c6f00bf4d
Merge pull request #785 from dod-ccpo/check-user-is-in-app-before-adding-env-role
...
Check user is in app before adding env role
2019-04-30 14:31:08 -04:00
Montana
6822680bc8
Ensure that a member is an application member before adding the user to an environment
2019-04-29 11:06:37 -04:00
George Drummond
079672c818
Update application environments
2019-04-29 10:46:21 -04:00
leigh-mil
73e4057c3d
Remove unused imports
2019-04-25 10:47:39 -04:00
leigh-mil
5e415edaef
Update form to handle No access
2019-04-25 10:47:39 -04:00
leigh-mil
c085f27af8
Update env roles by environment
2019-04-25 10:47:39 -04:00
dandds
0bde431a70
extend soft delete functionality to app and env roles
2019-04-15 15:58:38 -04:00
dandds
b58aef2c6b
domain methods for deleting apps and environments
2019-04-15 15:58:38 -04:00
dandds
1c0c5dd9c5
soft deletes available for applications and environments
...
- parent relation will not include applications or environments marked
as deleted
- domain classes will exclude deleted objects from selections
- changed some test factories to use domain_word for resource names,
because they were using person names and it bugged me
2019-04-15 15:58:38 -04:00
dandds
4a0dd2d432
remove unused domain methods and arguments
2019-03-22 06:31:20 -04:00
dandds
d3c3209fc0
cleanup unused portfolio roles
2019-03-15 07:14:49 -04:00
dandds
d3d36822df
workspace -> portfolio everywhere
2019-01-14 16:00:17 -05:00
dandds
3fc323d785
project -> application everywhere
2019-01-14 16:00:17 -05:00
Patrick Smith
28e0d423fd
Create user account in CSP when adding an environment role
2019-01-08 12:19:51 -05:00
Patrick Smith
334babe5ff
Hook into cloud provider when creating an env/app
2019-01-07 17:30:34 -05:00
dandds
a75c19188f
display message for successfully updating environment role / access
2018-12-12 11:39:58 -05:00
richard-dds
3765a73dc1
Consolidate WorkspaceUser into WorkspaceRole
2018-11-05 14:20:07 -05:00
richard-dds
c69b7caffc
Formatting
2018-10-24 11:17:44 -04:00
richard-dds
0f6fee9909
Add test for removing env role in update_environment_roles
2018-10-24 11:17:44 -04:00
richard-dds
7a23b09676
Formatting
2018-10-08 11:40:15 -04:00
richard-dds
40557a5494
Merge SuperFactories into Factories, overriding _create
2018-10-08 10:36:02 -04:00
richard-dds
9061c3515c
Refactor test_update_environment_roles
2018-10-07 11:52:28 -04:00
richard-dds
e383ee533a
Super factories!
2018-10-05 16:48:12 -04:00
Patrick Smith
7b2a099ef3
Filter environments for user with given project id
...
Previously, calling `Environment.for_user(user, project)` would return
environments a user has access to across all projects. Now, we will only
return the relevant environements. This was the cause of a visual bug
where extra environments were shown in the project list.
2018-09-30 22:06:10 -04:00
Montana
18776aa71c
Fix tests
2018-09-25 11:13:24 -04:00
Montana
3a978a1673
Fix bugs and write a test
2018-09-25 11:13:24 -04:00