Merge lp://qastaging/~pkunal-parmar/ubuntu-calendar-app/TapToCreateEvent into lp://qastaging/ubuntu-calendar-app

Proposed by Kunal Parmar
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 631
Merged at revision: 646
Proposed branch: lp://qastaging/~pkunal-parmar/ubuntu-calendar-app/TapToCreateEvent
Merge into: lp://qastaging/ubuntu-calendar-app
Diff against target: 164 lines (+47/-12)
6 files modified
NewEvent.qml (+6/-0)
TimeLineBase.qml (+15/-2)
TimeLineBaseComponent.qml (+7/-1)
WeekView.qml (+0/-7)
tests/autopilot/calendar_app/tests/test_monthview.py (+5/-0)
tests/autopilot/calendar_app/tests/test_weekview.py (+14/-2)
To merge this branch: bzr merge lp://qastaging/~pkunal-parmar/ubuntu-calendar-app/TapToCreateEvent
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nicholas Skaggs (community) Needs Fixing
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Needs Fixing
Review via email: mp+254175@code.qastaging.launchpad.net

Commit message

Resolves Bug #1378380
Add event on tap

Description of the change

Resolves Bug #1378380
Add event on tap

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Tapping created an event at 21:26, I think it should create an event which locks to the nearest 30 minutes.

The event is created, and then two more button presses are required (tap event, tap edit) to edit the event to change the title from "Untitled". Would it make more sense to go directly to edit event when created?

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

> Tapping created an event at 21:26, I think it should create an event which
> locks to the nearest 30 minutes.
>

As per current implementation we are truncating minutes and creating event for currently touched hour.
It should have created event rounding to hour, for your case it should have created event on 21:00 to 22:00

Can you confirm once more ?

> The event is created, and then two more button presses are required (tap
> event, tap edit) to edit the event to change the title from "Untitled". Would
> it make more sense to go directly to edit event when created?

This can be done

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

so issue with jenkins was, first day was not visible but AP was trying to click on first day, which it could not see and thus AP fails.

Now scrolling view to make first day visible.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Tested and this is great, thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

testtools.matchers._impl.MismatchError: !=:
reference = datetime.datetime(2015, 4, 12, 22, 0)
actual = datetime.datetime(2015, 4, 12, 21, 30)

So we create an event on the half hour but the test always assumes it's on the hour, so that needs fixing.

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

Sure, I'll fix this and other ap fail with week number Mr.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

From Video, test case seems to be running fine. There seems some issue with Jenkins server. Seems like python is getting some wrong date.

like in below log,
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/calendar_app/tests/test_monthview.py", line 142, in test_today_button
    self._go_to_today(1)
  File "/usr/lib/python3/dist-packages/calendar_app/tests/test_monthview.py", line 87, in _go_to_today
    self._assert_today()
  File "/usr/lib/python3/dist-packages/calendar_app/tests/test_monthview.py", line 74, in _assert_today
    Eventually(Equals(today.day)))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 423, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: After 10.0 seconds test failed: 16 != 1

as you can see from failure, fail happens on 16th April, so today is 16, but python is expecting 1.
Which is wrong.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

It was once approved by Alan so approving it again

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Kunal, ideally we should have a test that covers tapping to create an event. Since event creation is well covered, this test could be written easily enough by opening the dayview and tapping under a few scenarios (on an event, on a blank timeslot, between slots), ensuring the proper response for each.

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

Some suggested changes.

review: Needs Fixing
626. By Kunal Parmar

logging

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
627. By Kunal Parmar

typo resolved

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
628. By Kunal Parmar

AP fix

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
629. By Kunal Parmar

ap fix

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
630. By Kunal Parmar

AP fix by selecting today

631. By Kunal Parmar

pep8

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: