Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/23/18 14:00:03 (6 years ago)
Author:
jzenisek
Message:

#2839

  • adapted handling of cascading revocations of project-user permissions and project-resource assignments: from deleting all AssignedJobResource (formerly) to deleting only entries which are effected by the previously mentioned revocations (now)
  • implemented job update (client side)
  • corrected & improved stateful project/resource selection dialog
  • corrected resource statistic calculation in project/resource selection dialog
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectResourcesView.cs

    r15627 r15642  
    100100      await SecurityExceptionUtil.TryAsyncAndReportSecurityExceptions(
    101101        action: () => {
    102           SetAssignedProjectResources(Content.Id, newAssignedResources.Select(x => x.Id), false, true);
     102          SetAssignedProjectResources(Content.Id, newAssignedResources.Select(x => x.Id), false, true, false);
    103103        });
    104104      UpdateResourceTree();
     
    108108      await SecurityExceptionUtil.TryAsyncAndReportSecurityExceptions(
    109109        action: () => {
    110           SetAssignedProjectResources(Content.Id, newAssignedResources.Select(x => x.Id), false, false);
     110          SetAssignedProjectResources(Content.Id, newAssignedResources.Select(x => x.Id), false, false, false);
    111111        });
    112112      UpdateResourceTree();
     
    156156    }
    157157
    158     private void SetAssignedProjectResources(Guid projectId, IEnumerable<Guid> resourceIds, bool reassign, bool cascading) {
     158    private void SetAssignedProjectResources(Guid projectId, IEnumerable<Guid> resourceIds, bool reassign, bool cascading, bool reassignCascading) {
    159159      if (projectId == null || resourceIds == null) return;
    160160      HiveServiceLocator.Instance.CallHiveService(s => {
    161        s.SaveProjectResourceAssignments(projectId, resourceIds.ToList(), reassign, cascading, true);
     161       s.SaveProjectResourceAssignments(projectId, resourceIds.ToList(), reassign, cascading, reassignCascading);
    162162      });
    163163    }
Note: See TracChangeset for help on using the changeset viewer.