Bug 1170647

Summary: [Weather calendar] Merge intra-day forecasts into one event
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Koten <jkoten>
Component: evolution-data-serverAssignee: Matthew Barnes <mbarnes>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 7.1CC: jkoten, mcrha
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: evolution-data-server-3.12.11-6.el7 Doc Type: Bug Fix
Doc Text:
Cause: Intra-day weather forecasts cause generated event split, cluttering the UI Consequence: When a weather forecast for a day contained multiple intra-day forecasts, then multiple events were generated for each single forecast part Fix: merge intra-day forecasts into one event for that particular day Result: multiple intra-day forecasts are added into one event only, the UI is not cluttered with too many weather events
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 07:56:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sample log from the client/server communication none

Description Jiri Koten 2014-12-04 14:32:19 UTC
Description of problem:
When I add weather calendar in evolution I got multiple whole day appointments instead of just one for one day. Also the temperatures are different for each app. 

This behaviour differs based on location - Brno, Pune - multiple events
Boston - correct, only one event.

Version-Release number of selected component (if applicable):
evolution-3.8.5-29.el7.x86_64
evolution-data-server-3.8.5-32.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Add new weather calendar
2. As a location choose Brno
3.

Actual results:
Multiple events per day

Expected results:
Only one event per day

Additional info:

Comment 1 Milan Crha 2014-12-05 11:04:11 UTC
Created attachment 965076 [details]
sample log from the client/server communication

Thanks for a bug report. I'm not sure how to handle this. The "problem" is that the server returns detailed forecast information, for different parts of the day (see the attached log). I do not see a way to get the end time of the forecast from the WeatherInfo (thus I'd move this to libgweather at the beginning). Once the way to get start and end times for the forecast will be added, evolution's weather backend will be able to merge the forecasts of one day, or eventually use only one of them, like the one nearest noon. It really depends. I wouldn't create events with the given time, because it would clutter the in-day view, with other more important (real) events.

Comment 3 Jiri Koten 2015-05-18 17:09:05 UTC
Still reproducible in evolution-data-server-3.12.11-5.el7

Comment 7 errata-xmlrpc 2015-11-19 07:56:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2226.html