Commit graph

6037 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
7a05d8b7a1 Added database upgrade scripts for version 1.1.0.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-16 12:36:05 +02:00
Óscar González Fernández
d733ba80a8 [Bug #1070] Calculate the critical path using a topological order
Avoid exponential increase of calculations done, only visiting a node
when all their predecessors have already been processed. This
guarantees that the nodes are processed in a topological order, i.e.,
a node is not processed until their predecessors are processed.

FEA: ItEr74S04BugFixing
2011-05-15 21:08:28 +02:00
Óscar González Fernández
f82b20bbd1 Remove tasks that are not really initial from the initial and end tasks
FEA: ItEr74S04BugFixing
2011-05-15 21:05:59 +02:00
Óscar González Fernández
f1f9074647 Cache the calculated topological order
FEA: ItEr74S04BugFixing
2011-05-14 22:43:20 +02:00
Óscar González Fernández
feea8ef382 [Bug #1070] Fix problem in GanttDiagramGraph
getRecalculationsNeeded took a huge amount of time when tasks can be
reached from several paths in complex graphs. In the case a task is
reached from another path the recalculation for that task was removed
from the result and added to the pending queue. Thus it was guaranteed
that the result was a topological order, since recalculations would be
pushed to the end. But the recalculations dependent of the already
added were still in the pending queue and executed. This caused more
removals from the result and subsequent additions to the pending
queue.

Now a topological order is applied to the recalculations
calculated. For each task point a depth value is calculated. A
topological order is necessary, so a recalculation is executed after
all its predecessors.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:33 +02:00
Óscar González Fernández
907c232492 When enforcing all the constraints using only the ones without incoming dependencies
Otherwise repeated calculations are done.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:25 +02:00
Óscar González Fernández
fd2c2ca718 When populating the graph with dependencies don't enforce contraints yet
The constraints are asked to be enforced later.

FEA: ItEr74S04BugFixing
2011-05-14 22:38:13 +02:00
Manuel Rego Casasnovas
a78a86083c [Bug #1066] Fixed bug updating calendar exception days.
FEA: ItEr74S04BugFixing
2011-05-13 18:16:16 +02:00
Manuel Rego Casasnovas
95389ffcd4 [Bug #1068] Fixed issue when a quality form advance was marked as spread.
FEA: ItEr74S04BugFixing
2011-05-13 14:05:21 +02:00
Óscar González Fernández
48cb431159 [Bug #1067] Fix bug
Highlight was not working outside the execution of a event. Previously
it was executing bound to a bookmark change event, but now using
matrix parameters it is no longer true.

Now highlight would work outside the handling of an event listener.

FEA: ItEr74S04BugFixing
2011-05-13 12:21:08 +02:00
Óscar González Fernández
464ca82042 Fix disparity between dates in task properties and allocation tab
FEA: ItEr74S04BugFixing
2011-05-12 17:51:22 +02:00
Manuel Rego Casasnovas
34369a92f3 [i18n] Fixed issue using application in Spanish.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-11 20:13:33 +02:00
Manuel Rego Casasnovas
5a6e3fc048 [i18n] Updated Spanish and Galician translations.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-11 20:13:33 +02:00
Manuel Rego Casasnovas
973f631619 [i18n] Updating keys.pot files.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-11 20:13:33 +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
1fba1c4896 Make DomainDependency implement IDependency
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
0ff719101e [Bug #1041] Fixed issues with default password warning messages.
FEA: ItEr74S04BugFixing
2011-05-11 17:26:24 +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
Susana Montes Pedreira
c5de10fa0e [Bug #1061] it marks LimitingResourceQueueModel with @OnConcurrentModification
to intercept an OptimisticLockingFailureException.

FEA: ItEr74S04BugFixing
2011-05-10 19:35:35 +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
Óscar González Fernández
47072040b5 Remove enforceAllRestrictions call
It was done to force the showing of the constraint violations after
the components have been created. Now this is not needed thanks to the
support for receiving pending of notification events.

FEA: ItEr74S04BugFixing
2011-05-10 17:56:36 +02:00
Óscar González Fernández
c60874af46 Add support for receiving not notified events
Some events can be lost due to not existing a listener at the
time. Now they are stored and when adding a listener it can be
configured to receive all pending events.

FEA: ItEr74S04BugFixing
2011-05-10 17:55:56 +02:00
Óscar González Fernández
f09771b001 [Bug #1048] Fix bug
When a task is fixed, no constraints were preserved and the last check
for all constraints was avoided. Now although the task is not moved
due to be fixed, the final check with all constraints is done.

FEA: ItEr74S04BugFixing
2011-05-10 17:55:12 +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
Óscar González Fernández
d31e03fe44 Rename URLHandler to EntryPointsHandler
The new name reflects better is meaning.

FEA: ItEr74S04BugFixing
2011-05-10 12:38:40 +02:00
Óscar González Fernández
bbc49962cf Fix method name and reuse it
FEA: ItEr74S04BugFixing
2011-05-10 12:15:19 +02:00
Óscar González Fernández
086c1891dd Fix regression introduced in c05150b234
Most pages only handled entry points through a bookmark change. Now
they handle requests with matrix parameters too.

FEA: ItEr74S04BugFixing
2011-05-10 12:11:39 +02:00
Óscar González Fernández
0dfea240ee Use capture mechanism instead of building urls manually
The capture mechanism is checked at compile time so it's safer than
building the links manually.

FEA: ItEr74S04BugFixing
2011-05-09 19:25:39 +02:00
Óscar González Fernández
c05150b234 When use redirect avoid to use fragment
The fragment is the part after the pound, #. If a fragment is used,
first the page is loaded and then the fragment is processed
afterwards. Not using fragments it can go directly to the correct
page.

FEA: ItEr74S04BugFixing
2011-05-09 16:22:56 +02:00
Óscar González Fernández
eaf2538a64 [Bug #1001] Fix bug
Use new mechanism for handling OptimisticLockingFailureException on
arbitrary interfaces. There is no model on which to apply a
@OnConcurrentModification.

FEA: ItEr74S04BugFixing
2011-05-09 16:22:56 +02:00
Óscar González Fernández
82b825e071 Add mechanism for handling OptimisticLockingFailureException on random objects
It uses a transparent proxy.

FEA: ItEr74S04BugFixing
2011-05-09 16:22:56 +02:00
Óscar González Fernández
04a510878c Add mechanism to capture the redirection to a entry point
The redirection is not done and the redirected path is returned
instead.

FEA: ItEr74S04BugFixing
2011-05-09 16:22:55 +02:00
Óscar González Fernández
805ffbd7cd Add missing metadata to entry points
FEA: ItEr74S04BugFixing
2011-05-09 16:22:55 +02:00
Manuel Rego Casasnovas
6a0cbd243b Removed PDF option in printing configuration dialog.
FEA: ItEr74S05PrintingSupportItEr73S05
2011-05-09 12:50:54 +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