split atat roles and workspace roles

This commit is contained in:
dandds
2018-10-01 15:38:25 -04:00
parent a4f51fe01d
commit 7af7b47bc1
3 changed files with 13 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
from atst.domain.roles import DEFINITIONS as ROLE_DEFINITIONS
from atst.domain.roles import WORKSPACE_ROLES as WORKSPACE_ROLE_DEFINITIONS
SERVICE_BRANCHES = [
(None, "Select an option"),
@@ -107,8 +107,7 @@ COMPLETION_DATE_RANGES = [
WORKSPACE_ROLES = [
(role["name"], {"name": role["display_name"], "description": role["description"]})
for role in ROLE_DEFINITIONS
if role["name"] not in ["ccpo", "default"]
for role in WORKSPACE_ROLE_DEFINITIONS
]
ENVIRONMENT_ROLES = [