Commit graph

90 commits

Author SHA1 Message Date
Vova Perebykivskiy
cf7ea8e496 Update MPXJ library.
Changes to Project Import functionality.
Code refactoring.
i18n.
2016-02-23 16:10:51 +02:00
Vova Perebykivskiy
d780b187bf Documents uploading/downloading feature + tests.
i18n.
Resolving bugs/issues.
Code refactoring.
Add Liquibase tip.
2016-02-18 15:53:05 +02:00
Vova Perebykivskiy
76d0576824 Optimizing imports.
Refactoring.
2015-12-22 18:01:51 +02:00
Vova Perebykivskiy
36668ffeed Fix MySQL test failure bug. 2015-12-22 18:01:51 +02:00
Vova Perebykivskiy
6aaae08f42 Add Liquibase 1.5 changelog to changelogs.
Fix compile errors.
Code refactoring.
2015-12-04 14:46:14 +02:00
Vova Perebykivskiy
ffca70fbea Add documentation about E-mail sending functionality.
Update JUnit version.
Code refactoring.
Imports optimizations.
Changes to UI of E-mail Templates page.
New values for i18n.
Validations of E-mail functionality.
2015-11-11 15:45:24 +02:00
Vova Perebykivskiy
6e90ca09d0 Add classes for E-mail scheduling job.
All that is referencing to email template - moved into another package.
Add classes/mapping for notification_queue table.
Update Hibernate version in pom file.
Add role to accept email.
2015-10-26 08:50:43 +02:00
Oscar Gonzalez Fernandez
f27bc7dffc Upgrade to Spring 4.0.3 version
This is the latest stable version available.
2014-05-06 21:16:43 +02:00
Oscar Gonzalez Fernandez
2c7246f868 Remove uses of @NotTransactional
@NotTransactional is deprecrated and in the next major Spring version
is removed.
2014-05-06 21:16:00 +02:00
Oscar Gonzalez Fernandez
7b54a5063e Upgrade Spring to 3.2.8 and Hibernate to 4.2.8
Now Libreplan can be run on Java8.

This implied some changes:

* Latest versions of hibernate use the Bean Validation API. This
  implied renaming the imports and use ConstraintViolationException
  instead of InvalidValue. Besides some constraints had to be renamed,
  otherwise they wouldn't be recognized by Hibernate validation. In
  the new version of Hibernate validator @AssertTrue can only be
  applied to properties. So all methods it was applied to must follow
  the is.* format.

  Automatic execution of Bean Validation API is disabled, otherwise an
  infinite loop would happen. This is because there are some
  validation constraints that do launch queries to the database. This
  causes a flush of the objects in the session and automatic
  validation is called again.

* A new library for persisting JodaTime is necessary since
  joda-time-hibernate is incompatible with hibernate 4. This library
  can automatically register its types for Date conversion so they're
  removed from configuration.

* Now, in some places, an InvalidDataAccessApiUsageException is thrown
  instead of a DataIntegrityViolationException.

  This is because no constraint is violated, the API is being used
  incorrectly because a transient instance is being provided where a
  persisted one was expected.

* In hibernate 4 listeners cannot be configured via properties.
  HibernateDatabaseModificationsListener registers itself in its @PostConstruct method.

* ehcache classes used are now different.
2014-05-06 17:47:15 +02:00
Oscar Gonzalez Fernandez
4633da0140 Upgrade schema files for Spring configuration 2014-05-01 00:53:09 +02:00
Oscar Gonzalez Fernandez
bc675c7332 Upgrade Spring version 2014-04-30 20:04:32 +02:00
Oscar Gonzalez Fernandez
80f6f6e0cf Make tests independent of tests order execution
When changing JUnit and Spring version the test failed because of the
different order execution.
2014-04-29 20:15:03 +02:00
Oscar Gonzalez Fernandez
3c21e72f14 Improve test
It was dependant on the order of the base calendars returned. This
caused spurious errors.
2014-04-20 18:45:31 +02:00
Oscar Gonzalez Fernandez
7e773b7eb1 Fix test failure
Now all tests should pass. The error was introduced in the commit
4baa93d790.
2013-11-26 19:52:47 +01:00
Lorenzo Tilve Álvaro
4baa93d790 Moved criteria based budget calculation methods to OrderElement to use them from the OrderCRUD
FEA: ItEr77S17AutomaticBudgeting
2013-06-13 18:12:21 +02:00
Oscar Gonzalez Fernandez
3713198a93 Use a connection data pool when running tests
It cuts 40 seconds or around from the tests running time.
2013-06-05 12:33:57 +02:00
Oscar Gonzalez Fernandez
05a9767477 Fix execution order depending error in test
Since the scenario was created in the same transaction (due to using
@Before annotation) was not visible in givenOrderFromPrepareForCreate.
Now use a @BeforeTransaction instead so it's visible before.
2013-06-01 20:47:17 +02:00
Oscar Gonzalez Fernandez
48c3b1093e Remove added exception types
This test was causing errors on CalendarExceptionTypeServiceTest
because it was leaving behind some CalendarExceptionTypes in the
database.
2013-06-01 17:26:42 +02:00
Oscar Gonzalez Fernandez
26da1978f5 Use the same configuration as in other tests
Otherwise it creates a new Spring context instead of keeping using the
previous one.

This doesn't seem specially dangerous, but in some circumstances can
lead to idle transactions with associated locks that hang up the
execution of the tests. This happened with PostgreSQL version 9.1 in
WorkReportServiceTest.importValidDescriptionValuesToWorkReport().
2013-06-01 17:26:30 +02:00
Oscar Gonzalez Fernandez
1045a1a171 Remove no longer applicable comments 2013-06-01 17:26:28 +02:00
Lorenzo Tilve Álvaro
cc246eedfa Merge branch 'master' into mpxj-import
Conflicts:
	libreplan-business/src/main/java/org/libreplan/business/orders/entities/Order.java
	libreplan-webapp/pom.xml
	pom.xml
2013-04-16 09:34:31 +02:00
Lorenzo Tilve Álvaro
909eab9f52 Merge branch 'master' into mpxj-import
Conflicts:
	libreplan-business/src/main/java/org/libreplan/business/orders/entities/Order.java
	libreplan-business/src/main/resources/db.changelog-1.3.xml
2013-03-27 17:57:03 +01:00
miciele Ghiorghis
2fc452d1b7 jira and tim -connector: Refactoring OrderCRUDController and other improvements
- OrderCRUDController refactored
- Save or update for OrderSyncInfo instead of creating new instance for each sync
- Name change for TimImpExpInfo to SynchronizationInfo
- JiraSyncInfo is removed instead SynchronizationInfo is used
- All files which are affected by name changes are modified
- Translations added where applicable
- clean up unused variables etc
2013-03-25 14:44:15 +01:00
miciele Ghiorghis
d764e0a3f8 Jira-connector: JIRA moved to connectors
- JIRA is moved to connectors and all files modified that has to do with this change.
- JiraConfiguration file is removed
- ImportedLabel attribute is deleted from Order and order.hbm.xml
- Imstead of importedLabel is now used the key from OrderSyncInfo
- and some more changes where applicable
2013-03-14 12:26:12 +01:00
miciele Ghiorghis
3891048f00 tim-connector: check if connector values are invalid and more
Better error handling:
* check if connector connection values are valid
* New ConnectorException
* New .zul file to show import/export failed/success information
* All files modified affected by these changes
2013-03-14 12:20:38 +01:00
Manuel Rego Casasnovas
ef1328eee1 tim-connector: Moved tests to proper package
They were in importers and they're moved to org.libreplan.importers.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-27 14:58:34 +01:00
Manuel Rego Casasnovas
5ff02eaae6 jira-integration: By default ignore tests that only passes if you have a Tim server
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-08 11:55:27 +01:00
Miciele Ghiorghis
48cdded3e0 Tim-connector: Classes renamed according Libreplan naming convention
DTO classes are renamed to class-name with suffix DTO according to Libreplan naming convention
Modified all classes which are affected by the renamed classes
Comments and author information added where applicable
Test cases modified
2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
82157da7d2 Tim-connector: Test for ExportTimesheetsToTim 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
982e9ca06b Tim-connector: Test for ImportRosterFromTim 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
82a1b9023b Tim-connector: Test for TimSoapClient 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
05ed133214 Tim-connector: Test for ImportRosterFromTim 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
3a9b3bada4 Tim-connector: Test for ExportTimesheetsToTim 2013-02-08 11:16:17 +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
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
miciele Ghiorghis
78e1d7b10b Jira-integration: classes renamed and basic comments added 2013-02-01 09:53: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
55b5bedf81 jira-integration: Replace printStackTrace by throw RuntimeException
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:53:42 +01:00
Manuel Rego Casasnovas
25d508ef46 jira-integration: By default ignore tests that only passes if you have a JIRA server
Some tests only passes if you have a JIRA server installed, as it's not
something mandatory to run LibrePlan, these tests are ignored by default.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:22:00 +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
cc2568aca2 jira-integration: Move path for search operation in JIRA REST API to constant
As this path is used in several classes it has been moved to a constant in
JiraRESTClient.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-29 19:30:26 +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
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
629ff6fad1 Jira-integration: Test for JiraRESTClient
Configuration properties are located in ..scripts/jira-connector/jira-conn.properties
2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
2bc8fbec6d Jira-integration: Test for JiraTimesheetSynchronizer 2013-01-29 18:30:48 +01:00
Miciele Ghiorghis
ead5bd8a11 Jira-integration: Test for JiraOrderElementSynchronizer 2013-01-29 18:30:48 +01:00
Manuel Rego Casasnovas
ddc32cea1d Bug #1553: Fixed test due to change in behavior
As the code now is copied to the parent node, the test checking its value has to
be fixed.

FEA: ItEr77S04BugFixing
2012-11-20 09:52:32 +01:00
Manuel Rego Casasnovas
af5d2b2776 Rename SUBCONTRACTED_PENDING_ORDER to OUTSOURCED
FEA: ItEr77S03Community
2012-11-08 20:01:56 +01:00
Manuel Rego Casasnovas
98eeed0801 Fix remove order elements service test in MySQL
It was working properly in PostgreSQL but not in MySQL. Now it is passing in both.

FEA: ItEr77S13AllowDeleteOrderElements
2012-11-07 11:39:46 +01:00