Commit graph

4764 commits

Author SHA1 Message Date
Óscar González Fernández
dae8be725c Add method to limit an EffortDuration
It considers the start and end values of IntraDayDate.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-08 02:36:49 +02:00
Óscar González Fernández
5308dab6c3 Add method daysUntil to IntraDayDate
It returns the days that are in the interval.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-08 02:36:49 +02:00
Óscar González Fernández
88f9d7a58c Improve toString in order to be more clear
FEA: ItEr61S05BugFixing
2010-10-08 02:36:49 +02:00
Óscar González Fernández
d7a401854b Change return type of getConsolidatedline to GanttDate
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-08 02:36:49 +02:00
Óscar González Fernández
5a38aa9a64 Remove unused method
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-08 02:36:49 +02:00
Jacobo Aragunde Pérez
7c2fcf7858 [Bug #670] Compare sumOfHoursAllocated with 0 to know if there were any assigments in TaskElement.getAssignedStatus().
With this change, ResourceAllocations aren't loaded anymore in
simplified calculation.

FEA: ItEr61S05BugFixing
2010-10-07 20:57:17 +02:00
Jacobo Aragunde Pérez
1161a3181f [Bug #670] Added a simplified calculation algorithm for TaskElement.getAssignedStatus().
The simplified version has only two states: 'assigned' if the task has
ResourceAllocations, or 'unassigned' otherwise.
The simplified version is necessary for the Company View screen to avoid
excessive data loads from DB. There is a flag to set/unset it.

FEA: ItEr61S05BugFixing
2010-10-07 20:57:17 +02:00
Jacobo Aragunde Pérez
8a2f913b89 [Bug #671] Fixed bug, adding a null check before calling inner methods.
FEA: ItEr61S05BugFixing
2010-10-07 20:53:50 +02:00
Jacobo Aragunde Pérez
79425a183f Reimplemented getHoursAdvancePercentage() to avoid calling OrderElementDAO.getHoursAdvancePercentage().
The DAO method makes recursive calls over all the children of the order.
The reimplementation uses the pre-calculated data on the TaskElement to
prevent recursive calls.

FEA: ItEr61S03RFPerformanceCompanyView
2010-10-07 13:15:07 +02:00
Jacobo Aragunde Pérez
222c966f20 Changed getHoursAdvanceEndDate() to get the number of hours allocated directly from the TaskElement.
The previous implementation invoked OrderElement.getWorkHours(),
which was called recursively for all its children.

FEA: ItEr61S03RFPerformanceCompanyView
2010-10-07 13:15:06 +02:00
Óscar González Fernández
31a5eb4c25 Use GanttDates in GanttDiagramGraph when enforcing constraints and dependencies
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
a96e67b2f1 Use generic methods instead of methods for Dates
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
3243858c41 Convert type of constraintDate of TaskStartConstraint to LocalDate
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
79ccf427e7 Change getSmallestStartDateFromChildren result type to IntraDayDate
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
7d48bb69f2 Instead of using DateConstraint use ConstraintOnComparableValues
The new class, ConstraintOnComparableValues, works for any values that
are comparable. This way the functionality is easily reused for other
types.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
6320ca75f3 Do not use ConstraintDate directly in CriticalPathCalculator
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
dc8fce0f09 Add generic type
This fixes the compiler warning

FEA: ItEr61S05BugFixing
2010-10-07 01:44:46 +02:00
Óscar González Fernández
d5efa31def Change types to GanttDate in IDependenciesEnforcerHook and INotificationAfterDependenciesEnforcement
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:44:46 +02:00
Óscar González Fernández
5dd8420017 Fix bug in comparison of GanttDates
The byCases statement must be executed in the argument.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-07 01:39:44 +02:00
Óscar González Fernández
85e34c0d77 Fix bug
The provided date can be null.

FEA: ItEr61S05BugFixing
2010-10-07 01:39:44 +02:00
Jacobo Aragunde Pérez
0e3788975f Prevent getHoursAdvanceEndDate() to call calculateLimitDate(Integer) for TaskGroups.
That call made the system load all the DayAssignments for children tasks.

FEA: ItEr61S03RFPerformanceCompanyView
2010-10-06 17:57:28 +02:00
Óscar González Fernández
6c61f36d28 ITaskFundamentalProperties now works with GanttDates
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-06 14:29:11 +02:00
Óscar González Fernández
07df77601f Allow to specify a IntraDayDate when resizing a task
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-06 13:35:27 +02:00
Óscar González Fernández
6cc0c37ca4 Allow to specify an IntraDayDate when moving a Task
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-06 13:35:27 +02:00
Óscar González Fernández
910b4eafea Add GanttDate class and an adapter for business
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-06 13:35:27 +02:00
Óscar González Fernández
07be2df27e Remove unused fields
FEA: ItEr61S05BugFixing
2010-10-05 21:48:36 +02:00
Óscar González Fernández
bc84bd7729 Use Collections methods max and min to retrieve the smallest and biggest value
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-05 21:48:36 +02:00
Óscar González Fernández
55e6cc458d Rename method in order to be less confusing
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-05 12:19:32 +02:00
Óscar González Fernández
9d072fda1f Reload the snapshots only once the transaction has been completed successfully
FEA: ItEr61S05BugFixing
2010-10-03 19:38:17 +02:00
Óscar González Fernández
2858d29547 Fix bug
The dates can be null so it must be checked

FEA: ItEr61S05BugFixing
2010-10-03 13:34:20 +02:00
Óscar González Fernández
31e2a04c87 Segregate the methods for updating the task from the UI
This is intented for segregating the methods that are intended to be
used from the UI that will provide LocalDates from the the methods
that will update the dates directly.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-01 19:56:28 +02:00
Óscar González Fernández
0bea855f98 Switch IDatesMapper to use types based on joda time instead of dates
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-01 18:38:18 +02:00
Jacobo Aragunde Pérez
369dd74e41 Replaced the calls to TaskElement.getTotalHoursAssigned() with the new method.
Also getTotalHoursAssigned() was renamed to a more specific name.
FEA: ItEr61S03RFPerformanceCompanyView
2010-10-01 13:22:38 +02:00
Jacobo Aragunde Pérez
32c430f06a Added a small modification to the Advanced Allocation screen to make it update the tasks correctly.
FEA: ItEr61S03RFPerformanceCompanyView
2010-10-01 13:22:38 +02:00
Jacobo Aragunde Pérez
87a973ae3b Implemented unit test for the new operation TaskElementDAO.save().
FEA: ItEr61S03RFPerformanceCompanyView
2010-10-01 13:22:38 +02:00
Jacobo Aragunde Pérez
f9d85f1969 Implemented TaskElementDAO.save() operation to update sumOfHoursAllocated attribute recursively.
FEA: ItEr61S03RFPerformanceCompanyView
2010-10-01 13:22:37 +02:00
Jacobo Aragunde Pérez
71f41b2aea Added attribute sumOfHoursAllocated to the entity TaskElement.
FEA: ItEr61S03RFPerformanceCompanyView
2010-10-01 13:22:37 +02:00
Diego Pino Garcia
863de92aea Fix bug empty code is detected as repeated code in Order and HoursGroups
FEA: ItEr61S05BugFixing
2010-10-01 13:08:34 +02:00
Diego Pino Garcia
ed02e52b8d Update cobertura plugin to 2.4 and increase heap memory size of cobertura
FEA: ItEr61S05BugFixing
2010-10-01 11:50:27 +02:00
Óscar González Fernández
85a86c1cc6 Remove unnecessary import
FEA: ItEr61S05BugFixing
2010-10-01 00:53:20 +02:00
Óscar González Fernández
66253cbbea Add deprecated annotation to potentially dangerous method 2010-10-01 00:53:20 +02:00
Óscar González Fernández
f419a6d38c [Bug #665] Fix bug
When allocating the hours in all a semester, only some minutes where
allocated each day. The error was that the day assigments that didn't
have at least one hour were discarded. Now only the ones with an
EffortDuration of zero are discarded.

FEA: ItEr61S05BugFixing
2010-10-01 00:52:31 +02:00
Óscar González Fernández
bf46ea2e33 Fix bug introduced in AdvancedAllocationController when changing internal types of Interval
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-01 00:23:18 +02:00
Óscar González Fernández
cd065cbc14 Protect against effortDuration being null.
Use always getter to protect against this possibility. The problem
must lie in a IntraDayDate created as result of a migration such that
the column for effortDuration is null. Otherwise a newly created
IntraDayDate never has a null effortDuration.

FEA: ItEr61S05BugFixing
2010-10-01 00:03:00 +02:00
Óscar González Fernández
c898f92818 Fix bug
It must call the method instead of retrieving the field

FEA: ItEr61S05BugFixing
2010-09-30 22:13:24 +02:00
Óscar González Fernández
1c0da6e7f8 Fix bug
Method was calling itself.

FEA: ItEr61S05BugFixing
2010-09-30 22:13:24 +02:00
Óscar González Fernández
7d09ed0980 Change Interval to use LocalDates and associated changes
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-09-30 22:13:24 +02:00
Óscar González Fernández
966993e10f Inherit from general case in zoom level four
Weeks do not fit into months.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-09-30 22:13:24 +02:00
Óscar González Fernández
9723e75925 Extract subclass for typical case in which subintervals fit the parent intervals
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-09-30 22:13:23 +02:00
Óscar González Fernández
55e4c8a7c6 Pull up TimeTrackerStateUsingJodaTime to TimeTrackerState
Now all zoom levels are based on the same superclass

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-09-30 22:13:23 +02:00