v++
Авторство тестов из репозитория серверу и серверной почте. На будущее введем акк сервер
This commit is contained in:
10
.idea/workspace.xml
generated
10
.idea/workspace.xml
generated
@@ -8,14 +8,10 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/properties" beforeDir="false" afterPath="$PROJECT_DIR$/properties" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/Common/Database/Database.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Database.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Constants.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/MainModule.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/MainModule.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ConvertCorrectnessTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ConvertCorrectnessTests.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Group/UI/GroupsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Group/UI/GroupsForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestsFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestsFromFiles.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestingServer.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/AbortTestingPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/AbortTestingPackage.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import Common.Utils.Vector_;
|
|||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final int version = 1182;
|
public static final int version = 1183;
|
||||||
public static final int planner_version = 10;
|
public static final int planner_version = 10;
|
||||||
public static final int testingMaxKernels = 64; //вообще говоря, это параметр машины.
|
public static final int testingMaxKernels = 64; //вообще говоря, это параметр машины.
|
||||||
//--
|
//--
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class ConvertCorrectnessTests extends TestingServerPass<File> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.")&&
|
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.")&&
|
||||||
SendRequest(ServerCode.RefreshDVMTests, "", Global.mainModule.getAccount());
|
SendRequest(ServerCode.RefreshDVMTests, "", null);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean needsAnimation() {
|
protected boolean needsAnimation() {
|
||||||
|
|||||||
@@ -2,16 +2,14 @@ package _VisualDVM.TestingSystem.Common.Group.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Utils.TextLog;
|
import Common.Utils.TextLog;
|
||||||
|
import Common.Visual.*;
|
||||||
import Common.Visual.Controls.MenuBarButton;
|
import Common.Visual.Controls.MenuBarButton;
|
||||||
import Common.Visual.Controls.StableMenuItem;
|
import Common.Visual.Controls.StableMenuItem;
|
||||||
import Common.Visual.DataSetControlForm;
|
|
||||||
import Common.Visual.DataSetFiltersMenu;
|
|
||||||
import Common.Visual.FilterFlag;
|
|
||||||
import Common.Visual.FilterMenuFlag;
|
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.ColumnInfo;
|
import Common.Visual.Tables.ColumnInfo;
|
||||||
import Common.Visual.Tables.HeaderTextFilter;
|
import Common.Visual.Tables.HeaderTextFilter;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
|
import _VisualDVM.Constants;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.LanguageName;
|
import _VisualDVM.ProjectData.LanguageName;
|
||||||
@@ -83,6 +81,17 @@ public class GroupsForm extends DataSetControlForm<Group> {
|
|||||||
return Global.mainModule.getAccount().email.equals(object.sender_address);
|
return Global.mainModule.getAccount().email.equals(object.sender_address);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
new FilterFlag<Group>(dataSource, new MenuBarButton() {
|
||||||
|
{
|
||||||
|
setText("Стандарт");
|
||||||
|
setToolTipText("Отображать только стандартные группы тестов");
|
||||||
|
}
|
||||||
|
}, false) {
|
||||||
|
@Override
|
||||||
|
protected boolean validate(Group object) {
|
||||||
|
return object.sender_address.equals(Constants.MailAddress);
|
||||||
|
}
|
||||||
|
},
|
||||||
new DataSetFiltersMenu<Group>("Тип", dataSource) {
|
new DataSetFiltersMenu<Group>("Тип", dataSource) {
|
||||||
@Override
|
@Override
|
||||||
public void fill() {
|
public void fill() {
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
|||||||
return new Pair<>(object, groupFiles);
|
return new Pair<>(object, groupFiles);
|
||||||
}
|
}
|
||||||
void RefreshDVMTests() throws Exception {
|
void RefreshDVMTests() throws Exception {
|
||||||
UserAccount account = (UserAccount) request.object;
|
UserAccount account = new UserAccount("server", Constants.MailAddress);
|
||||||
ServerSapfor serverSapfor = db.serverSapfors.getLastDoneVersion();
|
ServerSapfor serverSapfor = db.serverSapfors.getLastDoneVersion();
|
||||||
DownloadRepository downloadRepository = new DownloadRepository();
|
DownloadRepository downloadRepository = new DownloadRepository();
|
||||||
if (!downloadRepository.Do())
|
if (!downloadRepository.Do())
|
||||||
|
|||||||
Reference in New Issue
Block a user