Commit graph

9179 commits

Author SHA1 Message Date
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
Lorenzo Tilve Álvaro
880f51704a Forced deletion of Label and Criterion parameters and session bandboxes after entities deletion
FEA: ItEr77S15FilteringEnhancements
2013-02-07 03:08:30 +01:00
Lorenzo Tilve Álvaro
d3e43e0592 Moved session parameters handling on Resources Load to refactored methods
FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:32:35 +01:00
Lorenzo Tilve Álvaro
fed35d7f1e Read user criterion parameter inside resourcesLoad perspective
FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:32:35 +01:00
Lorenzo Tilve Álvaro
8bce318265 Enabled WBS to write filter changes on the session
FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:32:35 +01:00
Lorenzo Tilve Álvaro
ed24855836 Refactored to external class methods to handle filters session parameters
FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:32:35 +01:00
Manuel Rego Casasnovas
c610ccd140 Get zoom from session in project Gantt view
Add a listener in order to update the value in the session for each project when
user changes the zoom.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:28:02 +01:00
Manuel Rego Casasnovas
ee7c6d708a Get zoom from session in company Gantt view
Add a listener in order to update the value in the session when user changes the
zoom.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 14:13:17 +01:00
Manuel Rego Casasnovas
abe2313b69 Remove Planner.fixedZoomByUser attribute
The attribute is removed as the zoom is going to be managed from the session.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 13:47:10 +01:00
Manuel Rego Casasnovas
dbc24f0833 Revert "Added global zoom level session variable"
This reverts commit 235f6de48c.
2013-02-06 13:42:52 +01:00
Manuel Rego Casasnovas
800cf8b50d 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-06 12:26:07 +01:00
Manuel Rego Casasnovas
c3764b15ad Fix issue in resources load bandbox with value from session
The value from session was not been used to calculate the data to show, and it
was only renderer.

The problem was that the method
org.libreplan.web.resourceload.ResourceLoadController.Reloader.reloadInTransaction()
was calling
org.libreplan.web.resourceload.ResourceLoadController.WorkersOrCriteriaBandbox.setup(ResourcesLoadPanel)
after calculating the data to show.

So
org.libreplan.web.resourceload.ResourceLoadController.WorkersOrCriteriaBandbox.buildBandboxFilterer()
was called after it calculates the data to show, so it doesn't take into account
the default values for the selected filters.

Now, the initialization of the bandbox is done in the constructor, and then the
selected filters are marked.

Later the buildBandboxFilterer is called and it only wraps the bandbox inside a
hbox.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 11:28:06 +01:00
Lorenzo Tilve Álvaro
7d4eaebbdc Importing session filter parameters into WBS screen
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:57:09 +01:00
Lorenzo Tilve Álvaro
f267e5fca0 Force attaching of labels on company view to fix issue after list perspective filter change
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:43:00 +01:00
Lorenzo Tilve Álvaro
a391468af9 Adding session values to project gantt bandbox
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:41:35 +01:00
Lorenzo Tilve Álvaro
d8b8e7e736 Clearing previous elements added to company bandbox filter after list perspective change
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:40:57 +01:00
Lorenzo Tilve Álvaro
9736e4daf3 Transform OrderFilterEnum parameters to TaskGroupFilterEnum for company view filter
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:40:53 +01:00
Lorenzo Tilve Álvaro
9f703ae11f Removed unncecesary temporaty code
FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:40:53 +01:00
Lorenzo Tilve Álvaro
eefd4026fd Modified getOrdersIdsByDates query to get the intersecting projects between start and end dates
In this way it's possible to get all the projects for wich some part of their lenght is
comprehended between the defined start and end dates, with the previous strategy only the
projects which were completely included in the interval were being listed.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 09:40:43 +01:00
Lorenzo Tilve Álvaro
49b5b941bd Apply filtering when changing between perspectives if the parameters have changed
FEA: ItEr77S15FilteringEnhancements
2013-02-05 18:28:20 +01:00
miciele Ghiorghis
946c66163b Jira-integration: modified to test the classes instead code copied and jira label is moved to jira-conn-properties 2013-02-05 14:02:25 +01:00
Manuel Rego Casasnovas
44a78b453c Apply filter when entering project Gantt view
This will allow to get a already filtered Gantt 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-05 13:56:27 +01:00
Manuel Rego Casasnovas
eb3871d234 Use new database query when filtering projects list
The database query that filters the orders by several fields is used only when
the subelements checkbox is not clicked. Otherwise the old query is used and the
old behavior is kept for the filtering.

However, if the checkbox is not clicked, the new query is used to get the
initial list and to do the successive filtering too.

NOTE: Resources are never assigned directly to the root element, so if you
filter by resources it'll only work if you have the subelements checkbox
clicked.

FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:53:34 +01:00
Lorenzo Tilve Álvaro
2da6a83a61 Included bandbox filter parameters into projects view
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Lorenzo Tilve Álvaro
a54fc40b4c Importing session bandbox parameters into resourcesload filter
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Lorenzo Tilve Álvaro
6936dd2ff1 Fixed issue regarding using labels and dates at the same time
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Lorenzo Tilve Álvaro
80f84d22ea Delete stored filter session variables when saving changes on preferences values
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Lorenzo Tilve Álvaro
ef42d9b954 Forcing multiplebandbox search notification when clearing the bandbox
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Lorenzo Tilve Álvaro
235f6de48c Added global zoom level session variable
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Manuel Rego Casasnovas
d1108540ee Fix syntax error in orders query
If the list of unscheduled projects is empty, the restriction shouldn't be added
or it'll cause a syntax error due to an empty list "o.id IN ()".

FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:03:35 +01:00
Manuel Rego Casasnovas
58b963f30f Include unscheduled projects in orders query
When you import a project from the web service, the task elements are not
created yet, so we need to return these projects in the query otherwise they
will be not visible at all for the users.

FEA: ItEr77S15FilteringEnhancements
2013-02-05 12:42:11 +01:00
Manuel Rego Casasnovas
f02d6f8a8d Fix syntax error in orders query
Change "=" for "IN".

FEA: ItEr77S15FilteringEnhancements
2013-02-05 12:42:03 +01:00
Manuel Rego Casasnovas
5044e541c2 Use new database query when filtering projects list
The database query that filters the orders by several fields is used only when
the subelements checkbox is not clicked. Otherwise the old query is used and the
old behavior is kept for the filtering.

However, if the checkbox is not clicked, the new query is used to get the
initial list and to do the successive filtering too.

FEA: ItEr77S15FilteringEnhancements
2013-02-04 14:24:45 +01:00
Manuel Rego Casasnovas
86e1d77791 New query in OrderDAO to get projects filtered
The new query receives several params from the filters (dates, labels, criteria,
customer and state) and returns the filtered orders.

For the moment it's only used to get the initial list of orders for the projects
list window.

FEA: ItEr77S15FilteringEnhancements
2013-02-04 14:24:45 +01:00
Lorenzo Tilve Álvaro
58ad890227 Merge branch 'master' into filtering-improvements 2013-02-01 13:14:53 +01:00
Lorenzo Tilve Álvaro
7c6733e579 Attached onChange listeners to project tree filter parameters
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:13:15 +01:00
Lorenzo Tilve Álvaro
fb68757b6d Enabled filters memory mechanism on project edition
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:13:10 +01:00
Lorenzo Tilve Álvaro
ed69a6e7bc Imported configured or previously used criterion into resourcesLoad filtering
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:13:05 +01:00
Lorenzo Tilve Álvaro
41661c3afc Added session support to label parameters to company view 2013-02-01 13:12:59 +01:00
Lorenzo Tilve Álvaro
da7eeb7c21 Imported date filtering preferences to Projects List perspective
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:59 +01:00