Commit graph

9036 commits

Author SHA1 Message Date
Javier Moran Rua
c90fd3aaed Adds graphic representation of the avaliability as a color progress bar and a icon for warning non-zero overload.
FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 13:22:32 +01:00
Javier Moran Rua
3944232a98 Adds margins additional to task limits(start, end) for default load ratios calculation in resource allocation advance search.
Two margins have been added:

   * A margin before the task start date.
   * A margin after the task end date.

The time used in these two margins has been the same and is equal to 30 days.

FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 13:22:29 +01:00
Javier Moran Rua
d7ed3aa149 Recalculates the load ratios on changing the filtering dates and incorporates interface validations in the filtering dates dateboxes
FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 13:22:05 +01:00
Javier Moran Rua
7ae2ee1e4e Add the suitable casting on getting items of the list of resources with their load ratios.
FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 12:54:10 +01:00
Javier Moran Rua
8f5622acf1 Initialize the start filtering date with the task start date and the end filtering date with the task end date.
It has been improved the performance so that the search of the resources and their
load ratios calculation is done from this moment on when the advanced search tab is made visible. This is
the moment when the task start date and task end date are available (not
sooner).

FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 12:54:10 +01:00
Javier Moran Rua
c650fcb013 Web interface to add the resource load ratios at the advanced search in the allocation pop-up.
FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 12:54:10 +01:00
Javier Moran Rua
9b3ab84cf0 Adds calculator to obtain the ratios of a resource as a spring bean
Two load ratios are defined:

   * Overload = overload / (load + overload)
   * Availability = min (0,(1 - load/capacity))

FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 12:54:10 +01:00
Javier Moran Rua
eac5c860c3 Adds method to collect the day assignments of a resource in a scenario between two dates.
FEA: ItEr77S10ResourceAllocationLoadInformation
2013-03-26 12:26:20 +01:00
Manuel Rego Casasnovas
30988f309f Bug #1612: Fix NPE adding children to newly created elements
The problem was that when you add a child to a newly created empty task, it
become the task in a container, and then mark the container as selected to ease
the insertion of new children.

In order to mark the container as selected the element needs to be renderer
before we try to select it, otherwise we have been getting a NPE.

FEA: ItEr77S04BugFixing
2013-03-21 11:20:24 +01:00
Manuel Rego Casasnovas
babe4ffa79 Mark as non-lazy the relationship between a user and its related entities (Label and Criterion)
This avoids problems saving a project when entering directly via the entry
points with a user that has a label associated.

FEA: ItEr77S04BugFixing
2013-03-20 13:28:14 +01:00
Manuel Rego Casasnovas
a062bc05ce Log the full stacktrace when a ValidationException happens while saving a project
This will ease the debugging of some bugs in the future.
2013-03-20 13:26:38 +01:00
Lorenzo Tilve Álvaro
cd17d48d28 Fix wrong behaviour of projects list filtering
The component that shows the filtering results is adding the unscheduled projects when they
are not excluded by the dates range, but they were appearing also when they were not matching
the combobox conditions.

FEA: ItEr77S15FilteringEnhancements
2013-03-12 12:08:08 +01:00
Lorenzo Tilve Álvaro
cabf12ad8f Fix disabled move and indent buttons for the WBS tree manipulation
These icons are disabled when the WBS is showed filtered, as the manipulation
operations could be ambiguous or problematic, but it was treating wrongly
empty predicates.

FEA: ItEr77S15FilteringEnhancements
2013-03-12 12:07:53 +01:00
Manuel Rego Casasnovas
3ad35624a2 doc: Update AUTHORS file info about new Chinese translator 2013-03-12 10:07:19 +01:00
Manuel Rego Casasnovas
113f3455fe i18n: Add Chinese language to enum and modify pom.xml to use English userguide 2013-03-12 10:07:19 +01:00
Swanson Chan
d7b9d0c5aa i18n: Add Chinese translation 2013-03-12 10:07:19 +01:00
Lorenzo Tilve Álvaro
18dc5e7749 Clean global session variables after saving preferences
This will refresh all company-level variables with the corresponding
values depending on the filtering preferences saved.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:40 +01:00
Lorenzo Tilve Álvaro
2c34faa7e0 Avoid cast exception when using workers on company view filter
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:32 +01:00
Lorenzo Tilve Álvaro
9b47f33e38 Handled manually emptied dateboxes to avoid inconsistences with default values
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:23 +01:00
Lorenzo Tilve Álvaro
5550f4926d Added onChange event listener to Project Gantt and WBS bandbox
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:14 +01:00
Lorenzo Tilve Álvaro
bd86dfd183 Force synchronization of filter changes when switching between loaded perspectives
Either in the Company view/Projects list perspectives and the Project Gantt/WBS ones,
their filter values are synchronized when shitching between them. All the perspectives
were loading the rigth session values when they were loaded for the first time, but
needed to be updated after changes in the filter values to actualize the widgets
on the sibling perspective.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:04 +01:00
Lorenzo Tilve Álvaro
9ba7d7c285 Fix bug in BandboxSearch that was causing its text to be wrongly updated
Calling getSelectedElemets was returning a WrongFilterValue exception, and filling
in the bandbox value with the partial string used to filter the listbox.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:14:55 +01:00
Manuel Rego Casasnovas
dbf3f0883a Fix orders filtered query
GROUP BY clause was being added in the middle of the query instead of at the
end.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:14:43 +01:00
Lorenzo Tilve Álvaro
fb243cc5d5 Fix problem in bandbox search filters deleting session values
There was an issue that was causing bandbox search filter in company view to be
cleared, and deleting the corresponding session variable,  the second time
that perspective was accesed without changing the filter.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:14:31 +01:00
Manuel Rego Casasnovas
5d07599594 Bug #1609: Fix problem using a different transaction in validation methods
In order to avoid to have the same user in the session twice, the validation
query of User entity has been done in a different transaction.

The issue happens with resources too, so the same solution has been used in
both cases.

FEA: ItEr77S04BugFixing
2013-02-22 12:39:27 +01:00
Manuel Rego Casasnovas
75ef2de231 Forced reference to zoom listener to write resourcesLoad session parameter
The new listener registered to track changes on ResourceLoad perspective zoomLevel
was not always being called. An explicit reference was defined to avoid that
listener to be wrongly freed.

FEA: ItEr77S15FilteringEnhancements
2013-02-15 12:43:45 +01:00
Lorenzo Tilve Álvaro
177a9b40b8 Fix hibernate exception when entering into order resourcesload due to company filter parameters
FEA: ItEr77S15FilteringEnhancements
2013-02-14 13:08:30 +01:00
Lorenzo Tilve Álvaro
35e1644cee Merge branch 'master' into filtering-improvements
FEA: ItEr77S15FilteringEnhancements
2013-02-13 12:19:45 +01:00
Lorenzo Tilve Álvaro
9bcff66e71 Remove sorting of bandbox contents in user settings
FEA: ItEr77S15FilteringEnhancements
2013-02-13 11:01:57 +01:00
Lorenzo Tilve Álvaro
454ff4330d Avoid NPE when sorting Labels and Criteria for user setting bandboxes
FEA: ItEr77S15FilteringEnhancements
2013-02-11 01:05:46 +01:00
Manuel Rego Casasnovas
7fe5eb2350 Keep tasks converted into containers also in the filtered WBS
This allows to add a task over a leaf in a filtered WBS, and being able to keep
seeing the 3 elements: the new container (with the name of the previous leaf),
the previous leaf without name and the new task added.

It's easier to understand with an example. Imagine you have the following WBS:
* Task 1
* Task 2

And you filter by task name using "2", then you'll have:
* Task 2

Then you select "Task 2" and add a new task called "Subtask A".

Without this patch you'll only see:
* Task 2 (the new container using the name of the old leaf)
  |- Subtask A (the new task)

However, it's better you see the following
* Task 2 (the new container using the name of the old leaf)
  |- (empty task) (the old leaf that you should rename)
  |- Subtask A (the new task)

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:53:44 +01:00
Lorenzo Tilve Álvaro
cdd4c74c32 Write order filter bandbox from WBS screen
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Lorenzo Tilve Álvaro
b71ab8611e Fixed fuzzy translation strings
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Lorenzo Tilve Álvaro
8ab5db2195 Improved graphical appearance of filter parameters configuration widgets
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Manuel Rego Casasnovas
210c111b62 Apply filter when entering project details view
This will allow to get a already filtered WBS if you have been inside the
project before and you have applied some filters, as the filter is already
stored in the session.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:32:37 +01:00
Manuel Rego Casasnovas
75ecc38664 Revert "Apply filter when entering project details view"
This reverts commit 800cf8b50d.

This patch was breaking the possibility to select a task in the WBS.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:21:51 +01:00
Lorenzo Tilve Álvaro
5da7d810ea Added translations for filtering improvements strings
FEA: ItEr77S15FilteringEnhancements
2013-02-08 12:04:40 +01:00
Lorenzo Tilve Álvaro
f539a84627 Avoided cast exception when entering WBS with Gantt resource filters
FEA: ItEr77S15FilteringEnhancements
2013-02-08 10:41:05 +01:00
Lorenzo Tilve Álvaro
1e10f58c3a Fixed regression that was showing no tasks on the WBS
FEA: ItEr77S15FilteringEnhancements
2013-02-08 10:41:05 +01:00
Manuel Rego Casasnovas
be38a3455e jira-integration: Change own implementation to strip whitespaces by StringUtils method
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-08 10:38:33 +01:00
miciele Ghiorghis
1cad4ca9b6 Jira-integration: some improvement on get issues.
getIssues gets now the issues from jira in one request. This is done by adding a
query fields with desired fields to be included in response. Moreover the max_results
is now outside if(!query.isEmpty) statetment.
Test case is modified to read label from jira-properties instead of hard coded
2013-02-08 10:33:45 +01:00
Manuel Rego Casasnovas
a3966cc2e6 Allow to add tasks in a filtered WBS
The new tasks will appear in the WBS even if they don't match the filter.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 10:25:07 +01:00
Lorenzo Tilve Álvaro
e7536b153c Moved session manipulation calls to the refactored class
FEA: ItEr77S15FilteringEnhancements
2013-02-08 09:26:22 +01:00
Lorenzo Tilve Álvaro
6b4ee3641c Reverted unnecesary changes on Label and Criterion save operations to clear removed entities
Since the "foreign key" constraint with onDelete parameter introduced into liquibase is handling
at database level the integrity, the external operations to clean the setting values are not longer
needed.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 09:26:22 +01:00
Lorenzo Tilve Álvaro
46ba611952 Added foreign key with onDelete clause on user to label and criterion relationships
FEA: ItEr77S15FilteringEnhancements
2013-02-08 09:26:22 +01:00
Manuel Rego Casasnovas
1bf09abeaf Avoid double-rendering on Gantt view on enter with filters in session
When you enter the project Gantt view and you have some filters already stored
on session, you had a first rendering with the whole project and then a new one
filtering it. The patch avoids the first rendering.

FEA: ItEr77S15FilteringEnhancements
2013-02-07 14:00:01 +01:00
Manuel Rego Casasnovas
9bd6e29d44 Fix problem with session zoom level in project Gantt view
If the zoom level was changed in other view inside a project, Gantt view didn't
notice it.

FEA: ItEr77S15FilteringEnhancements
2013-02-07 13:07:29 +01:00
Manuel Rego Casasnovas
a6153296b9 Get zoom from session in advanced allocation view
Add a listener in order to update the value in the session when user changes the
zoom.

FEA: ItEr77S15FilteringEnhancements
2013-02-07 12:59:31 +01:00
Manuel Rego Casasnovas
3d1bb5b5c8 Get zoom from session in resources load view
Add a listener in order to update the value in the session when user changes the
zoom.

For the company view it will use it's own variable to store the zoom level,
inside a project it will use the zoom variable shared for all the project views.

FEA: ItEr77S15FilteringEnhancements
2013-02-07 11:44:32 +01:00
Manuel Rego Casasnovas
0f548e6e73 Move zoomLevel session management to FilterUtils
FEA: ItEr77S15FilteringEnhancements
2013-02-07 10:19:19 +01:00