Commit graph

735 commits

Author SHA1 Message Date
Miciele Ghiorghis
b459606e72 Tim-connector: Contract for OrderSyncInfo
An interface that OrderSyncInfoDAO implements.
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
8869325b60 Tim-connector: JobSchedulerConfiguration entity 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
ed26857809 Tim-connector: AppProperties entity 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
f985a65a94 Tim-connector: DAO for JobSchedulerConfiguration
An implementation of IJobSchedulerConfigurationDAO
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
5418fc21b0 Tim-connector: Contract for JobSchedulerConfigurationDAO
An interface that JobSchedulerConfigurationDAO implements
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
3ba555853f Tim-connector: Contract for AppPropertiesDAO
An interface that AppPropertiesDAO implements
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
fa310807db Tim-connector: DAO for AppProperties
DAO for AppProperties. Implementation of the interface IAppPropertiesDAO
2013-02-08 11:16:16 +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
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
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
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
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
ed69a6e7bc Imported configured or previously used criterion into resourcesLoad filtering
FEA: ItEr77S15FilteringEnhancements
2013-02-01 13:13:05 +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
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
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
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
52a0e89071 jira-integration: Add predefined WorkReportType for JIRA connector
* The predefined type will have a line description value to store comments in
  each line.
* As for the case of personal timesheets the new type will be hidden for the
  users in the list of timesheets templates.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 17:13:33 +01:00
Manuel Rego Casasnovas
72ada7c634 jira-integration: Disable hours edition in JIRA issues
For tasks that are JIRA issues the hours fields will be readonly.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 14:01:39 +01:00
Manuel Rego Casasnovas
2a359993ce jira-integration: Refactorization related to paint a link in the WBS if the task is a JIRA issue
* A new method isJiraIssue has been added to OrderElement checking if the code
  uses the JIRA prefix or not.
* The method Util.bind has been removed as it was specific of this link and only
  used in one place.
* To calculate issue code for the link it has been used StringUtils.removeStart.

TODO: Pending to disable hours in WBS if the task is a JIRA issue.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 13:43:40 +01:00
Manuel Rego Casasnovas
cbc7c3c169 jira-integration: Add checkings to prevent remove or disable type of work hours for JIRA connector
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 11:16:50 +01:00
Manuel Rego Casasnovas
ae3b7610f1 jira-integration: Modify bootstraps in order to set JiraConfiguration properly
* Renamed PersonalTimesheetsTypeOfWorkHoursBootstrap to
  ConfigurationTypeOfWorkHoursBootstrapa in order to set up TypeOfWorkHours for
  both personal timesheets and Jira connector.
* Modified ConfigurationBootstrap to ensure that the JiraConfiguration is
  created properly.
* Removed unneeded code in ConfigurationModel.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 11:16:50 +01:00
Manuel Rego Casasnovas
44dca50bc9 jira-integration: Add new field jiraConnectorTypeOfWorkHours in JiraConfiguration
* The new field is added in JiraConfiguration similar to field
Configuration.personalTimesheetsTypeOfWorkHours.
* Added required bits for Hibernate mapping and Liquibase database changes.
* Modified Jira connector configuration UI to include the new field.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 11:16:50 +01:00
Manuel Rego Casasnovas
89e9a58b6b jira-integration: Move code prefix for JIRA entities to a constant
As the same prefix is used in several files it has been defined as a constant in
JiraConfiguration.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-29 19:30:17 +01:00
Manuel Rego Casasnovas
bb914e7d10 jira-integration: Add missing protected constructor to JiraConfiguration
Missing protected constructor in order to avoid wrong usage of the class (maybe
someone could try to do "new JiraConfiguration()" instead of
JiraConfiguration.create()).

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-29 19:30:05 +01:00
Miciele Ghiorghis
0bd1066d20 Jira-integration: Copy right changed from Igalia, S.L. to St. Antoniusziekenhuis 2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
1ae8d9b1b7 Jira-integration: importedLabel variable with set and get methods added
When order elements of an existing order are synchronized for an specified label, the specified
label will be stored in order_table. This is to prevent that different labels being imported for
the specified order
2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
ab87c3875a Jira-integration: extended with ImporedLabel property 2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
56e1700477 Jira-integration: extended with jira-configuration properties 2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
894c1b12ba Jira-integration: new columns jira-configurations and importedLabel added
New jira-configurations columns added to configuration table
New imported_label column added to order_table
2013-01-29 18:30:49 +01:00
Miciele Ghiorghis
7eb5587a84 Jira-integration: create and set JiraConfiguration added to loadRequiredData method 2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
22a24990aa Jira-integration: JiraConfiguration entity added 2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
6af732164a Jira-integration: Jira configuration entity 2013-01-29 18:30:48 +01:00
Manuel Rego Casasnovas
2bf13fef80 Bug #1607: Fix issue filtering the resources load window
The issue was introduced in commit 05132fd5a7.
Where it was defined an algorithm:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED

This was wrong, it should be:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is lower or equals than FSD or APSD is
    lower or equals than FED

FEA: ItEr77S04BugFixing
2013-01-29 14:05:48 +01:00
Lorenzo Tilve Álvaro
1cab756069 Added database changelog for filtering preferences
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Lorenzo Tilve Álvaro
676b6c4876 Defined hibernate configuration for filtering parameters persistance
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Lorenzo Tilve Álvaro
c3d077efce Added new parameters to user preferences for company view and resource load filtering
FEA: ItEr77S15FilteringEnhancements
2013-01-29 13:20:18 +01:00
Manuel Rego Casasnovas
727bc642b8 Bump version number to 1.3.3
FEA: ItEr77S03Community
2012-12-21 14:38:48 +01:00
Manuel Rego Casasnovas
87796fcfc8 i18n: Mark some missing strings to be translated
FEA: ItEr77S04BugFixing
2012-12-20 17:44:20 +01:00
Manuel Rego Casasnovas
7813f8a207 Bug #1594: Fix issue opening transaction at DAO if needed
FEA: ItEr77S04BugFixing
2012-12-11 13:55:30 +01:00
Manuel Rego Casasnovas
331106824f Bump version number to 1.3.2
FEA: ItEr77S03Community
2012-11-30 07:41:11 +01:00
Manuel Rego Casasnovas
05132fd5a7 Bug #1562: Fix issue filtering properly resources according to their activation periods
Now the dates filtering the resource load window are checked against the
resources activation periods. Using the following algorithm:

1) If the resource has not activation periods then it should always appear

2) The filter can have null for start and end dates and the activation periods
   can have null for end date. So we should define what to do in each case:

  Let's define some acronyms:
  * Filter Start Date: FSD
  * Filter End Date: FED
  * Activation Period Start Date: APSD (cannot be null)
  * Activation Period End Date: APED

  2.1) FSD is null and FED are null: The resource should appear regardless its
       activation periods

  2.2) FSD is null:
    2.2.1) APED is null: Check if APSD is lower or equals than FED
    2.2.2) APED is not null: Check if APSD is lower or equals than FED or APED
           is lower or equals than FED

  2.3) FED is null:
    2.3.1) APED is null: The resource should appear
    2.3.2) APED is not null: Check if APSD is later or equals than FSD or APED
           is later or equals than FSD

  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED
    2.4.2) APED is not null: Check if activation period overlaps filter period
           at any point

FEA: ItEr77S04BugFixing
2012-11-29 07:16:08 +01:00