Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-08-29 22:53:25 +0000
committerRoberto E. Escobar2014-10-01 21:04:07 +0000
commit3720a5eba1ac6ebe672cf9337034ac214b29404e (patch)
treec8059505df5437179925faa6647cd83f8426aa1a
parentc2035848fa966f479ee591901d2fdaa52ae59cb7 (diff)
downloadorg.eclipse.osee-3720a5eba1ac6ebe672cf9337034ac214b29404e.tar.gz
org.eclipse.osee-3720a5eba1ac6ebe672cf9337034ac214b29404e.tar.xz
org.eclipse.osee-3720a5eba1ac6ebe672cf9337034ac214b29404e.zip
feature[ats_ATS102329]: Improvements in support of action
-rw-r--r--plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/team/TeamWorkFlowManager.java5
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/internal/log/AtsLogWriter.java11
2 files changed, 9 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/team/TeamWorkFlowManager.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/team/TeamWorkFlowManager.java
index adbf29f2eff..2b3c60a16db 100644
--- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/team/TeamWorkFlowManager.java
+++ b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/team/TeamWorkFlowManager.java
@@ -151,7 +151,7 @@ public class TeamWorkFlowManager {
}
private Result processAnalyzeState(boolean popup, TeamWorkFlowArtifact teamArt, IAtsUser currentStateUser, Collection<IAtsUser> transitionToAssignees, Date date, IAtsChangeSet changes) throws OseeCoreException {
- Result result = setAnalyzeData(popup, null, null, 1, 100, .2, currentStateUser, date);
+ Result result = setAnalyzeData(popup, null, null, 100, .2, currentStateUser, date);
if (result.isFalse()) {
return result;
}
@@ -197,14 +197,13 @@ public class TeamWorkFlowManager {
return Result.TrueResult;
}
- public Result setAnalyzeData(boolean popup, String problem, String propRes, double hourEstimate, int statePercentComplete, double stateHoursSpent, IAtsUser user, Date date) throws OseeCoreException {
+ public Result setAnalyzeData(boolean popup, String problem, String propRes, int statePercentComplete, double stateHoursSpent, IAtsUser user, Date date) throws OseeCoreException {
if (!teamArt.isInState(TeamState.Analyze)) {
Result result = new Result("Action not in Analyze state");
if (result.isFalse() && popup) {
return result;
}
}
- teamArt.setSoleAttributeValue(AtsAttributeTypes.EstimatedHours, hourEstimate);
teamArt.getStateMgr().setMetrics(TeamState.Analyze, stateHoursSpent, statePercentComplete, true, user, date);
return Result.TrueResult;
}
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/internal/log/AtsLogWriter.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/internal/log/AtsLogWriter.java
index 8a1bdc89476..cc1079ca798 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/internal/log/AtsLogWriter.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/internal/log/AtsLogWriter.java
@@ -55,10 +55,13 @@ public class AtsLogWriter {
rootElement.appendChild(element);
}
String documentXml = Jaxp.getDocumentXml(doc);
- Result result = storageProvider.saveLogXml(documentXml, changes);
- if (result.isFalse()) {
- OseeLog.log(AtsLogWriter.class, OseeLevel.SEVERE_POPUP,
- "Can't create ats log document: " + result.getText());
+ String currentXml = storageProvider.getLogXml();
+ if (!documentXml.equals(currentXml)) {
+ Result result = storageProvider.saveLogXml(documentXml, changes);
+ if (result.isFalse()) {
+ OseeLog.log(AtsLogWriter.class, OseeLevel.SEVERE_POPUP,
+ "Can't create ats log document: " + result.getText());
+ }
}
} catch (Exception ex) {
OseeLog.log(AtsLogWriter.class, OseeLevel.SEVERE_POPUP, "Can't create ats log document", ex);

Back to the top