Changeset 15908 for branches/2839_HiveProjectManagement
- Timestamp:
- 04/17/18 13:38:33 (7 years ago)
- Location:
- branches/2839_HiveProjectManagement
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/HeuristicLab.Clients.Hive.Administrator-3.3.csproj
r15576 r15908 284 284 </ProjectReference> 285 285 </ItemGroup> 286 <ItemGroup>287 <EmbeddedResource Include="Views\ProjectView.resx">288 <DependentUpon>ProjectView.cs</DependentUpon>289 </EmbeddedResource>290 </ItemGroup>291 286 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 292 287 <PropertyGroup> -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.Designer.cs
r15576 r15908 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProjectView));27 26 this.idLabel = new System.Windows.Forms.Label(); 28 27 this.idTextBox = new System.Windows.Forms.TextBox(); … … 193 192 // refreshButton 194 193 // 195 this.refreshButton.Image = ((System.Drawing.Image)(resources.GetObject("refreshButton.Image")));194 this.refreshButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Refresh; 196 195 this.refreshButton.Location = new System.Drawing.Point(72, 162); 197 196 this.refreshButton.Name = "refreshButton"; -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Access.DataAccess/3.3/AccessService.dbml
r15577 r15908 1 1 <?xml version="1.0" encoding="utf-8"?><Database Name="HeuristicLab.ClientManagement" Class="AccessServiceDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007"> 2 <Connection Mode="AppSettings" ConnectionString="Data Source= HIVELAB;Integrated Security=SSPI;Initial Catalog=HeuristicLab.AccessService" SettingsObjectName="HeuristicLab.Services.Access.DataAccess.Properties.Settings" SettingsPropertyName="HeuristicLab_ClientManagementConnectionString" Provider="System.Data.SqlClient" />2 <Connection Mode="AppSettings" ConnectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=HeuristicLab.AccessService" SettingsObjectName="HeuristicLab.Services.Access.DataAccess.Properties.Settings" SettingsPropertyName="HeuristicLab_ClientManagementConnectionString" Provider="System.Data.SqlClient" /> 3 3 <Table Name="dbo.Resource" Member="Resources"> 4 4 <Type Name="Resource" InheritanceCode="Resource" IsInheritanceDefault="true"> -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/DimProjectDao.cs
r15671 r15908 55 55 (from dimProject in db.GetTable<DimProject>() 56 56 where dimProject.ProjectId == projectId 57 select dimProject) .ToList());57 select dimProject)); 58 58 private static readonly Func<DataContext, Guid, Guid> GetLastValidIdByProjectIdQuery = 59 59 CompiledQuery.Compile((DataContext db, Guid projectId) => … … 67 67 (from dimProject in db.GetTable<DimProject>() 68 68 where dimProject.DateExpired == null 69 select dimProject) .ToList());69 select dimProject)); 70 70 #endregion 71 71 } -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/JobDao.cs
r15643 r15908 60 60 (from job in db.GetTable<Job>() 61 61 where job.State == jobState 62 select job) .ToList());62 select job)); 63 63 private static readonly Func<DataContext, JobState, IEnumerable<Guid>> GetJobIdsByStateQuery = 64 64 CompiledQuery.Compile((DataContext db, JobState jobState) => 65 65 (from job in db.GetTable<Job>() 66 66 where job.State == jobState 67 select job.JobId) .ToList());67 select job.JobId)); 68 68 private static readonly Func<DataContext, IEnumerable<Job>> GetJobsReadyForDeletionQuery = 69 69 CompiledQuery.Compile((DataContext db) => … … 75 75 || task.State == TaskState.Aborted 76 76 || task.State == TaskState.Failed).All(x => x) 77 select job) .ToList());77 select job)); 78 78 #endregion 79 79 -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/TaskDao.cs
r15666 r15908 65 65 /// <returns></returns> 66 66 public IEnumerable<Task> GetParentTasks(IEnumerable<Guid> resourceIds, int count, bool finished) { 67 68 67 var query = from t in Table 68 where t.State == TaskState.Waiting 69 69 && t.IsParentTask 70 && !t.Job.AssignedJobResources.Select(x => x.ResourceId).Except(resourceIds).Any()70 && t.Job.AssignedJobResources.All(x => resourceIds.ToList().Contains(x.ResourceId)) 71 71 && t.FinishWhenChildJobsFinished == finished 72 72 && t.ChildJobs.Any() -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/HeuristicLab.Services.Hive.DataAccess-3.3.csproj
r15658 r15908 153 153 <Compile Include="Properties\AssemblyInfo.cs" /> 154 154 <None Include="Properties\AssemblyInfo.cs.frame" /> 155 <Compile Include="Settings.cs" />156 155 <Compile Include="Settings.Designer.cs"> 157 156 <AutoGen>True</AutoGen> -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml
r15671 r15908 37 37 <Column Name="HbInterval" Type="System.Int32" DbType="Int" CanBeNull="false" /> 38 38 <Column Name="OwnerUserId" Type="System.Guid" DbType="UniqueIdentifier" CanBeNull="true" /> 39 <Association Name="Resource_AssignedProjectResource" Member="AssignedProjectResources" Storage="_AssignedResources"ThisKey="ResourceId" OtherKey="ResourceId" Type="AssignedProjectResource" />39 <Association Name="Resource_AssignedProjectResource" Member="AssignedProjectResources" ThisKey="ResourceId" OtherKey="ResourceId" Type="AssignedProjectResource" /> 40 40 <Association Name="Resource_Resource" Member="ChildResources" ThisKey="ResourceId" OtherKey="ParentResourceId" Type="Resource" /> 41 41 <Association Name="Resource_Downtime" Member="Downtimes" Storage="_UptimeCalendars" ThisKey="ResourceId" OtherKey="ResourceId" Type="Downtime" /> … … 261 261 <Column Name="StartDate" Type="System.DateTime" DbType="DateTime NOT NULL" CanBeNull="false" /> 262 262 <Column Name="EndDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" /> 263 <Association Name="Project_AssignedProjectResource" Member="AssignedProjectResources" Storage="_AssignedResources"ThisKey="ProjectId" OtherKey="ProjectId" Type="AssignedProjectResource" />263 <Association Name="Project_AssignedProjectResource" Member="AssignedProjectResources" ThisKey="ProjectId" OtherKey="ProjectId" Type="AssignedProjectResource" /> 264 264 <Association Name="Project_Job" Member="Jobs" ThisKey="ProjectId" OtherKey="ProjectId" Type="Job" /> 265 265 <Association Name="Project_Project" Member="ChildProjects" Storage="_Projects" ThisKey="ProjectId" OtherKey="ParentProjectId" Type="Project" /> … … 284 284 </Type> 285 285 </Table> 286 <Table Name=" " Member="FactProjectInfos">286 <Table Name="[statistics].FactProjectInfo" Member="FactProjectInfos"> 287 287 <Type Name="FactProjectInfo"> 288 288 <Column Name="ProjectId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> … … 296 296 </Type> 297 297 </Table> 298 <Table Name=" " Member="DimProjects">298 <Table Name="[statistics].DimProject" Member="DimProjects"> 299 299 <Type Name="DimProject"> 300 300 <Column Name="Id" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" /> -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
r15760 r15908 941 941 private System.Nullable<System.Guid> _OwnerUserId; 942 942 943 private EntitySet<AssignedProjectResource> _Assigned Resources;943 private EntitySet<AssignedProjectResource> _AssignedProjectResources; 944 944 945 945 private EntitySet<Resource> _ChildResources; … … 973 973 public Resource() 974 974 { 975 this._Assigned Resources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedResources), new Action<AssignedProjectResource>(this.detach_AssignedResources));975 this._AssignedProjectResources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedProjectResources), new Action<AssignedProjectResource>(this.detach_AssignedProjectResources)); 976 976 this._ChildResources = new EntitySet<Resource>(new Action<Resource>(this.attach_ChildResources), new Action<Resource>(this.detach_ChildResources)); 977 977 this._UptimeCalendars = new EntitySet<Downtime>(new Action<Downtime>(this.attach_UptimeCalendars), new Action<Downtime>(this.detach_UptimeCalendars)); … … 1106 1106 } 1107 1107 1108 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedProjectResource", Storage="_Assigned Resources", ThisKey="ResourceId", OtherKey="ResourceId")]1108 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Resource_AssignedProjectResource", Storage="_AssignedProjectResources", ThisKey="ResourceId", OtherKey="ResourceId")] 1109 1109 public EntitySet<AssignedProjectResource> AssignedProjectResources 1110 1110 { 1111 1111 get 1112 1112 { 1113 return this._Assigned Resources;1114 } 1115 set 1116 { 1117 this._Assigned Resources.Assign(value);1113 return this._AssignedProjectResources; 1114 } 1115 set 1116 { 1117 this._AssignedProjectResources.Assign(value); 1118 1118 } 1119 1119 } … … 1225 1225 } 1226 1226 1227 private void attach_Assigned Resources(AssignedProjectResource entity)1227 private void attach_AssignedProjectResources(AssignedProjectResource entity) 1228 1228 { 1229 1229 this.SendPropertyChanging(); … … 1231 1231 } 1232 1232 1233 private void detach_Assigned Resources(AssignedProjectResource entity)1233 private void detach_AssignedProjectResources(AssignedProjectResource entity) 1234 1234 { 1235 1235 this.SendPropertyChanging(); … … 5651 5651 private System.Nullable<System.DateTime> _EndDate; 5652 5652 5653 private EntitySet<AssignedProjectResource> _Assigned Resources;5653 private EntitySet<AssignedProjectResource> _AssignedProjectResources; 5654 5654 5655 5655 private EntitySet<Job> _Jobs; … … 5685 5685 public Project() 5686 5686 { 5687 this._Assigned Resources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedResources), new Action<AssignedProjectResource>(this.detach_AssignedResources));5687 this._AssignedProjectResources = new EntitySet<AssignedProjectResource>(new Action<AssignedProjectResource>(this.attach_AssignedProjectResources), new Action<AssignedProjectResource>(this.detach_AssignedProjectResources)); 5688 5688 this._Jobs = new EntitySet<Job>(new Action<Job>(this.attach_Jobs), new Action<Job>(this.detach_Jobs)); 5689 5689 this._Projects = new EntitySet<Project>(new Action<Project>(this.attach_Projects), new Action<Project>(this.detach_Projects)); … … 5857 5857 } 5858 5858 5859 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_AssignedProjectResource", Storage="_Assigned Resources", ThisKey="ProjectId", OtherKey="ProjectId")]5859 [global::System.Data.Linq.Mapping.AssociationAttribute(Name="Project_AssignedProjectResource", Storage="_AssignedProjectResources", ThisKey="ProjectId", OtherKey="ProjectId")] 5860 5860 public EntitySet<AssignedProjectResource> AssignedProjectResources 5861 5861 { 5862 5862 get 5863 5863 { 5864 return this._Assigned Resources;5865 } 5866 set 5867 { 5868 this._Assigned Resources.Assign(value);5864 return this._AssignedProjectResources; 5865 } 5866 set 5867 { 5868 this._AssignedProjectResources.Assign(value); 5869 5869 } 5870 5870 } … … 5963 5963 } 5964 5964 5965 private void attach_Assigned Resources(AssignedProjectResource entity)5965 private void attach_AssignedProjectResources(AssignedProjectResource entity) 5966 5966 { 5967 5967 this.SendPropertyChanging(); … … 5969 5969 } 5970 5970 5971 private void detach_Assigned Resources(AssignedProjectResource entity)5971 private void detach_AssignedProjectResources(AssignedProjectResource entity) 5972 5972 { 5973 5973 this.SendPropertyChanging(); … … 6331 6331 } 6332 6332 6333 [global::System.Data.Linq.Mapping.TableAttribute(Name=" ")]6333 [global::System.Data.Linq.Mapping.TableAttribute(Name="[statistics].FactProjectInfo")] 6334 6334 public partial class FactProjectInfo : INotifyPropertyChanging, INotifyPropertyChanged 6335 6335 { … … 6595 6595 } 6596 6596 6597 [global::System.Data.Linq.Mapping.TableAttribute(Name=" ")]6597 [global::System.Data.Linq.Mapping.TableAttribute(Name="[statistics].DimProject")] 6598 6598 public partial class DimProject : INotifyPropertyChanging, INotifyPropertyChanged 6599 6599 { -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive.JanitorService/3.3/ProjectInstaller.Designer.cs
r14185 r15908 50 50 // serviceProcessInstaller1 51 51 // 52 this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount. LocalSystem;52 this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.NetworkService; 53 53 this.serviceProcessInstaller1.Installers.AddRange(new System.Configuration.Install.Installer[] { 54 54 this.serviceInstaller1}); -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3/HiveService.cs
r15819 r15908 391 391 392 392 var job = jobDao.Save(newJob); 393 if (userPriorityDao.GetById( jobDto.OwnerUserId) == null) {393 if (userPriorityDao.GetById(newJob.OwnerUserId) == null) { 394 394 userPriorityDao.Save(new DA.UserPriority { 395 UserId = jobDto.OwnerUserId,396 DateEnqueued = jobDto.DateCreated395 UserId = newJob.OwnerUserId, 396 DateEnqueued = newJob.DateCreated 397 397 }); 398 398 } -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3/HiveStatisticsGenerator.cs
r15716 r15908 421 421 let uStats = projectUsageStats.Where(x => x.ProjectId == dimp.ProjectId).SingleOrDefault() 422 422 select new FactProjectInfo { 423 ProjectId = dimp. ProjectId,423 ProjectId = dimp.Id, 424 424 DimTime = newTime, 425 425 NumTotalCores = aStats != null ? aStats.Cores : 0, -
branches/2839_HiveProjectManagement/HeuristicLab.Services.WebApp.Maintenance/3.3/WebApi/SpaceUsageController.cs
r14185 r15908 36 36 public IEnumerable<TableInformation> GetHiveTableInformation() { 37 37 var tables = new List<string> { 38 "AssignedResources", 38 "AssignedJobResource", 39 "AssignedProjectResource", 39 40 "Downtime", 40 41 "Job", … … 43 44 "Plugin", 44 45 "PluginData", 46 "Project", 47 "ProjectPermission", 45 48 "RequiredPlugins", 46 49 "Resource", 47 "ResourcePermission",48 50 "StateLog", 49 51 "Task", … … 65 67 "statistics.DimClient", 66 68 "statistics.DimJob", 69 "statistics.DimProject", 67 70 "statistics.DimTime", 68 71 "statistics.DimUser", 69 72 "statistics.FactClientInfo", 73 "statistics.FactProjectInfo", 70 74 "statistics.FactTask" 71 75 };
Note: See TracChangeset
for help on using the changeset viewer.