Ignore:
Timestamp:
09/01/15 14:10:37 (6 years ago)
Author:
jkarder
Message:

#2355:

  • changed sandboxing to always use an unrestricted permission set
  • removed IsAllowedPrivileged role and according IsPrivileged code
Location:
trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml

    r12878 r12926  
    7676      <Column Name="Command" Type="global::HeuristicLab.Services.Hive.DataAccess.Command?" DbType="VarChar(30)" CanBeNull="true" />
    7777      <Column Name="JobId" Storage="_HiveExperimentId" Type="System.Guid" DbType="UniqueIdentifier NOT NULL" CanBeNull="false" />
    78       <Column Name="IsPrivileged" Type="System.Boolean" DbType="Bit" CanBeNull="false" />
    7978      <Association Name="Task_AssignedResource" Member="AssignedResources" ThisKey="TaskId" OtherKey="TaskId" Type="AssignedResource" />
    8079      <Association Name="Task_RequiredPlugin" Member="RequiredPlugins" ThisKey="TaskId" OtherKey="TaskId" Type="RequiredPlugin" />
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml.layout

    r12878 r12926  
    2727      </nestedChildShapes>
    2828    </classShape>
    29     <classShape Id="695bfc39-59f3-4e60-8644-f847964bf62c" absoluteBounds="6.5, 1, 2, 3.3093082682291666">
     29    <classShape Id="695bfc39-59f3-4e60-8644-f847964bf62c" absoluteBounds="6.5, 1, 2, 3.1170068359374996">
    3030      <DataClassMoniker Name="/HiveDataContext/Task" />
    3131      <nestedChildShapes>
    32         <elementListCompartment Id="a6a30e11-03d1-4869-82e6-b733f4ef9974" absoluteBounds="6.5150000000000006, 1.46, 1.9700000000000002, 2.7493082682291665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
     32        <elementListCompartment Id="a6a30e11-03d1-4869-82e6-b733f4ef9974" absoluteBounds="6.5150000000000006, 1.46, 1.9700000000000002, 2.5570068359375" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
    3333      </nestedChildShapes>
    3434    </classShape>
     
    141141      </nodes>
    142142    </associationConnector>
    143     <associationConnector edgePoints="[(8.0192961430407 : 3.90397379557292); (8.0192961430407 : 5.04807657877604); (8.875 : 5.04807657877604)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     143    <associationConnector edgePoints="[(8.5 : 4.1170068359375); (8.875 : 4.5)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    144144      <AssociationMoniker Name="/HiveDataContext/Task/Task_AssignedResource" />
    145145      <nodes>
     
    148148      </nodes>
    149149    </associationConnector>
    150     <associationConnector edgePoints="[(7.20145120722822 : 3.90397379557292); (7.20145120722822 : 5.875)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     150    <associationConnector edgePoints="[(7.4687475 : 4.1170068359375); (7.4687475 : 5.875)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    151151      <AssociationMoniker Name="/HiveDataContext/Task/Task_RequiredPlugin" />
    152152      <nodes>
     
    176176      </nodes>
    177177    </associationConnector>
    178     <associationConnector edgePoints="[(6.125 : 3.46715413411458); (6.5 : 3.46715413411458)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     178    <associationConnector edgePoints="[(6.125 : 3.37100341796875); (6.5 : 3.37100341796875)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    179179      <AssociationMoniker Name="/HiveDataContext/Job/Job_Task" />
    180180      <nodes>
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs

    r12878 r12926  
    16201620    private System.Guid _HiveExperimentId;
    16211621   
    1622     private bool _IsPrivileged;
    1623    
    16241622    private EntitySet<AssignedResource> _AssignedResources;
    16251623   
     
    16641662    partial void OnJobIdChanging(System.Guid value);
    16651663    partial void OnJobIdChanged();
    1666     partial void OnIsPrivilegedChanging(bool value);
    1667     partial void OnIsPrivilegedChanged();
    16681664    #endregion
    16691665   
     
    19241920          this.SendPropertyChanged("JobId");
    19251921          this.OnJobIdChanged();
    1926         }
    1927       }
    1928     }
    1929    
    1930     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPrivileged", DbType="Bit")]
    1931     public bool IsPrivileged
    1932     {
    1933       get
    1934       {
    1935         return this._IsPrivileged;
    1936       }
    1937       set
    1938       {
    1939         if ((this._IsPrivileged != value))
    1940         {
    1941           this.OnIsPrivilegedChanging(value);
    1942           this.SendPropertyChanging();
    1943           this._IsPrivileged = value;
    1944           this.SendPropertyChanged("IsPrivileged");
    1945           this.OnIsPrivilegedChanged();
    19461922        }
    19471923      }
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql

    r12878 r12926  
    8686  [Command] VarChar(30),
    8787  [JobId] UniqueIdentifier NOT NULL,
    88   [IsPrivileged] Bit NOT NULL,
    8988  CONSTRAINT [PK_dbo.Task] PRIMARY KEY ([TaskId])
    9089  )
  • trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Prepare Hive Database.sql

    r12878 r12926  
    113113CREATE NONCLUSTERED INDEX [TaskJobIdIndex]
    114114ON [dbo].[Task] ([JobId])
    115 INCLUDE ([TaskId],[TaskState],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[CoresNeeded],[MemoryNeeded],[IsParentTask],[FinishWhenChildJobsFinished],[Command],[IsPrivileged])
     115INCLUDE ([TaskId],[TaskState],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[CoresNeeded],[MemoryNeeded],[IsParentTask],[FinishWhenChildJobsFinished],[Command])
    116116GO
    117117
     
    119119CREATE NONCLUSTERED INDEX [TaskGetWaitingTasksIndex]
    120120ON [dbo].[Task] ([TaskState],[IsParentTask],[FinishWhenChildJobsFinished],[CoresNeeded],[MemoryNeeded])
    121 INCLUDE ([TaskId],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[Command],[JobId],[IsPrivileged])
     121INCLUDE ([TaskId],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[Command],[JobId])
    122122GO
    123123
Note: See TracChangeset for help on using the changeset viewer.