| Summary: | AbstractPlannerField: inconsistent handling of boundary conditions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Otmar Caduff <otmar.caduff> | ||||||||||
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | mvi, stephan.leichtvogt, zimmermann | ||||||||||
| Version: | unspecified | Flags: | zimmermann:
juno+
|
||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Otmar Caduff
Created attachment 200243 [details]
Scout Application to reproduce the bug.
Created attachment 200244 [details]
Possible patch.
Fixed and commited to branch 2011-Jun for the release 3.7.1 and to trunk for release 3.8.0. I had to revert this changes. The Display was correct with this patch, but try to select one week. It does not work. Please correct it. If you need help, we can look over this bug together. We came to the conclusion that we can not fix the problem with the attatched patch, because it also affects the behaviour of the selection box. As a workaround, we came to the conclusion that the client has to provide the data for the planner field such that the information is displayed correctly. However, this is not a viable solution in the long run; the concerned code (AbstractPlannerField/TimeScale/TimeScaleBuilder) should be redesigned. Created attachment 202591 [details]
Possible patch 2.
Patch contains both a proposed fix and a test form.
Committed patch to trunk for release 3.8.0. Created attachment 210856 [details]
Patch that handles boundaries for PLANNING_MODE_DAY and PLANNING_MODE_WEEK correctly
When using modes PLANNING_MODE_DAY or PLANNING_MODE_WEEK the selected columns are not handled correctly due to the used values at the end boundaries of the MinorColunns.
During construction of a MinorColumn, 1ms is subtracted from the end boundary. When fetching the column index for a given end time, it has to be checked if the given end time fits into the begin and end time interval of the column. Otherwise, the previous column has to be returned.
patch applied for Juno. thank you Ken! Comment on attachment 202591 [details]
Possible patch 2.
added iplog flag for this patch
ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train) |