72 Commits

Author SHA1 Message Date
richard-dds
35150dfa10 Also remove enviornment access (stub) 2018-11-29 10:36:53 -05:00
richard-dds
3765a73dc1 Consolidate WorkspaceUser into WorkspaceRole 2018-11-05 14:20:07 -05:00
richard-dds
0f6fee9909 Add test for removing env role in update_environment_roles 2018-10-24 11:17:44 -04:00
richard-dds
c138df2b0f Allow user to select 'No Access' 2018-10-24 11:17:44 -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
richard-dds
b65fdd56a0 Fix regression in Projects.create
A new project's creator was not being assigned a role in the project's
environments.
2018-09-25 14:07:15 -04:00
richard-dds
141cbedff5 Shuffle commits around to fix audit log ordering 2018-09-25 13:12:06 -04:00
Montana
18776aa71c Fix tests 2018-09-25 11:13:24 -04:00
Montana
8fd1d93f2e Prevent saving environment roles as empty strings 2018-09-25 11:13:24 -04:00
Montana
3a978a1673 Fix bugs and write a test 2018-09-25 11:13:24 -04:00
Montana
e12c1f42db Move environment role method into domain 2018-09-25 11:13:24 -04:00
Montana
e9f9ff0cd5 Fix update environment role bug 2018-09-25 11:13:23 -04:00
Montana
5522811f4e Add permission check and refactor update_environment_role method 2018-09-25 11:13:23 -04:00
Montana
bead1990c9 Let input value be simple 2018-09-25 11:13:23 -04:00
Montana
ccce20c48c Update environment role with real data 2018-09-25 11:13:23 -04:00
Montana
0d80604fcd Fix bug 2018-09-25 11:13:23 -04:00
Montana
5a5d81eb7f Update the template to show real data 2018-09-25 11:13:22 -04:00
Montana
79c357dcab Write query to change the environment role based on mock data 2018-09-25 11:13:22 -04:00
richard-dds
eb99e72659 Create Projects.for_user and Environments.for_user 2018-09-10 13:42:24 -04:00
richard-dds
3edbfa3129 Add and list environment members 2018-09-06 13:53:19 -04:00
richard-dds
8ac271e83e Create environments while creating project 2018-08-22 17:06:13 -04:00
richard-dds
50e2666c3c Move Projects and Environments into their own files 2018-08-22 11:24:39 -04:00