Commit graph

9238 commits

Author SHA1 Message Date
Lorenzo Tilve Álvaro
dd4d117fa1 Step 1 2013-07-03 11:50:05 +02:00
Oscar Gonzalez Fernandez
17a49b1d9d Use utility method 2013-06-22 11:27:15 +02:00
Oscar Gonzalez Fernandez
4109281e2f Remove use of class introduced in JDK 1.7
Otherwise it wouldn't compile in the integration server. The
possibility of increasing Java version requirement to JDK 7 should be
considered.
2013-06-22 11:26:44 +02:00
Oscar Gonzalez Fernandez
df0a6d1502 Fix potential problem
The capture url could be the same if it's generated in the same
second.
2013-06-21 14:51:57 +02:00
Oscar Gonzalez Fernandez
98bcf3decd Don't use the same display number always
Otherwise the Xvfb server could fail if another printing request
overlaps. They get different display numbers now.
2013-06-21 14:51:57 +02:00
Oscar Gonzalez Fernandez
e9d1463a28 Show output from printing process
It helps to debug any problem that could occur when executing the
processes.
2013-06-21 14:51:57 +02:00
Oscar Gonzalez Fernandez
05bd5b2da0 Remove unused constant 2013-06-21 14:51:56 +02:00
Oscar Gonzalez Fernandez
64b6781895 Move helper methods closer 2013-06-21 14:51:56 +02:00
Oscar Gonzalez Fernandez
f86c9d8aa0 Refactor to the creation of css file
Error handling improved, removed the call to System.exit.
2013-06-21 14:51:56 +02:00
Oscar Gonzalez Fernandez
dc639f61a3 Encode correctly http parameters
If the value of the parameters had URI reserved characters, they must
be encoded. URI builder handles that.
2013-06-21 14:51:56 +02:00
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