Commit graph

2298 commits

Author SHA1 Message Date
Óscar González Fernández
834dbeb39b [Bug #1091] Be more lenient if the end date is before start date
Do nothing instead of throwing an exception.
2011-06-09 13:26:14 +02:00
Óscar González Fernández
e2a4fff81c Extract validation checks and fix exception message
FEA: ItEr74S04BugFixing
2011-06-09 13:26:14 +02:00
Manuel Rego Casasnovas
6beac59394 Released 1.1.1 version.
* Bump to 1.1.1.
* Updated NEWS file.
* Updated debian package changelog.

FEA: ItEr74S03CommunityMaterialItEr73S03
2011-06-07 11:11:05 +02:00
Óscar González Fernández
8370d66ebb Avoid where possible to mark a method as throws Exception
FEA: ItEr74S04BugFixing
2011-06-06 18:06:02 +02:00
Óscar González Fernández
8671d73a8c Avoid creation of array by reflection
FEA: ItEr74S04BugFixing
2011-06-06 18:06:02 +02:00
Óscar González Fernández
07d335ab17 Review methods that provide variables that are known to be null
FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
9f11338947 Implement missing equals or add warning to classes that have a natural ordering
FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
b40a5eed12 Remove unnecessary null checks
FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
af5ca60af2 Mark classes as static when not referencing outer class
FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
1a54013e7e Avoid the use of Number constructors
They look bad and are more inefficient.

FEA: ItEr74S04BugFixing
2011-06-06 18:06:01 +02:00
Óscar González Fernández
5c8fbebde0 [Bug #1086] Fix bug
Always return the intended resources per day. Even if the calculated
value of the task is resources per day, the current calculated value
could be changed but in the task not yet.

FEA: ItEr74S04BugFixing
2011-06-06 10:58:31 +02:00
Manuel Rego Casasnovas
0d327dac9c Changed test to avoid it fails if it's launched on Saturday.
FEA: ItEr74S04BugFixing
2011-06-04 11:13:12 +02:00
Manuel Rego Casasnovas
9459be7464 [i18n] Fixed typo in progress with all tasks.
FEA: ItEr74S04BugFixing
2011-06-03 13:35:10 +02:00
Manuel Rego Casasnovas
c358afbc28 [i18n] Fixed typo in "criterions" using "criteria".
FEA: ItEr74S04BugFixing
2011-06-03 13:35:00 +02:00
Manuel Rego Casasnovas
d88f5703cb [i18n] Changed "order sequence" for "entity sequence"
FEA: ItEr74S04BugFixing
2011-06-02 18:26:35 +02:00
Manuel Rego Casasnovas
04afbf3f06 Fixed two translation issues.
* Fixed typo in "Stacktrace"
* Changed "START_NOT_EARLIER_THAN" for "start not earlier than"

FEA: ItEr74S04BugFixing
2011-06-02 18:26:24 +02:00
Susana Montes Pedreira
5e00405ec2 [Bug #1014]
include the name of the assigned task to each report line, in the report
worked hours per each resource.

FEA: ItEr74S04BugFixing
2011-06-01 19:11:49 +02:00
Susana Montes Pedreira
d91a8a6831 [Bug #1014]
return the date time at start of day to perform the grouping by date correctly.

FEA: ItEr74S04BugFixing
2011-06-01 19:11:49 +02:00
Susana Montes Pedreira
d254e4988d Fixed problem with last LiquiBase change in PostgreSQL.
it set defaultNullValue to true,  in order to update the value to true if the value is null.

Execute the next SQL sentence in your database if you want to
keep working with your current database:

UPDATE DATABASECHANGELOG SET MD5SUM='3:0542da97fbff41b95f9cf5ef10ffa322' WHERE ID='add-new-column-enabled-autocomplete-login' AND
AUTHOR='smontes' AND FILENAME='src/main/resources/db.changelog-1.1.xml';

FEA:ItEr74S04BugFixing
2011-05-31 10:38:05 +02:00
Susana Montes Pedreira
6d3d3a6b2c [Bug #1075] Fix the some features in the autocomplete property configuration.
it changes the tooltiptext from zul page to controller.
it deletes unnecessary query.

FEA: ItEr74S04BugFixing
2011-05-31 10:25:17 +02:00
Susana Montes Pedreira
dea3ec3193 [Bug #1075] disables the autocomplete login form property if the admin password is not on default.
FEA: ItEr74S04BugFixing
2011-05-30 13:28:07 +02:00
Susana Montes Pedreira
4f91435a73 [Bug #1075] adds compiling option to disable/enable the autocomplete login.
FEA: ItEr74S04BugFixing
2011-05-30 13:16:42 +02:00
Óscar González Fernández
9e4b329791 [Bug #954] Fix bug
Allow to do flush before doing validations, so the optimist locking
exceptions don't happen at validation phase. When validating, the
exceptions are wraped, so the optimist locking failure can't be easily
seen.

FEA: ItEr74S04BugFixing
2011-05-27 13:12:01 +02:00
Óscar González Fernández
434c92d5be Refactor password not changed controller code
FEA: ItEr74S08DeployFramework
2011-05-23 19:29:55 +02:00
Manuel Rego Casasnovas
eaf17f75b9 Added new Liquibase changelog file for new developments on stable branch.
The new file is "db.changelog-1.1.xml" and will store changes that will
be needed for the future 1.2 version.

FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-19 17:36:06 +02:00
Manuel Rego Casasnovas
50aecc4cc3 Released 1.1.0 version.
* Bump to 1.1.0.
* Updated NEWS file.
* Updated debian package changelog.

FEA: ItEr74S03CommunityMaterialItEr73S03
2011-05-19 07:50:37 +02:00
Óscar González Fernández
0b97acc372 Calls to reassign wipe out the previous not consolidated assignments
This allows to delete the calls to reassign with zero effort.

FEA: ItEr74S04BugFixing
2011-05-16 17:55:37 +02:00
Óscar González Fernández
ff54310d36 Add test for a corner case
FEA: ItEr74S04BugFixing
2011-05-16 17:54:07 +02:00
Óscar González Fernández
e5c2dadf16 Move calculation of efforts to Consolidation
FEA: ItEr74S04BugFixing
2011-05-16 16:28:37 +02:00
Óscar González Fernández
d84ced9393 When deconsolidating it always uses the previous assingments instead of the newly created ones
After adding or removing a consolidated value, the day assignmetns
consolidated values are changed. The updateConsolidatedAssignments
aproach is no longer used and its method is removed.

FEA: ItEr74S04BugFixing
2011-05-16 16:28:37 +02:00
Óscar González Fernández
ed7c26d8f5 Provide EffortDurations instead of the more coarse hours
FEA: ItEr74S04BugFixing
2011-05-16 16:28:37 +02:00
Óscar González Fernández
b2c38242fd Remove unused method
FEA: ItEr74S04BugFixing
2011-05-16 16:28:37 +02:00
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