Commit graph

815 commits

Author SHA1 Message Date
Paul Luchyn
7be2fbb1e5 Added limits to dateboxes on project scheduling page 2016-10-06 14:35:19 +03:00
Vova Perebykivskyi
455c0f53b0 Update Hibernate stack.
Update Hibernate ID generator.
Changes to Hibernate mappings.
Changes to OrderFileTest.
Code refactoring.
2016-05-24 16:55:13 +03:00
Vova Perebykivskyi
ebe9869547 Update info about MySQL.
Update i18n dependencies (Gettext).
Resolve Spring Security logout issue.
Code refactoring.
2016-05-16 15:13:08 +03:00
Vova Perebykivskyi
cfc416e4ec Update Spring stack.
Code refactoring (config files, java classes, css file).
Update LibrePlan version in files.
2016-05-13 11:16:33 +03:00
Vova Perebykivskyi
9edba323c2 Update JAX-RS-API.
Update PostgreSQL dialect.
Pom files refactoring.
Code refactoring.
2016-05-10 15:44:54 +03:00
Vova Perebykivskyi
7cc62c9564 Update Tomcat Maven plugin.
Code refactoring.
Remove unused class.
2016-05-06 15:22:39 +03:00
Vova Perebykivskyi
7bb48bec9b Update Commons Collections. Code refactoring. 2016-05-05 15:24:01 +03:00
Vova Perebykivskyi
68bc4a6fa5 Update Slf4j.
Code refactoring.
2016-05-05 11:38:57 +03:00
Vova Perebykivskyi
5d2cb8683c Update Commons Lang.
Code refactoring.
2016-04-29 15:31:01 +03:00
Vova Perebykivskyi
3adb216e56 Update JGraphT.
Code refactoring.
2016-04-28 14:42:42 +03:00
Vova Perebykivskiy
529d3b738e Added test for BAC value.
Code refactoring.
(cherry picked from commit 0f00d11)
2016-04-18 14:30:29 +03:00
Vova Perebykivskiy
cf7ea8e496 Update MPXJ library.
Changes to Project Import functionality.
Code refactoring.
i18n.
2016-02-23 16:10:51 +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
Jeroen Baten
8cafdd2d62 small adjustments to representation 2014-03-17 21:45:36 +01:00
miciele Ghiorghis
34bf33e630 project-margins-and-status: Implementation of getProject- hours and budget status and the project's tooltipsText 2014-03-10 18:38:59 +01:00
miciele Ghiorghis
8b68347041 project-margins-and-status: get project status and tooltipText methods added
Calculates the project status and gets the tooltips for each task of the project
2014-03-10 18:38:59 +01:00
miciele Ghiorghis
a09cdef943 project-margins-and-status: extended with implementaion of ITaskFundamentalProperties -projectStatus and tooltip 2014-03-10 18:38:58 +01:00
miciele Ghiorghis
052a7aa9ee project-margins-and-status: Project's hours and budget status 2014-03-10 18:38:58 +01:00
miciele Ghiorghis
bffc44e1de project-margins-and-status: get/show project's hours and budget status 2014-03-10 18:38:58 +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
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
Lorenzo Tilve Álvaro
235f6de48c Added global zoom level session variable
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Manuel Rego Casasnovas
2b4be85656 Revert "Bug #1590: Fix problem calling several times the same method in OrderModel"
This reverts commit 7ca0d43883.
2012-12-11 16:33:33 +01:00
Manuel Rego Casasnovas
7ca0d43883 Bug #1590: Fix problem calling several times the same method in OrderModel
The problem was that OrderModel.getOrders() was been called several times to
show the list of projects.

After reviewing the problem several issues were detected:
* Util.createBindingsFor was always calling .loadAll() for each binder it
  creates, however this was not needed. Moreover a lot of times
  Util.reloadBindings is called just after Util.createBindings so the same thing
  is called twice.
* If you go via the entry point or the icon to the project list, the binder for
  the page is properly initialized or not. If you come from the entry point, the
  binder is already working as expected, however if you come from the icon the
  binder has to be created manually. It has been added a method
  CreatedOnDemandTab.afterCreateAction() that is called or not depending if the
  user comes from the entry point or the icon.

FEA: ItEr77S04BugFixing
2012-12-07 12:01:59 +01:00
Manuel Rego Casasnovas
9937f00e76 Bug #1587: Fix issue only resetting index of progress combo if it has items
FEA: ItEr77S04BugFixing
2012-12-04 09:42:30 +01:00
Manuel Rego Casasnovas
2c51ef98a1 Bug 1581: Avoid exception in LongOperationFeedback if desktop is not ready
FEA: ItEr77S04BugFixing
2012-12-03 14:55:41 +01:00
Lorenzo Tilve Álvaro
b3f557f58a Fixed NPE when deleting nodes too fast on project or template WBS trees
This was happening when clicking too fast on the node deletion
column on the tree, wich caused an exception due to trying to remove
an already deleted element.

FEA: ItEr77S04BugFixing
2012-11-29 09:58:32 +01:00
Manuel Rego Casasnovas
8d9a92d7ba Bug 1581: Avoid exception when desktop is not alive in LongOperationFeedback
FEA: ItEr77S04BugFixing
2012-11-28 09:48:22 +01:00
Lorenzo Tilve Álvaro
e79b532d95 Added onClick listener to project names on company view to enter into the planning
This is done using the entry point /planner/index.zul;order=order-code which also helps
browser history management to enable bookmarking, refreshing or use the back button.

The link to the taks from the project view is not added due to an interaction it has with
the system to prevent from leaving the current URL, which would need to be written with anchors
to avoid this interaction.

FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Lorenzo Tilve Álvaro
fc424944d1 Exposed project and tasks codes from fundamental properties to generate entry point URLs
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Jacobo Aragunde Pérez
7ab8e7f07c Bug #1541: Fix issue reseting selected element when progress is hidden
FEA: ItEr77S04BugFixing
2012-11-23 12:58:57 +01:00
Manuel Rego Casasnovas
872520dac2 Calculate progress and hours bars always proportionally to task size
Both bars will work like the money cost bar was already working.

The change is done due to the problem that appears when you adapt the planning,
and some planning remains before the start of the task. In that cases the bars
were not being printed properly.

Moreover current implementation was quite complex, and even if it gives some
useful information in specific cases, it also causes some misunderstandings to
the users.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-19 13:57:20 +01:00
Manuel Rego Casasnovas
e1fbcd6ac9 Change style of tasks that cannot be moved in the Gantt
Set a new class for fixed tasks showing a shadow under the task box and changing
the border color.

FEA: ItEr77S04BugFixing
2012-11-15 12:48:29 +01:00
Manuel Rego Casasnovas
d258b989f9 Merge branch 'libreplan-1.3' into adapt-planning-according-timesheets 2012-11-15 09:45:27 +01:00
Manuel Rego Casasnovas
9e4cbd2484 Show marks from timesheet dates in tasks when showing reported hours bar
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 18:37:15 +01:00
Manuel Rego Casasnovas
6177a5eee0 Bug #1560: Fire property change for task dates after closing allocation pop-up
FEA: ItEr77S04BugFixing
2012-11-13 13:59:25 +01:00
Manuel Rego Casasnovas
62d9221e6f Disable tasks movement for tasks updated from timesheets
Mark updatedFromTimesheets is reseted before adapting the planing in order to
move the tasks if needed.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 15:30:25 +01:00
Manuel Rego Casasnovas
acacba7911 Implement main operations in adapt planning command
* TaskElements are marked or not as updatedFromTimesheets
* TaskElement start date is set with a START_IN_FIXED_DATE constraint to the
  first date in the timesheets
* TaskElement end date is set to the last date in the timesheets if this is
  later than the current end date of the task
* Depending on if the task is marked as finishedFromTimesheets, a progress of
  type TIMESHEETS is added or not. If the task is finished, the end date is set
  according to last date in the timesheets
* TaskElement size and position is updated in the Gantt

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-06 19:20:41 +01:00
Manuel Rego Casasnovas
e9365ed1b0 Add new button to adapt planning according to timesheets
It has been added a new method ICommand.isPlannerCommand() to define if a button
should be added in the planner toolbar or in the common toolbar (save and cancel
buttons).

For the moment, we are using a hard-coded value to know how many buttons we
should add in the plannerToolbar. At this moment we have 2 buttons: reassign and
adapt planning.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-05 09:52:23 +01:00
Manuel Rego Casasnovas
82e18fb77d Revert "Bug #1320: Recalculate position of siblings when moving a task"
This reverts commit 125146ebd2 because of the
solution for bug #1320 was causing a new bug #1540.
2012-10-09 09:29:16 +02:00
Jacobo Aragunde Pérez
519ac2a5aa Simplify the way to calculate the length of money cost bars on the tasks in the
Gantt diagram.

Until now, the percentace of money was transformed into a date and then again
into a percentage.
2012-09-24 13:08:52 +02:00
Manuel Rego Casasnovas
125146ebd2 Bug #1320: Recalculate position of siblings when moving a task
When a task is moved in the Gantt, the constraint changes and it could causes
that some of its siblings should be moved, because of the parent element is
moved too.

FEA: ItEr77S04BugFixing
2012-09-21 18:32:10 +02:00
Manuel Rego Casasnovas
172c9ba195 Using debug method for logging some messages that are meant for debugging 2012-09-14 10:17:50 +02:00
Jacobo Aragunde Pérez
1295617a1d Bug #1508: Display the correct task end date in the task properties window.
FEA: ItEr76S04BugFixing
2012-07-16 16:59:44 +02:00
Lorenzo Tilve Álvaro
2d5273b1a6 Bug #1493: Modified project deadline vertical line position to show it after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Lorenzo Tilve Álvaro
201bb6e363 Bug #1493: Modified task deadline mark position to show it just after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Manuel Rego Casasnovas
9028b56c3d Remove unneeded check in TabsRegistry related to limiting resources tab
FEA: ItEr76S04BugFixing
2012-07-04 20:36:14 +02:00
Manuel Rego Casasnovas
181ed61c48 Remove unused methods and variable in TaskComponent
FEA: ItEr76S04BugFixing
2012-06-08 08:52:06 +02:00
Manuel Rego Casasnovas
5506482e42 Bug #1454: Force update task size after reassignations
FEA: ItEr76S04BugFixing
2012-06-07 18:32:43 +02:00