Commit graph

2266 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
a78a86083c [Bug #1066] Fixed bug updating calendar exception days.
FEA: ItEr74S04BugFixing
2011-05-13 18:16:16 +02:00
Susana Montes Pedreira
1344e362ef [Bug #1006] it catchs HibernateOptimisticLockingFailureException in validator method
of the CalendarExceptionType Entity.

It is caught in the validator. Otherwise it would be wraped by hibernate and would
bypass the automatic handling of OptimisttcLockingFailureExceptions

FEA: ItEr74S04BugFixing
2011-05-11 20:13:32 +02:00
Óscar González Fernández
2a101847d4 [Bug #1054] Consider task constraints
FEA: ItEr74S04BugFixing
2011-05-11 20:00:03 +02:00
Óscar González Fernández
252f5165f1 Rename method to a more accurate name
FEA: ItEr74S04BugFixing
2011-05-11 20:00:03 +02:00
Óscar González Fernández
a553aade8c Avoid O(n2) algorithm
Removing already present using algorithm with linear complexity.

FEA: ItEr74S04BugFixing
2011-05-11 19:59:46 +02:00
Óscar González Fernández
7d98e4a4c4 Change allocateKeepingProportions so it uses EffortDurations instead of hours
FEA: ItEr74S04BugFixing
2011-05-11 19:59:46 +02:00
Óscar González Fernández
be1ea3f66c Refactor
Extract functionality to filter consolidated day assignments so it can
be reused more easily.

FEA: ItEr74S04BugFixing
2011-05-11 19:59:45 +02:00
Óscar González Fernández
25d23a9e5b It's inefficient to use boxed objects
FEA: ItEr74S04BugFixing
2011-05-11 19:59:45 +02:00
Óscar González Fernández
f569d6d2c7 Fix violation of the intended immutability of IntraDayDate
A comment in the javadoc is added stating it. Final keyword is added
to the class so the immutability is not bypassed using
subclasses. Final cannot be applied to the fields because it must have
an empty constructor for Hibernate.

FEA: ItEr74S04BugFixing
2011-05-11 19:58:36 +02:00
Susana Montes Pedreira
77bf52ee44 [Bug #996] fixing bug in desconsolidation action.
it only removes and adds the new day assignments that have been reassigned.

FEA: ItEr74S04BugFixing
2011-05-11 17:42:02 +02:00
Susana Montes Pedreira
b6f76b9ee4 [Bug #996] Update the end date of the task correctly.
The new date is equal to the new finish of task more one day.
So that the end date is not included in the reassigning of hours.

FEA: ItEr74S04BugFixing
2011-05-11 17:42:02 +02:00
Susana Montes Pedreira
7186362a3b [Bug #996] Calculate correctly the proportion of hours for each day.
Now the proportion is calculated differently for the consolidated values
and according to the percentage of the consolidation to which it belongs.

FEA: ItEr74S04BugFixing
2011-05-11 17:42:02 +02:00
Manuel Rego Casasnovas
408686138f [Bug #1065] Fixed issue adding method to open a new transaction on DAO.
* Added method findUniqueByNameAnotherTransaction to
  CalendarExceptionTypeDAO.
* Renamed method findByName to findUniqueByName in
  CalendarExceptionTypeDAO.

FEA: ItEr74S04BugFixing
2011-05-11 10:25:37 +02:00
Manuel Rego Casasnovas
41c357a3c3 Revert "[Bug #1006] it catchs HibernateOptimisticLockingFailureException in validator method"
This reverts commit d3be77ff43.
2011-05-11 09:52:31 +02:00
Susana Montes Pedreira
d3be77ff43 [Bug #1006] it catchs HibernateOptimisticLockingFailureException in validator method
of the CalendarExceptionType Entity.

It is caught in the validator. Otherwise it would be wraped by hibernate and would
bypass the automatic handling of OptimisttcLockingFailureExceptions

FEA: ItEr74S04BugFixing
2011-05-10 20:32:17 +02:00
Susana Montes Pedreira
73fbd7b969 [Bug #1002] it catchs HibernateOptimisticLockingFailureException in validator method
of the orderElementTemplate Entity.

It is caught in the validator. Otherwise it would be wraped by hibernate and would
bypass the automatic handling of OptimisttcLockingFailureExceptions

FEA: ItEr74S04BugFixing
2011-05-10 19:35:58 +02:00
Susana Montes Pedreira
bb04626999 [Bug #1008] it catchs HibernateOptimisticLockingFailureException in validator
method of the  workReportType entity.

It is caught in the validator. Otherwise it would be wraped by hibernate and would
bypass the automatic handling of OptimisttcLockingFailureExceptions

FEA: ItEr74S04BugFixing
2011-05-10 19:35:49 +02:00
Manuel Rego Casasnovas
811b7ba759 [Bug #1043] Fixed issue changing constraintDate to IntraDayDate.
* Changed constraintDate attribute in class TaskPositionConstraint to
  IntraDayDate.
* Made all modifications needed to get this change working.

FEA: ItEr74S04BugFixing
2011-05-10 18:07:09 +02:00
Manuel Rego Casasnovas
d1342cc4b8 [Bug #1064] Fixed more problems related with this issue.
FEA: ItEr74S04BugFixing
2011-05-10 16:33:05 +02:00
Manuel Rego Casasnovas
9a43ab48fa [Bug #1064] Fixed bug removing unneeded code to update criteria.
FEA: ItEr74S04BugFixing
2011-05-10 12:59:30 +02:00
Diego Pino Garcia
da9fe42415 [Bug #975] Set last stretch with 100% completition as read-only
This stretch is never added to the list of stretches, that means, it
won't be saved. On the contrary, is inferred from the endDate of the task.

FEA: ItEr74S04BugFixing
2011-05-09 10:18:14 +02:00
Diego Pino Garcia
efa5cafb82 Added method isConsolidated()
Advance function (stretches, interpolated) cannot be applied on
consolidated intervals.

FEA: ItEr74S04BugFixing
2011-05-09 10:18:14 +02:00
Lorenzo Tilve Álvaro
5b5c5cbf56 Improved pretty-print of resources for assignment
FEA: ItEr74S04BugFixing
2011-05-09 02:46:23 +02:00
Diego Pino Garcia
b61f1ac1a2 [Bug #975] Refactored calculation of interpolation
* The dayPoints and hoursPoints are calculated since the beginning of
the task.
* startInclusive is the first day with non-consolidated days.
* The function is only applied from (startInclusive, endExclusive).
* First, an allocation is done on the defined interval. Then the
remaining hours not used are calculated and the function is
applied again.
* Used function onInterval(start, end) for doing allocation instead of
iterating day by day.

FEA: ItEr74S04BugFixing
2011-05-06 16:01:48 +02:00
Diego Pino Garcia
30c7f4a2a4 [Bug #975] Intervals defined by stretches should include consolidated stretch
Validation methods for interpolation should also include consolidated
stretch.

FEA: ItEr74S04BugFixing
2011-05-06 16:01:48 +02:00
Diego Pino Garcia
938a6d852e If loadedProportion is negative set it to zero
FEA: ItEr74S04BugFixing
2011-05-06 16:01:47 +02:00
Diego Pino Garcia
fd7530cbf0 Set date of new stretch starting from consolidated date if any
* Initialize amount of work too.

FEA: ItEr74S04BugFixing
2011-05-06 16:01:46 +02:00
Diego Pino Garcia
f02f541dd0 Renamed variables to fit better name
FEA: ItEr74S04BugFixing
2011-05-06 16:01:46 +02:00
Diego Pino Garcia
62635fd2ca Fix misspelling
FEA: ItEr74S04BugFixing
2011-05-06 16:01:43 +02:00
Manuel Rego Casasnovas
ad59c56cca Added check for CHILDREN advance in container and fixed detected issue.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-06 11:51:13 +02:00
Manuel Rego Casasnovas
c7521e8c9a Added test to check CHILDREN advance marked as spread by default and fixed issues.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-06 10:46:27 +02:00
Óscar González Fernández
e9f35966db Don't show seconds in EffortDurationBox
The amount shown is rounded to the nearest minute.

FEA: ItEr74S04BugFixing
2011-05-05 17:12:49 +02:00
Manuel Rego Casasnovas
1ddeb946fa [Bug #1039] Added new test to check spread advance and set them randomly if needed.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 18:04:03 +02:00
Manuel Rego Casasnovas
0041ff7512 [Bug #1039] Fixed broken tests due to bug solution.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 17:11:53 +02:00
Manuel Rego Casasnovas
e51c146b80 [Bug #1039] Fixed issue with spread advance when it is removed.
* Added test that causes the problem
* Fixed first issue as CHILDREN indirect advance was added before a
  direct advance, and then always appear as spread.
* Fixed problem detected in the bug itself, updating spread advance when
  some advance is removed.

FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 17:11:53 +02:00
Manuel Rego Casasnovas
efd65cca4d Changed tests and fixed issue with CHILDREN advance.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 14:00:34 +02:00
Óscar González Fernández
e8c762a520 Fix precondition error in finishing criterions
The descendants of the criterion were being matched too, when only the
exact match was required.

FEA: ItEr74S04BugFixing
2011-05-04 13:28:19 +02:00
Óscar González Fernández
5ed78405f7 [Bug #1023] Now it can be marked as not finished
FEA: ItEr74S04BugFixing
2011-05-04 13:28:19 +02:00
Manuel Rego Casasnovas
06c62e9d49 Added more tests for advances in WBS and fixed detected issue.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 11:40:47 +02:00
Manuel Rego Casasnovas
ceb76cf283 Fixed issues in advances related to previous tests.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-04 09:09:05 +02:00
Manuel Rego Casasnovas
37d21e8895 Added more tests for labels in WBS and fixed detected issue.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 17:55:19 +02:00
Óscar González Fernández
f86af62210 [Bug #1011] Fix bug
At limiting allocation when setting the day assignments, it used the
previous task's start and end date values instead of the ones just
calculated.

FEA: ItEr74S04BugFixing
2011-05-03 16:26:45 +02:00
Manuel Rego Casasnovas
54013a97fe [Bug #1040] Fixed problem added in previous commit.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 15:38:47 +02:00
Manuel Rego Casasnovas
70fd6b4299 [Bug #1040] Added new checks on tests and fixed problem for orphan children advance types.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 13:31:26 +02:00
Manuel Rego Casasnovas
8794d7d032 [Bug #1038] Added test and fixed bug for repeated labels in WBS.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 09:51:35 +02:00
Manuel Rego Casasnovas
a468460246 [Bug #1037] Fixed other tests affected by changes in bugfix.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 09:15:01 +02:00
Manuel Rego Casasnovas
70f0a7d7d4 [Bug #1037] Added test and fixed bug for advances of same type.
FEA: ItEr74S07WBSTreeRefactoring
2011-05-03 09:15:00 +02:00
Óscar González Fernández
c58614b818 [Bug #1036] Fix bug removing a consolidation
FEA: ItEr74S04BugFixing
2011-05-02 12:29:23 +02:00
Susana Montes Pedreira
315208a04e Rename "getDirectAdvanceAssignmentOfSubcontractedOrderElements" to
"getDirectAdvanceAssignmentOfTypeSubcontractor"

FEA: ItEr74S04BugFixing
2011-05-02 09:47:38 +02:00
Susana Montes Pedreira
95dd264824 [Bug #894] Subcontrating relation is maintained in the root element.
It remains the relation with subcontrated task although you delete the task.

FEA: ItEr74S04BugFixing
2011-05-02 09:43:12 +02:00