hunk.code_window: 	for endpointID := range edgeJob.Endpoints {
   		handler.ReverseTunnelService.AddEdgeJob(endpointID, edgeJob)
   	}
   	return handler.DataStore.EdgeJob().Create(edgeJob)
   }
   func convertEndpointsToMetaObject(endpoints []portainer.EndpointID) map[portainer.EndpointID]portainer.EdgeJobEndpointMeta {
   	endpointsMap := map[portainer.EndpointID]portainer.EdgeJobEndpointMeta{}
  
hunk.labels: keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: 	return handler.DataStore.EdgeJob().Create(edgeJob.ID, edgeJob)
  
hunk.file_path: api/http/handler/edgejobs/edgejob_create.go
hunk.type: replace
file: import angular from 'angular';
  
  export class EdgeGroupsDatatableController {
    /* @ngInject */
    constructor($scope, $controller) {
      const allowSelection = this.allowSelection;
      angular.extend(this, $controller('GenericDatatableController', { $scope: $scope }));
      this.allowSelection = allowSelection.bind(this);
    }
  
    /**
     * Override this method to allow/deny selection
     */
    allowSelection(item) {
      return !item.HasEdgeStack;
    }
  }
  