Commit graph

257 commits

Author SHA1 Message Date
Diego Pino
963217996e Code refactoring
* EarnedValueCalculator calculates 'Earned Value' generic indicators
* Generic indicators are those indicators that are calculated out of BCWP,
ACWP and BCWS
* EarnedValueChartFillers call EarnedValueCalculator to get the real
values of the indicators and plot them in the chart.

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-07 19:58:53 +02:00
Diego Pino
65fea45d02 Rename 'EarnedValueCalculator' to 'OrderEarnedValueCalculator'
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-07 19:58:53 +02:00
Diego Pino
a68efea35b Code refactoring
Create utility class 'CompanyEarnedValueCalculator' for calculating all Earned Value indicators related with Company

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-07 19:58:53 +02:00
Diego Pino
f0ab50f78f Code refactoring
Create utility class 'EarnedValueCalculator' for calculating all earned value measurements related with an Order

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-07 19:58:49 +02:00
Jacobo Aragunde Pérez
36b03ea1e7 Bug #1433: Fix the problem when there are multiple levels of tasks involved.
FEA: ItEr76S04BugFixing
2012-05-07 16:42:32 +02:00
Jacobo Aragunde Pérez
5edf9998ff Bug #1433: Small code refactor of this bug fix.
FEA: ItEr76S04BugFixing
2012-05-07 16:42:32 +02:00
Jacobo Aragunde Pérez
73b4f99e33 Bug #1433: Make sure that old TaskSources are deleted also in the case of parent tasks.
It fixes the other part of the bug, when a task is the only child of a container and
it is unscheduled, so the TaskSource of the parent is deleted too.

FEA: ItEr76S04BugFixing
2012-05-07 16:42:32 +02:00
Jacobo Aragunde Pérez
a25fac6146 Bug #1433: Make sure that old TaskSources are deleted when a task is unscheduled and re-scheduled.
This fixes the bug partially. It still fails when the task is the only child of
a container.

FEA: ItEr76S04BugFixing
2012-05-07 16:42:32 +02:00
Manuel Rego Casasnovas
398355295f Bug #1431: Fix test because of now allocations are sorted (specific before generic)
FEA: ItEr76S04BugFixing
2012-05-04 08:15:38 +02:00
Manuel Rego Casasnovas
56043972c7 Bug #1431: Fix test creating a standard list instead of an unmodifiable list
FEA: ItEr76S04BugFixing
2012-05-04 08:11:10 +02:00
Manuel Rego Casasnovas
9d5e3d88dd Bug #1431: Fix issue sorting allocations (first the specific ones)
FEA: ItEr76S04BugFixing
2012-05-03 17:38:24 +02:00
Manuel Rego Casasnovas
0a51bbdca0 Bug #1428: Possible fix
Attaching day assignments to resources and detaching them later once the
allocation is done as they will be attached in a different method again.

FEA: ItEr76S04BugFixing
2012-05-03 17:33:18 +02:00
Jacobo Aragunde Pérez
bded052097 Moved code attribute from InfoComponent to new class InfoComponentWithCode to fix regression.
FEA: ItEr76S26RemoveExternalCodeFromTemplates
2012-05-03 11:38:04 +02:00
Jacobo Aragunde Pérez
b24c84cd10 Moved database changeset to the correct file.
FEA: ItEr76S26RemoveExternalCodeFromTemplates
2012-04-30 09:57:42 +02:00
Jacobo Aragunde Pérez
801ffc456e Remove code attribute from OrderElementTemplate entity and from DB.
FEA: ItEr76S26RemoveExternalCodeFromTemplates
2012-04-28 13:08:28 +02:00
Manuel Rego Casasnovas
f07ce4fccd Bug #1412: Avoid NPE if clockStart and clockFinish are not defined
FEA: ItEr76S04BugFixing
2012-04-27 12:07:43 +02:00
Manuel Rego Casasnovas
1883935812 Add new fields for currency code and symbol in configuration
* Modified Java entity
* Configured Hibernate mapping
* Add Liquibase changes to create the new columns

FEA: ItEr76S25CurrencyManagement
2012-04-26 15:56:20 +02:00
Manuel Rego Casasnovas
154ceb785d Fix problems with Liquibase 2.0.4 and MySQL for tag modifyDataType
modifyDataType was converting the column in LONGTEXT instead of TEXT and this
was causing problems with Hibernate mapping.

FEA: ItEr76S03Community
2012-04-25 08:52:49 +02:00
Manuel Rego Casasnovas
0e8e0ecb95 Update Liquibase to 2.0.4
FEA: ItEr76S03Community
2012-04-24 09:45:35 +02:00
Jacobo Aragunde Pérez
122a7fb92b Bump version number to 1.2.3
FEA: ItEr76S03Community
2012-04-19 13:03:00 +02:00
Manuel Rego Casasnovas
6df0d070af i18n: Add Polish language to enum and modify pom.xml to use English userguide 2012-04-19 09:28:21 +02:00
Manuel Rego Casasnovas
9632686004 Bug #1384: Add validation in starting date and deadline depending on position constraints
FEA: ItEr76S04BugFixing
2012-04-18 18:23:57 +02:00
Manuel Rego Casasnovas
691bd6634a Bug #1412: Fix problem converting to string clockStart and clockFinish
FEA: ItEr76S04BugFixing
2012-04-17 18:21:02 +02:00
Manuel Rego Casasnovas
b698d0fa1e Add new compilation option to disable default users (user, wsreader and wswriter)
A new Maven property has been added to disable the default users. This property
is enabled by default except for the "dev" profile.

You can manually specify the property with the following argument:
-Ddefault.exampleUsersDisabled=false

FEA: ItEr76S04BugFixing
2012-04-13 15:45:38 +02:00
Manuel Rego Casasnovas
45b8620102 Merge branch 'master' into project-dashboards 2012-04-10 11:31:52 +02:00
Manuel Rego Casasnovas
cd229f13af Fix several issues in the new thread
* BlockingQueue with size 1 could block some order saving till the queue was not
  empty.
* Counter in order to check the maximum number of attempts was post-incremented,
  so it was not working at all.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-04-04 16:01:09 +02:00
Manuel Rego Casasnovas
f6457e00fc Add a thread to perform SumChargedEffort recalculations
FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-04-04 12:19:34 +02:00
Manuel Rego Casasnovas
a3339c3269 Improve database preconditions in Liquibase changeset
Using the "dbms" attribute in "changeset" tag doesn't show any warning as if
database doesn't match the change is simply ignored.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-04-04 08:38:43 +02:00
Manuel Rego Casasnovas
3ca40f560a Bug #1400: Move call to do recalculations after doTheSaving
In order to do the recalculations is needed that the order is actually saved, so
it's better to call the DAO after doTheSaving method.

Moreover, now the DAO receive an id and look for the order in database.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-04-03 12:54:08 +02:00
Manuel Rego Casasnovas
8262066518 Bug #1400: Fix problem recalculating SumChargedEfforts if some elements are moved in the WBS
If an OrderElement is added or removed in the WBS and it is not a new object,
then the Order is marked to recalculate the SumChargedEfforts. During the Order
saving the SumChargedEfforts are recalculated.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-04-02 19:45:00 +02:00
Manuel Rego Casasnovas
62b7e33a10 Add map in order to avoid repeat find when SumChargedEffort has been already found before
FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-03-30 17:43:40 +02:00
Manuel Rego Casasnovas
dfb0090666 Prevent NPE in OrderElement::getSumChargedEffort()
Now SumChargeEffort objects are not created till some hours are reported, so it
could be null in some cases.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-03-30 17:43:39 +02:00
Manuel Rego Casasnovas
abc0e0fe66 Create SumChargedEffort while saving the work reports
FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-03-30 17:43:39 +02:00
Manuel Rego Casasnovas
7f5184b78d Change mapping between SumChargedEffort and OrderElement
A database refactoring has been added to make this change keep working and avoid
lose any data.

It was needed to use specific procedures for PostgreSQL and MySQL.

FEA: ItEr76S14ConcurrencyProblemWorkReports
2012-03-30 15:13:12 +02:00
Susana Montes Pedreira
c2683547d2 [Bug #1234] Fix the deletion of fields in progress reporting in subcontractor module.
FEA: ItEr74S04BugFixing
2012-03-28 12:47:18 +01:00
Manuel Rego Casasnovas
92bef8a27d Fix problems in Liquibase changes in MySQL
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-28 11:27:26 +02:00
Manuel Rego Casasnovas
979ac144b1 Merge branch 'money-cost-monitoring-system' 2012-03-27 17:51:02 +02:00
Manuel Rego Casasnovas
8d37e716e6 Merge branch 'libreplan-1.2' into money-cost-monitoring-system 2012-03-27 17:26:21 +02:00
Jacobo Aragunde Pérez
749de4e569 Bug #1387: Code refactor of the previous patches for this bug.
FEA: ItEr76S04BugFixing
2012-03-27 10:52:13 +02:00
Jacobo Aragunde Pérez
21df77d458 Bug #1387: Fix bug when it happens in the opposite way.
This fixes when you have a container task which is a scheduling point, and you
unschedule it to schedule its children. This is the opposite to the original
description of the bug, but the cause is the same.

FEA: ItEr76S04BugFixing
2012-03-27 10:52:09 +02:00
Óscar González Fernández
d6468ddd1c Bug #1387: Fix bug
Possible fix of the first problem. It looks into the
SchedulingDataForVersion instead of the data to see the status in the
database instead of in memory so the synchronizations sent to the
database are ok.
2012-03-27 10:51:59 +02:00
Jacobo Aragunde Pérez
398aab26ba Bug #1387: Code refactor of the previous patches for this bug.
FEA: ItEr76S04BugFixing
2012-03-27 10:45:05 +02:00
Jacobo Aragunde Pérez
5d8860474b Bug #1387: Fix bug when it happens in the opposite way.
This fixes when you have a container task which is a scheduling point, and you
unschedule it to schedule its children. This is the opposite to the original
description of the bug, but the cause is the same.

FEA: ItEr76S04BugFixing
2012-03-27 10:38:53 +02:00
Manuel Rego Casasnovas
88e39eabd8 Show budget information in a read-only field inside task properties tab
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-27 10:07:31 +02:00
Óscar González Fernández
a20fc0ec1f Bug #1387: Fix bug
Possible fix of the first problem. It looks into the
SchedulingDataForVersion instead of the data to see the status in the
database instead of in memory so the synchronizations sent to the
database are ok.
2012-03-27 09:54:47 +02:00
Manuel Rego Casasnovas
e5f00bb8a1 Bug #1403: Only regenerate codes if isCodeAutogenerated() is true
FEA: ItEr76S04BugFixing
2012-03-26 18:32:57 +02:00
Manuel Rego Casasnovas
16e3d1860e Bug #1403: Only regenerate codes if isCodeAutogenerated() is true
FEA: ItEr76S04BugFixing
2012-03-26 18:30:33 +02:00
Manuel Rego Casasnovas
65fcc3e0f1 Add a map in MoneyCostCalculator to cache calculated values
This prevents to recalculate money cost when it was already calculated before.
The map with the cached values is reseted every time you enter in a project
(when PlanningState is created).

FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-26 10:39:15 +02:00
Lorenzo Tilve Álvaro
f50806e51e Bug #1289: Added subcontractor name to tasks when showing resources is enabled
The name of the subcontractors are not being displayed when the container is collapsed. The
expected behaviour also might consider painting the parent node differently when it only contains
subcontracted elements.

FEA: ItEr76S04BugFixing
2012-03-24 13:00:06 +01:00
Lorenzo Tilve Álvaro
ff2f2298cf Bug #1289: Added subcontractor name to tasks when showing resources is enabled
The name of the subcontractors are not being displayed when the container is collapsed. The
expected behaviour also might consider painting the parent node differently when it only contains
subcontracted elements.

FEA: ItEr76S04BugFixing
2012-03-24 12:54:16 +01:00