Commit graph

9228 commits

Author SHA1 Message Date
Oscar Gonzalez Fernandez
f14de444ac Introduce parameter object
Introduce parameter object to simplify the intent of the code.
2013-06-21 14:51:56 +02:00
Oscar Gonzalez Fernandez
9576e135ad Use ProcessBuilder to construct program calls
Avoid potential remote code execution through the `parameters`
parameter. They were concatenated to the capture command String
directly, which could lead to the injection of malicious code.

Currently the problem isn't exposed because the potential attacker
can't control the contents of the `parameters` map, since their
contents are chosen from a limited set of values.
2013-06-21 14:51:56 +02:00
Lorenzo Tilve Álvaro
48b29cc6aa Fixed wrong not-null restriction on Criterion to CostCagegory hibernate definition
FEA: ItEr77S17AutomaticBudgeting

This is also fixing the broken test on CriterionDAO
2013-06-20 16:30:04 +02:00
Lorenzo Tilve Álvaro
b512f75bfc Disabled loading of HourCosts associated to Criterion CostCategory
FEA: ItEr77S17AutomaticBudgeting

As a method has been added to HourCostDAO to provide the PricePerHour associated
to a category, for an specific WorkHourType, the loading and attachment of
these objects is not longer needed here.
2013-06-19 13:41:36 +02:00
Lorenzo Tilve Álvaro
902ad00b80 Bug #1619: Adding elements from template to the WBS was not showing the new nodes
FEA: ItEr77S04BugFixing
2013-06-19 13:41:36 +02:00
Lorenzo Tilve Álvaro
b30fbb28a2 Parametrized use of resources budget column
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 13:41:21 +02:00
Lorenzo Tilve Álvaro
629f235823 Fixed problems in the algorithm when having criteria both on requirements and hours group
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 12:38:16 +02:00
Lorenzo Tilve Álvaro
2ccb291570 Modified transactional wrapper to avoid duplicating session
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 12:38:03 +02:00
Lorenzo Tilve Álvaro
37858bb491 Implemented method to obtain criterion cost on HourCostDAO
FEA: ItEr77S17AutomaticBudgeting

Several components were using Criteria collections not initialized on the
planning state, so when adding dinamically new CriterionRequirements
or HourGroups the group hours were not attached.
2013-06-19 12:35:36 +02:00
Lorenzo Tilve Álvaro
25d359d653 Fixed NPE when attaching criterion without costCategories
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 12:35:16 +02:00
Lorenzo Tilve Álvaro
43e14d8dae Added condition to show resources budget column
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 12:34:31 +02:00
Lorenzo Tilve Álvaro
b65c34382f Fixes on the resources budget calculation algorithm
FEA: ItEr77S17AutomaticBudgeting
2013-06-19 12:34:11 +02:00
Lorenzo Tilve Álvaro
cd63d13805 Attached onBlur event to remove CostCategory after clearing the autocomplete
FEA: ItEr77S17AutomaticBudgeting
2013-06-14 10:48:51 +02:00
Lorenzo Tilve Álvaro
a10f37d390 Added restriction to avoid deletion of costCategories assigned to criterion
FEA: ItEr77S17AutomaticBudgeting
2013-06-14 10:10:17 +02:00
Lorenzo Tilve Álvaro
6bc887739d Added grouping headers to new report with all columns
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:22 +02:00
Lorenzo Tilve Álvaro
728b87d2bf Used previous report when hours budget not selected
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:22 +02:00
Lorenzo Tilve Álvaro
4b5586d126 Modified ProjectStatusReport to include the Hours Budget column
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:22 +02:00
Lorenzo Tilve Álvaro
f895d18acb Modified cost tab on project/task details to include criteria based budget
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
4baa93d790 Moved criteria based budget calculation methods to OrderElement to use them from the OrderCRUD
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
5df152a9bd Implemented initial version for the budget calculation algorithm
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
a3a237b9aa Added new column to WBS with the data from the task criteria
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
25e45b65e8 Included new column for the calculated budget to the WBS
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
15883806f5 Added to configuration class accessors for automatic budget properties
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
024f30ab0b Included in the interface new settings to enable automatic budgeting and the type of hour to use on it
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
2b4ac1c3ed Linked cost category autocomplete widget to criteria edition window
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Lorenzo Tilve Álvaro
98f01f9824 Added database changes to store Criterion to CostCategory relationship
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:15 +02:00
Lorenzo Tilve Álvaro
2b520e0733 Created new liquibase changelog file for 1.4 version
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 13:38:47 +02:00
Lorenzo Tilve Álvaro
852eae4281 Defined persistence for the relationship between criteria and cost category
FEA: ItEr77S17AutomaticBudgeting
2013-06-06 19:19:32 +02:00
Lorenzo Tilve Álvaro
4408f965d1 Added empty cell renderer to criterion to include the cost category
FEA: ItEr77S17AutomaticBudgeting
2013-06-06 19:17:56 +02:00
Lorenzo Tilve Álvaro
e5450066de Added relationship between Criterion and CostCategories
FEA: ItEr77S17AutomaticBudgeting
2013-06-06 19:15:00 +02:00
Lorenzo Tilve
556736af39 Merge pull request #6 from ogf/connection-pooling 2013-06-06 00:42:52 -07:00
Oscar Gonzalez Fernandez
3713198a93 Use a connection data pool when running tests
It cuts 40 seconds or around from the tests running time.
2013-06-05 12:33:57 +02:00
Oscar Gonzalez Fernandez
bf1f10f4d7 Use newest postgresql driver 2013-06-05 11:31:12 +02:00
Oscar Gonzalez Fernandez
3ce5e012be Use connection pooling in Jetty too
It should increase performance when developing.
2013-06-05 11:31:12 +02:00
Lorenzo Tilve
59da60fe75 Merge pull request #5 from ogf/fix-errors-tests
Merged pull request to fix errors in the tests
2013-06-05 02:25:34 -07:00
Oscar Gonzalez Fernandez
05a9767477 Fix execution order depending error in test
Since the scenario was created in the same transaction (due to using
@Before annotation) was not visible in givenOrderFromPrepareForCreate.
Now use a @BeforeTransaction instead so it's visible before.
2013-06-01 20:47:17 +02:00
Oscar Gonzalez Fernandez
48c3b1093e Remove added exception types
This test was causing errors on CalendarExceptionTypeServiceTest
because it was leaving behind some CalendarExceptionTypes in the
database.
2013-06-01 17:26:42 +02:00
Oscar Gonzalez Fernandez
26da1978f5 Use the same configuration as in other tests
Otherwise it creates a new Spring context instead of keeping using the
previous one.

This doesn't seem specially dangerous, but in some circumstances can
lead to idle transactions with associated locks that hang up the
execution of the tests. This happened with PostgreSQL version 9.1 in
WorkReportServiceTest.importValidDescriptionValuesToWorkReport().
2013-06-01 17:26:30 +02:00
Oscar Gonzalez Fernandez
1045a1a171 Remove no longer applicable comments 2013-06-01 17:26:28 +02:00
Oscar Gonzalez Fernandez
5bc3d42bbe Avoid build warning
Specify the encoding used in the project instead of using the platform
default one. This could lead to not portable builds among different
platforms.
2013-06-01 17:26:21 +02:00
Oscar Gonzalez Fernandez
b0b0d662dc Fix failing test when running mvn install
Some test cases in DerivedAllocationGeneratorTest were failing during
a mvn install. It might not happen in all systems since it depends
on the order the tests are executed. It's also failing if run
individually.

The problem is that ScenarioBootstrap must be executed before
executing these tests. When distributing the resources, the
DayAssignments of the resource for the current scenario are queried.
An IScenarioManager must have been registered in Registry plus the
main scenario initialized.

The stack trace is:

java.lang.IllegalStateException: loadRequiredData should have been called on org.libreplan.business.scenar
ios.bootstrap.ScenariosBootstrap
        at org.libreplan.business.scenarios.bootstrap.ScenariosBootstrap.getMain(ScenariosBootstrap.java:81)
        ...
        at com.sun.proxy.$Proxy42.getMain(Unknown Source)
        at org.libreplan.business.scenarios.OnlyMainScenarioAwareManager.getCurrent(OnlyMainScenarioAwareManager.java:38)
        at org.libreplan.business.resources.entities.Resource$UsingScenarioManager.calculateAssignments(Resource.java:185)
        at org.libreplan.business.resources.entities.Resource$DayAssignmentsState.getAssignments(Resource.java:172)
        at org.libreplan.business.resources.entities.Resource.getAssignments(Resource.java:886)
        at org.libreplan.business.resources.entities.Resource.getAssignmentsForDay(Resource.java:153)
        at org.libreplan.business.resources.entities.Resource.getAssignedDurationDiscounting(Resource.java:861)
        at org.libreplan.business.planner.entities.AssignedEffortForResource$AssignedEffortDiscounting.getAssignedDurationAt(AssignedEff
ortForResource.java:169)
        at org.libreplan.business.planner.entities.EffortDistributor$ResourceWithDerivedData.withAvailableCapacityOn(EffortDistributor.j
ava:232)
        at org.libreplan.business.planner.entities.EffortDistributor.resourcesFromMoreDesirableToLess(EffortDistributor.java:408)
        at org.libreplan.business.planner.entities.EffortDistributor.assignAllPossibleWithoutOvertime(EffortDistributor.java:387)
        at org.libreplan.business.planner.entities.EffortDistributor.distributeForDay_(EffortDistributor.java:356)
        at org.libreplan.business.planner.entities.EffortDistributor.distributeForDay(EffortDistributor.java:341)
        at org.libreplan.business.planner.entities.DerivedAllocationGenerator.createAssignments(DerivedAllocationGenerator.java:114)
        at org.libreplan.business.planner.entities.DerivedAllocationGenerator.generate(DerivedAllocationGenerator.java:68)
        at org.libreplan.business.test.planner.entities.DerivedAllocationGeneratorTest.forOneResourceTheHoursGeneratedAreGotFromAlpha(De
rivedAllocationGeneratorTest.java:205)
2013-06-01 17:25:51 +02:00
Manuel Rego Casasnovas
4e06cbe71a Bump version number to 1.4.0
FEA: ItEr77S03Community
2013-04-29 19:05:17 +02:00
Manuel Rego Casasnovas
09b1e93660 Update NEWS file for LibrePlan 1.4.0
FEA: ItEr77S03Community
2013-04-29 19:05:17 +02:00
Manuel Rego Casasnovas
f1e68a20d9 Update RPM package for LibrePlan 1.4.0
FEA: ItEr77S03Community
2013-04-29 18:16:38 +02:00
Manuel Rego Casasnovas
96ad9c19e5 Update Debian package for LibrePlan 1.4.0
FEA: ItEr77S03Community
2013-04-29 18:15:45 +02:00
Manuel Rego Casasnovas
a7386624b9 Update database scripts for LibrePlan 1.4.0
FEA: ItEr77S03Community
2013-04-29 18:12:52 +02:00
Lorenzo Tilve Álvaro
05c5b932ef Fix excessive height on input boxes, which caused overflowing on some grid rows
FEA: ItEr77S03Community
2013-04-29 17:47:10 +02:00
Lorenzo Tilve Álvaro
1cf8043277 doc: Linked context specific help to scheduler configuration window
FEA: ItEr77S03Community
2013-04-29 17:47:10 +02:00
Lorenzo Tilve Álvaro
fbf89657b9 doc: Added to 'parts' file the references to connector and scheduler manuals
FEA: ItEr77S03Community
2013-04-29 17:47:10 +02:00
Manuel Rego Casasnovas
280d0263c8 doc: Include Loren as Spanish and Galician translator 2013-04-29 17:25:44 +02:00