Commit graph

8112 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
b09108c211 Fix Sahi tests due to removal of scenarios option 2012-05-14 09:18:26 +02:00
Susana Montes Pedreira
b21342ee67 fixes the test ReportAdvancesServiceTest
FEA: ItEr76S21UpdateEndDateToCustomer
2012-05-11 20:01:55 +01:00
Susana Montes Pedreira
350538c6fd fix the ExpenseSheetTestDAO
FEA: ItEr76S24AdapatingProjectsToExpenses
2012-05-11 19:22:41 +01:00
Diego Pino
3204a0ff87 Refactor code
Removed duplicated code in OrderEarnedValueChartFiller and
CompanyEarnedValueChartFiller. Moved common code to
EarnedValueChartFiller.

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-11 17:41:52 +02:00
Manuel Rego Casasnovas
9b73598c65 Bug #1428: Rename customAssignedEffortForResource to setAssignedEffortForResource
FEA: ItEr76S04BugFixing
2012-05-11 13:03:48 +02:00
Óscar González Fernández
c52aedb4b6 Bug #1428: Take into account the load of the other allocations when reassigning
For example when moving a task the bug #1428 could happen.
2012-05-11 13:03:48 +02:00
Óscar González Fernández
7afcef6525 Bug #1428: Fix bug
Provide a IAssignedEffortForResource that takes into account the
allocations being done.

mb:e98367a8-015e-492e-bffd-56ebbaca7720
2012-05-11 13:03:40 +02:00
Óscar González Fernández
628f192be4 Bug #1428: Bring all files related to IAssignedEffortForResource to one unique file 2012-05-11 13:03:36 +02:00
Óscar González Fernández
6a8b0ba9c8 Revert "Bug #1428: Possible fix"
This reverts commit 0a51bbdca0.
2012-05-11 13:02:51 +02:00
Óscar González Fernández
91ea28a56c Bug #1431: Sort the EffortModifications too
The method for sorting RespurcesPerDayModifications is generalized to
support EffortModication.
2012-05-11 13:02:46 +02:00
Óscar González Fernández
a56796f1da Bug #1431: Fix problem in commit 9d5e3d88dd
The provided list could be immutable and fail when being sorted. This exception happened when ordering:

java.lang.UnsupportedOperationException
	at java.util.Collections$UnmodifiableList$1.set(Collections.java:1203)
	at java.util.Collections.sort(Collections.java:180)
	at org.libreplan.business.planner.entities.ResourceAllocation.sortResourceAllocations(ResourceAllocation.java:227)
	at org.libreplan.business.planner.entities.ResourceAllocation.allocating(ResourceAllocation.java:213)
	at org.libreplan.business.planner.entities.Task.doAllocation(Task.java:774)
	at org.libreplan.business.planner.entities.Task.reassign(Task.java:744)
	at org.libreplan.business.planner.entities.Task.access$5(Task.java:730)
	at org.libreplan.business.planner.entities.Task$1.doReassignment(Task.java:527)
	at org.libreplan.business.planner.entities.Task$1.moveTo(Task.java:523)
	at org.libreplan.business.planner.entities.TaskElement$4.moveTo(TaskElement.java:360)
	at org.libreplan.web.planner.TaskElementAdapter$Adapter$TaskElementWrapper$1.setBeginDate(TaskElementAdapter.java:432)
	at org.libreplan.web.planner.TaskElementAdapter$Adapter$TaskElementWrapper$1.moveTo(TaskElementAdapter.java:453)
	at org.zkoss.ganttz.data.Task$2.moveTo(Task.java:180)
	at org.zkoss.ganttz.TaskComponent$9.doIt(TaskComponent.java:373)
	at org.zkoss.ganttz.data.Task$3.doIt(Task.java:141)
	at org.libreplan.web.planner.TaskElementAdapter$Adapter$TaskElementWrapper$2$1.execute(TaskElementAdapter.java:517)
2012-05-11 13:02:09 +02:00
Manuel Rego Casasnovas
324ed05a69 doc: Update development guide with the line for the favicon
FEA: ItEr76S03Community
2012-05-11 10:55:43 +02:00
Manuel Rego Casasnovas
358f55e146 Bug #1284: Add favicon to new pages (expenses and subcontractor communications)
FEA: ItEr76S04BugFixing
2012-05-11 10:53:48 +02:00
Manuel Rego Casasnovas
67da9ab7ff doc: Improve web services documentation with the list of available services
FEA: ItEr76S03Community
2012-05-11 09:01:41 +02:00
Jeroen Baten
0d0ce2f895 i18n: Update Dutch translation 2012-05-10 17:08:01 +02:00
Giuseppe Zizza
3b7d47e87d i18n: Update Italian translation 2012-05-10 17:07:58 +02:00
Jacobo Aragunde Pérez
2a1e7d3db6 Bug #1442: Fix regression.
FEA: ItEr76S04BugFixing
2012-05-10 12:14:49 +02:00
Manuel Rego Casasnovas
8bfe22bf57 Trying to fix tests related with unbound users in UserDAOTest
FEA: ItEr76S27ResourceBinding
2012-05-10 09:06:43 +02:00
Manuel Rego Casasnovas
fd5794f57b Improve UserDAOTest adding a new check for getUnboundUsers method
FEA: ItEr76S27ResourceBinding
2012-05-10 08:58:15 +02:00
Manuel Rego Casasnovas
8ea9b30196 Fix UserDAOTest that was failing in some cases
FEA: ItEr76S27ResourceBinding
2012-05-10 08:15:17 +02:00
Diego Pino
9754e86b8c Display value 'Availability ratio' in Dashboard
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-09 23:46:04 +02:00
Diego Pino
048d58c733 Display value 'Overtime ratio' in Dashboard
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-09 23:46:04 +02:00
Diego Pino
24f926b6cc Moved constants to inner class as they were only being used inside that class
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-09 23:46:04 +02:00
Diego Pino
dc4da28f90 Refactor code
Moved code for calculating resource load values related with an Order to
new class: OrderResourceLoadCalculator

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-09 23:46:04 +02:00
Manuel Rego Casasnovas
27baee6450 Fix problem with MySQL and description TEXT field in expense_sheet
The problem is that the type has to be specified in the hbm.xml and also an
issue with Hibernate and the field type.

FEA: ItEr76S04BugFixing
2012-05-09 17:12:12 +02:00
Manuel Rego Casasnovas
8b74637777 Update Liquibase to 2.0.5
FEA: ItEr76S04BugFixing
2012-05-09 16:57:50 +02:00
Manuel Rego Casasnovas
acb938db6b Fix issues with MySQL in some Liquibase changes
* renameColumn needs columnDataType to be defined in MySQL

FEA: ItEr76S04BugFixing
2012-05-09 16:53:55 +02:00
Jacobo Aragunde Pérez
54b2363c9b Bug #1284: Added favicon in all the screens.
FEA: ItEr76S04BugFixing
2012-05-09 16:37:27 +02:00
Manuel Rego Casasnovas
da64d3bd26 Replace "Login name" for "Username"
FEA: ItEr76S27ResourceBinding
2012-05-09 13:36:48 +02:00
Manuel Rego Casasnovas
cc92ce809d Add option to unbound resource from user edition
FEA: ItEr76S27ResourceBinding
2012-05-09 13:02:21 +02:00
Manuel Rego Casasnovas
9d7b1754b4 Add warning about bound resource when removing a user
The resource will be unbound if the user confirm the removal.

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:55 +02:00
Manuel Rego Casasnovas
a751b266b4 Add link from user edition to worker edition if the user is bound to any worker
Using entry points to do the redirection.

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:55 +02:00
Manuel Rego Casasnovas
cfb85fe2b1 Add info about bound resource in user edition
FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
c775cd952b Add bound resource info in the users list
FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
42baf46926 Refactor users list to use a RowRenderer
Add several methods in Util class to make easier renderers implementation.

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
521aa36bfc Disable first and last name in user edition if user is bound to any resource
FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
88920249ec Add option to remove bound user too when removing a resource
If the bound user is not an administrator, a question is asked to the user to
decide if he wants to remove or not the bound user.

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
dd501faba8 Move logic to remove order authorizations when removing a user to UserDAO
* Create a new method UserDao.remove(User user) that is in charge of remove
  OrderAuthorizations and the User too
* Use this method from UserModel

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
c607ba4584 Add link from worker edition to user edition if the worker is bound to a user
Using entry points to do the redirection.

FEA: ItEr76S27ResourceBinding
2012-05-09 13:01:54 +02:00
Manuel Rego Casasnovas
372f4d1650 Change user Listbox for a BandboxSearch
* Create finder UserBandboxFinder
* Modify BandboxSearch behavior to call save action on "selectedElement"
  attribute

FEA: ItEr76S27ResourceBinding
2012-05-09 12:51:11 +02:00
Manuel Rego Casasnovas
81bc21f791 Modify worker edition UI to add the chance to bound a worker to a user
FEA: ItEr76S27ResourceBinding
2012-05-09 12:51:11 +02:00
Manuel Rego Casasnovas
8706e7b421 Add assert to check that a limiting or virtual resource is not bound to any user 2012-05-09 12:51:11 +02:00
Manuel Rego Casasnovas
11b11a485d Add assert to check that a worker is not bound to a user already bound with other worker
FEA: ItEr76S27ResourceBinding
2012-05-09 12:51:11 +02:00
Manuel Rego Casasnovas
9a011d35e9 Create basic UI to bound a user to a worker
FEA: ItEr76S27ResourceBinding
2012-05-09 12:51:11 +02:00
Manuel Rego Casasnovas
24bb2f50e2 Add relationship between and Worker and User
FEA: ItEr76S27ResourceBinding
2012-05-09 12:51:11 +02:00
Susana Montes Pedreira
00378d039a Merge branch 'master' into expenses-tracking 2012-05-09 10:51:43 +01:00
Susana Montes Pedreira
a5fe79f498 Merge branch 'master' into subcontracting 2012-05-09 10:41:33 +01:00
Diego Pino
c57e4037b8 Fix bug
When there are no deviations in 'Estimation Accuracy' chart because
there are not tasks, return an empty array with 6 values equal to 0

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-08 23:23:22 +02:00
Diego Pino
1db0e63bc6 Fix typo in method name
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-08 23:20:58 +02:00
Diego Pino
5422bd1a33 Fix bug
When there are no deviations in 'Task Completion Chart' because there are
not tasks, return an empty array with 6 values equal to 0

FEA: ItEr76S15OrganizingPerProjectDashboard
2012-05-08 23:20:04 +02:00