Commit graph

5248 commits

Author SHA1 Message Date
Óscar González Fernández
a2e8c3ea2e Rename method to reflect better is meaning
FEA: ItEr66OTS07PlanificacionHaciaAtrasItEr65OTS03
2010-12-29 22:15:42 +01:00
Óscar González Fernández
be2b4b5f4d Remove duplication delegating to AllocationRowsHandler
FEA: ItEr66OTS07PlanificacionHaciaAtrasItEr65OTS03
2010-12-29 21:58:58 +01:00
Óscar González Fernández
3ca8b84b8d Fix bug
It avoids exception when doing a reassignation and there is an
unsatisfied generic allocation. Now in that case new resources mathing
the criterions are queried.

FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
cfc3551e31 Provide IResourceDAO to DatesHandler
It's going to be needed to avoid error when trying to do allocation on
an unsatisfied generic allocation.

FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
a42018bfc5 Ensure that getResourcesPerDay never returns null
FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
9a9afdc5c9 Instead of delegating call the inner object
FEA: ItEr66S04BugFixing
2010-12-29 19:23:03 +01:00
Óscar González Fernández
4d1c4bb293 Delete unneeded field.
FEA: ItEr66S04BugFixing
2010-12-29 19:23:02 +01:00
Diego Pino Garcia
765375425a Fix bug Exception launched when clicking on Edit Task 'Found resources' panel: doesn't implement comparable
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-29 18:08:48 +01:00
Óscar González Fernández
4a4e257952 Avoid exception
It happened when changing the calculated value and a resources per day
input was marked as invalid.

FEA: ItEr66S04BugFixing
2010-12-28 22:14:41 +01:00
Óscar González Fernández
207ba45e5e Improve the stickiness of the parameters specified by the user
After doing an allocation if the task was moved to a place where it
cannot be satisfied the parameters specified by the user were
overriden with zero like values.

Now it keeps the fields originalTotalAssignment and resourcesPerDay so
if the allocation can be satisfied again it uses the original values.

FEA: ItEr66S04BugFixing
2010-12-28 21:20:29 +01:00
Óscar González Fernández
3f5f8b4332 Introduce factory
This makes clearer the meaning of the method

FEA: ItEr66S04BugFixing
2010-12-28 21:20:24 +01:00
Diego Pino Garcia
e93e445ac3 Merge branch 'FixBugRemoveGetQueuesOf' 2010-12-27 18:48:07 +01:00
Diego Pino Garcia
5cce1b123e Remove getQueuesOf()
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 18:47:25 +01:00
Óscar González Fernández
c7f96413c0 [Bug #761] Fix bug
Initializing disabled state of workerSearchTab and
newAllocationSelector so they don't keep previous disabled state.

FEA: ItEr66S04BugFixing
2010-12-27 16:26:27 +01:00
Óscar González Fernández
9caf32dcc6 [Bug #773] Fix bug
After saving the order, the constraints are updated for each task
unless it already has some allocations done to it.

FEA: ItEr66S04BugFixing
2010-12-27 15:38:15 +01:00
Óscar González Fernández
cfa4060d4e Rename method
Now it reflects better its meaning.

FEA: ItEr66S04BugFixing
2010-12-27 15:38:15 +01:00
Diego Pino Garcia
2809763f1a Fix bug when allocating an unscheduled queue element, do it like if it were like an unscheduled element in the list on unscheduled queue elements
If doing an appropriative allocation it's necessary to unscheduled
element to make room enough for a gap, later those elements should be
schedule back again like it were unscheduled elements coming from the
list of unscheduled queue elements.

It's not possile to make any guess about in which queue it make fit,
as this may change depending on the new gaps created.

FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 13:56:02 +01:00
Diego Pino Garcia
c7f51c0a72 Add method queueuOf() retrieves all diferent queues for a set of queue elements
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 13:55:41 +01:00
Diego Pino Garcia
ef137d2637 Fix bug advance gap until allocation time
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 13:55:34 +01:00
Diego Pino Garcia
b4de7e098e Fix bug in getHoursInGapUntilAllocatingAndGoingToTheEnd(), don't add 0 hour days if the total number of hours to allocate were already completed
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 12:05:58 +01:00
Diego Pino Garcia
f92ff825ea Fix bug a task in a queue can only be reloaded if it was previously inserted in that queue
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:48:59 +01:00
Diego Pino Garcia
da187a59ec Fix bug refresh queues correctly after replacing a resource allocation
of a task for another which may be in a different queue

FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:48:35 +01:00
Diego Pino Garcia
3be35bc1a9 Rename removeDependenciesComponent() to removeDependenciesFor() and swap order of parameters in removeQueueElementFrom()
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:48:17 +01:00
Diego Pino Garcia
0fa470ba82 Fix bug NullPointerException on editing limiting resource task (context is null)
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:48:01 +01:00
Diego Pino Garcia
bdee58be1a Added method addDependenciesFor()
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:47:52 +01:00
Diego Pino Garcia
3919489159 Fix bug dependencies are not correctly removed or refreshed when a task is moved or unscheduled from limiting resources panel
Some dependency components were added more times than necessary. This
caused some troubles when a task was unscheduled or moved (some older
dependency components were removed but others didn't).

Refactor code, only add dependency component if they're going to be
shown in the planner.

FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:47:30 +01:00
Diego Pino Garcia
02bf5f18b7 Remove unused import
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:46:26 +01:00
Diego Pino Garcia
1898219281 Added toString() method
FEA: ItEr66OTS08CorreccionsRecursosLimitantesItEr65OTS04
2010-12-27 09:46:06 +01:00
Manuel Rego Casasnovas
e4e661b48d Remove unneeded scripts.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-23 14:26:21 +01:00
Manuel Rego Casasnovas
dd0b85a1b9 Improved i18n scripts in order to generate keys.pot files with relative paths.
* Updated keys.pot files.

FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-23 14:11:46 +01:00
Manuel Rego Casasnovas
7a19c3f830 Updated Debian package and bump version to 0.9.1.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-23 00:20:49 +01:00
Manuel Rego Casasnovas
cda5673445 Fixed logo in different languages.
* Fixed help link in login page.

FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-22 23:53:12 +01:00
Manuel Rego Casasnovas
283f2fd985 Updated Spanish and Galician translations.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-22 23:53:11 +01:00
Óscar González Fernández
ebaa4a5127 Fix as soon as possible constraint in backwards scheduling mode
A initDate must be provided to the getStartConstraints method in order
to calculate the ASAP constraint.

FEA: ItEr66S04BugFixing
2010-12-22 19:32:02 +01:00
Óscar González Fernández
fc01b5d223 Take into account the allocation direction
The scheduling window must do the scheduling according to the last
allocation direction. The start and end dates are updated depending on
the type of scheduling done.

FEA: ItEr66S04BugFixing
2010-12-22 19:03:40 +01:00
Óscar González Fernández
621d72508e Expose methods for allocating from end to start
FEA: ItEr66S04BugFixing
2010-12-22 19:03:39 +01:00
Óscar González Fernández
36b13e9390 Make getStart and getEnd depend on the direction of the allocation
FEA: ItEr66S04BugFixing
2010-12-22 19:03:39 +01:00
Jacobo Aragunde Pérez
6107e1b3bc Simplified the code in TaskPropertiesController merging two listeners into a single one.
FEA: ItEr66OTS04XestionRecursosEstratexicosItEr65OTS07
2010-12-22 16:36:53 +01:00
Óscar González Fernández
0d7761ef7a [Bug #763] Fix bug
The order of the forces applied varies depending on the constraints
having priority or not. This works because the weak forces only use
the constraints of the task and if you have constraints for one point
you don't have them for the other.

FEA: ItEr66S04BugFixing
2010-12-21 19:28:15 +01:00
Óscar González Fernández
7bcf3efe6c Avoid updating the date if it's the same
FEA: ItEr66S04BugFixing
2010-12-21 19:28:15 +01:00
Óscar González Fernández
6cd735f009 Remove unnecessary code
The global end constraints are applied in the dominating forces when
appropriate.

FEA: ItEr66S04BugFixing
2010-12-21 19:28:15 +01:00
Manuel Rego Casasnovas
b6b7327f72 Fixed small issues related with PostgreSQL Java library link.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 18:10:26 +01:00
Óscar González Fernández
d4628bf37c [Bug #772] Fix bug
Enforcing restrictions on the source because it can be affected too
when doing backwards allocation.

FEA: ItEr66S04BugFixing
2010-12-21 17:45:54 +01:00
Manuel Rego Casasnovas
a884449609 Updated debian/changelog with last changes.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 17:33:24 +01:00
Manuel Rego Casasnovas
6d3b3410e9 Some renames in Debian package.
* Renamed war in order to use just navalplan instead of navalplanner-webapp.
* Renamed data source name for context.xml now using navalplan-ds.

FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 17:33:24 +01:00
Manuel Rego Casasnovas
76b43a85b6 Added new dependency to libpg-java package.
* Modified debian/rules in order to a proper link to PostgreSQL Java library at /usr/share/tomcat6/lib.
* Also added lines to restart Tomcat in order to load this library.

FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 17:33:24 +01:00
Manuel Rego Casasnovas
479cac6bbd Copying install SQL script in order to create database structure for Debian package.
FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 17:33:24 +01:00
Manuel Rego Casasnovas
fb35692c1c Fixed Debian package in order to work with last versions of Tomcat.
In Tomcat 6 "/etc/tomcat6/context.xml" doesn't have a new line in the last one and this was causing troubles adding NavalPlan configuration.

FEA: ItEr66S03CommunityMaterialItEr65S04
2010-12-21 17:33:24 +01:00
Óscar González Fernández
5112be9c6e [Bug #760] Fix corner case
When the calculated value was end date and the task was moved
backwards with a new end date that is before to the old start date and
the allocation cannot be satisfied, the start date picked would be
posterior to the new end. To avoid this, the dates must always be
recalculated taking into account the length.

FEA: ItEr66S04BugFixing
2010-12-21 16:53:00 +01:00
Óscar González Fernández
edf8bab805 [Bug #769] Fix bug
Ensuring that the variable with the resulting restrictions is not
null. When the task is fixed, this variable was not intialized.

FEA: ItEr66S04BugFixing
2010-12-21 15:35:56 +01:00