Commit graph

9203 commits

Author SHA1 Message Date
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
Lorenzo Tilve Álvaro
0971a2de67 Attached onChange listener to orderfilter multipleBandboxSearch
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:59 +01:00
Lorenzo Tilve Álvaro
82d78afec4 Moved method to generate label name and type pattern for finders to Label class
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:59 +01:00
Lorenzo Tilve Álvaro
0fe7ace58c Inserted into company view filter the specified label user setting
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
08ec2695f3 Clear filter label or criterion settings if they have been removed
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
32641a5919 Included persistence information for resources load criterion filter property
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
13a4473d3f Created Criterion configuration bandbox on user settings to filter Resources Load results
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
dcd7cd8c09 Refactored to OrderStatusEnum static method to get default visible project status 2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
bd5914b011 Fixed Hibernate relationship to store project label filtering preferences
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Lorenzo Tilve Álvaro
2df2af8000 Added user settings bandbox to configure project filtering by label
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:12:46 +01:00
Manuel Rego Casasnovas
685f0ac77d jira-integration: Allow to search labels by any chars and not only the first ones
Add simple comment explaining the purpose of SimpleListModelExt.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:34:34 +01:00
Manuel Rego Casasnovas
cdc140c7c8 jira-integration: Increase size of field jiraLabels
As this field could be used to store a list of labels, it's better that it's
longer than 255 chars.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:30:04 +01:00
Manuel Rego Casasnovas
9d17881ddb jira-integration: Fix issue in _jiraSyncInfo that was using args instead of arg
This was causing that the messages to show or not depending on the success
operation were not working properly.

Moreover, it has been updated the messages to give more information to the user.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:10:28 +01:00
Manuel Rego Casasnovas
21da67ffcd jira-integration: Fix minor visual stuff in JIRA part inside project edition
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:38:28 +01:00
Manuel Rego Casasnovas
87747a1cdc jira-integration: Hide JIRA part in project edition if not activated
If JIRA is not activated the part to do the synchronization with the server in
the project edition shouldn't be visible.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:35:59 +01:00
Manuel Rego Casasnovas
c956b17542 jira-integration: Reload order after JIRA synchronization
This allows user to change to WBS tab and see the imported tasks just after
import the issues from JIRA.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:06:45 +01:00
miciele Ghiorghis
78e1d7b10b Jira-integration: classes renamed and basic comments added 2013-02-01 09:53:24 +01:00
Manuel Rego Casasnovas
25d1461263 jira-integration: Rename jiraLabelUrl to jiraLabels
Due to previous commit, this field could save a URL or a list of labels, so the
name has been changed to avoid misunderstandings.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 17:13:24 +01:00
Manuel Rego Casasnovas
5d439b032a jira-integration: Allow to store a comma-separated list of labels instead of URL
This patch allows the user to store a URL or a comma-separated list of words to
specify the possible labels for the JIRA connector.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 17:03:45 +01:00
Manuel Rego Casasnovas
f5d8984c5b jira-integration: Disable code edition in task pop-up for JIRA issues
JIRA issues code is not editable in the WBS and it shouldn't be editable in the
task edition pop-up either.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 11:00:52 +01:00
Manuel Rego Casasnovas
7a26294060 jira-integration: Avoid issue with code comming back from task edition pop-up
When you enter in the edition of a task in the WBS, if the task is a JIRA issue,
when you come back to the WBS LibrePlan was trying to update the code column,
however this column doesn't exist for JIRA issues as we're using a link.

Fixed that to avoid an exception in this situation.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:53:39 +01:00
Manuel Rego Casasnovas
eea2ace0cc jira-integration: Fix bug if comment length is lower than max length
If the comment length is lower than the max length of the DescriptionField, then
it's not needed to truncate it.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:26:20 +01:00
Manuel Rego Casasnovas
d736a512ec jira-integration: Avoid create the work report line if worker is not found
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:12:12 +01:00
Manuel Rego Casasnovas
a3271120d7 jira-integration: Set scale for progress measurement when synchronizing order elements
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:01:54 +01:00
Manuel Rego Casasnovas
54d17c5380 jira-integration: Only catch WebApplicationException in try for WebClient.create
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:01:54 +01:00
Manuel Rego Casasnovas
f2709cb293 jira-integration: Surround WebClient.create calls with try/catch
In order to avoid exceptions accessing to an URL, the calls to WebClient.create
have been enclosed into try/catch statements, logging the exception and showing
an appropriate message to the user.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 08:28:06 +01:00
Manuel Rego Casasnovas
72c2d0dc1b Revert "jira-integration: Avoid saving in startSyncWithJir"
This reverts commit f3bec8193f.

Because of it was causing some issues:
* The WBS was not loaded properly after synchronization
* WorkReports cannot be saved as the order elements where not saved yet

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 08:26:19 +01:00