Existing Event can be "Hidden" when adding new events

Bug #1350605 reported by Jason
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Fix Released
High
Jason

Bug Description

The Calendar App "drops" an existing event when adding a new event. The "dropped" event disappears from the DayView for the current run of the app, but "re-appears" after closing and re-opening the app. So no data is lost permanently, the problem *appears* to be limited to the display alone.

Reproduction Steps
1) Start the calendar app
2) Create a new event "Foo"
3) Create a second event "Bar"
4) After creating the second event, check the DayView, the "Foo" should no longer appear.

I'm not sure when this issue was initially introduced, but it was noticed around 7/30/14 when it started causing Jenkins builds of the calendar app to fail.

Related branches

Changed in ubuntu-calendar-app:
status: New → Confirmed
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

I have not tried to reproduce the issue, but if you are able to reproduce can you put log when we get model refresh event and see how many events are returned by model.

If you are getting correct number of events from model then we need to investigate from calendar side.
else we need to check EDS side.

David Planella (dpm)
Changed in ubuntu-calendar-app:
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Kunal, we certainly don't get the proper number of objects returned. I can add some debugging prints there and create some better logging.

Perhaps in EventListModel.qml? Or calendar.qml? Can you specify or provide a patch for debugging purposes?

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

This seems to be some sort of refresh issue; I noticed if I switch views to say MonthView, then bounce back to dayview, things display properly.

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

Hi,

Please try below inTimeLineBase.qml

    function createEvents() {
        if(!bubbleOverLay || bubbleOverLay == undefined) {
            return;
        }

        destroyAllChildren();

        var eventMap = {};
        var allSchs = [];

        var startDate = new Date(day).midnight();
        var endDate = new Date(day).endOfDay();
        var items = model.getItems(startDate,endDate);
 >>> print("Event Count : " + items.length);

Revision history for this message
Jason (gerlowskija) wrote :

I'll start to take a look at this (starting with Kunal's debugging suggestion above). Marking myself as 'assigned'.

Changed in ubuntu-calendar-app:
assignee: nobody → Jason (gerlowskija)
Revision history for this message
Jason (gerlowskija) wrote :

I added the debugging that Kunal suggested in Comment 4. When running the reproduction-scenario in the bug description, the output was:

qml: Event count: 0 *add initial event*
qml: Event count: 1 *add second event*
qml: Event count: 2

(I added the *added ___ event* notation to clarify the timeline a bit).

This count looks right to me: after adding each event, the count of members in the items array seems to be incremented.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I noticed visually events stick around in the timeline view after deleting as well. Try it. From dayview tap an event and delete. It returns you to dayview with the event still showing.

Changed in ubuntu-calendar-app:
status: Triaged → In Progress
milestone: none → rtm14
Revision history for this message
Kill Animals (kill-animals) wrote :

I have noticed strange behaviour in regards to this. Creating a new event got rid of a bunch of newer events in the timeline, and after creating a third event, the day view events dissappeared

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-calendar-app at revision 415, scheduled for release in ubuntu-calendar-app, milestone rtm14

Changed in ubuntu-calendar-app:
status: In Progress → Fix Committed
Changed in ubuntu-calendar-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.