message: Clean up of extraneous code
diff: @@ -25,6 +25,8 @@ enum AdvancedTaskDefinitionTarget {
  SystemWide,
  };
  +const TASK_PERMISSION_LEVELS = ['GUEST', 'MAINTAINER', 'DEVELOPER'];
  +
  const taskStatusTypeToString = R.cond([
  [R.equals('ACTIVE'), R.toLower],
  [R.equals('SUCCEEDED'), R.toLower],
  @@ -109,15 +111,11 @@ export const resolveTasksForEnvironment = async (
  Sql.selectAdvancedTaskDefinitionsForGroups(projectGroupsFiltered)
  );
  - //TODO: drop in system level tasks when we have them
  -
  //@ts-ignore
  let rows = R.uniqBy(o => o.name, R.concat(R.concat(environmentRows, projectRows), groupRows));
  //now we filter the permissions
  const currentUsersPermissionForProject = await currentUsersAdvancedTaskRBACRolesForProject(hasPermission, proj.projectId);
  - console.log(currentUsersPermissionForProject);
  - console.log(rows);
  //@ts-ignore
  rows = R.filter(e => currentUsersPermissionForProject.includes(e.permission), rows);
  @@ -125,8 +123,6 @@ export const resolveTasksForEnvironment = async (
  return rows;
  };
  -const TASK_PERMISSION_LEVELS = ['GUEST', 'MAINTAINER', 'DEVELOPER'];
  -
  const currentUsersAdvancedTaskRBACRolesForProject = async (hasPermission, projectId:number) => {
  const rbacPermissions = TASK_PERMISSION_LEVELS;
  @@ -144,7 +140,6 @@ const currentUsersAdvancedTaskRBACRolesForProject = async (hasPermission, projec
  return effectivePermissions;
  }
  -
  //TODO: these aren't really a concern right now - but they will be - we need to revisit security in them
  export const advancedTaskDefinitionArgumentById = async (
  root,
  @@ -162,39 +157,6 @@ export const advancedTaskDefinitionArgumentById = async (
  return R.prop(0, rows);
  };
  -// const checkUserPermissionOnAdvancedTask = (advancedTask: TaskRegistration, operation: string) => {
  -// const systemLevelTask =
  -// advancedTask.project == null && advancedTask.environment == null && advancedTask.groupName == null;
  -// const advancedTaskWithImage = advancedTask.type == AdvancedTaskDefinitionType.image;
  -// const needsAdminRightsToCreate =
  -// systemLevelTask || advancedTaskWithImage || advancedTask.groupName;
  -
  -// let projectObj = await getProjectByEnvironmentIdOrProjectId(
  -// sqlClientPool,
  -// environment,
  -// project
  -// );
  -
  -
  -// if (systemLevelTask || advancedTaskWithImage) {
  -// //if they pass this, they can do basically anything
  -// //In the first release, we're not actually supporting this
  -// //TODO: add checks once images are officially supported - for now, throw an error
  -// throw Error('Adding Images and System Wide Tasks are not yet supported');
  -// } else if (advancedTask.groupName) {
  -// const group = await models.GroupModel.loadGroupByIdOrName({name: advancedTask.groupName});
  -// await hasPermission('group', 'update', {
  -// group: group.id
  -// });
  -// } else if (projectObj) {
  -// //does the user have permission to actually add to this?
  -// //i.e. are they a maintainer?
  -// await hasPermission('task', `add:production`, {
  -// project: projectObj.id
  -// });
  -// }
  -// }
  -
  export const addAdvancedTaskDefinition = async (
  root,
  