Closed Bug 1117713 Opened 9 years ago Closed 9 years ago

[Flame][Calendar]Disable "All day" when creating an event,tap Save, it will pop up alert message "Something is wrong.Try again later."

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:+, b2g-v2.2 verified, b2g-master verified)

VERIFIED FIXED
2.2 S5 (6feb)
tracking-b2g +
Tracking Status
b2g-v2.2 --- verified
b2g-master --- verified

People

(Reporter: zikui.yang, Assigned: mmedeiros)

References

Details

(Keywords: polish)

Attachments

(4 files)

[1.Description]:
[Flame][v2.2][Calendar]Disable "All day" when creating an event,tap Save,it will pop up alert message "Something is wrong.Try again later.".I can‘t create an event successfully.
Attach:logcat.txt  and VIDEO0204[1].mp4
Happen time:11:15

[2.Testing Steps]: 
1.Launch Calendar->switch to day view
2.Tap the "24" bar on the top of day view.
>>Then,"+" icon appears on the top of day view
3.Tap "+" icon to enter Add event view
4.Disable "All day event?"
5.Tap Save

[3.Expected Result]: 
5.It will not pop up alert message "Something is wrong.Try again later.", it should create an event successfully.

[4.Actual Result]: 
5.It will pop up alert message "Something is wrong.Try again later."

[5.Reproduction build]: 
Flame 2.2 build:
Gaia-Rev        698e6e8a098cc060b26cd6f25171633c4c7e739d
Gecko-Rev       https://hg.mozilla.org/mozilla-central/rev/57e4e9c33bef
Build-ID        20150103010205
Version         37.0a1

[6.Reproduction Frequency]: 
Always Recurrence,5/5
TCID: Free Test
Attached file logcat.txt
Attached video VIDEO0204[1].mp4
Hi Gareth, Could you help with this, thanks.
Flags: needinfo?(gaye)
Hrm this seems to be related to the fact that the start time is the same as the end time. I think Evan touched the modify event view code most recently, so he might be a good candidate to fix this (it seems low effort). I'll ask for 2.2? and we'll go over it next triage. Thanks Eric!
Flags: needinfo?(gaye)
blocking-b2g: --- → 2.2?
triage: tracking+ for footgun. The idea for resolution here is to choose the default event time if the user unchecks the All Day option, which would be the top of the next hour (from current time) and a duration of one hour.
blocking-b2g: 2.2? → ---
tracking-b2g: --- → +
Keywords: polish
Assignee: nobody → mmedeiros
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Attachment #8553874 - Flags: review?(gaye)
Comment on attachment 8553874 [details] [review]
[PullReq] millermedeiros:1117713-all-day-toggle-duration to mozilla-b2g:master

LGTM with a single test nit. Thanks again for writing the test :)
Attachment #8553874 - Flags: review?(gaye) → review+
Keywords: checkin-needed
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Comment on attachment 8553874 [details] [review]
[PullReq] millermedeiros:1117713-all-day-toggle-duration to mozilla-b2g:master

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): Bug 999959 (that's when we allowed to create an all day event)
[User impact] if declined: user probably won't understand why he can't save the event since the error message is not descriptive (reason why he can't save it is because startTime == endTime)
[Testing completed]: maionette + manual testing
[Risk to taking this patch] (and alternatives if risky): low risk, changes are isolated
[String changes made]: none
Attachment #8553874 - Flags: approval-gaia-v2.2?
Attachment #8553874 - Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
Needs rebasing for v2.2 uplift.
Flags: needinfo?(mmedeiros)
Target Milestone: --- → 2.2 S5 (6feb)
need to rebase because this bug actually depends on the work started on Bug 846940, so I'll provide a PR targeting v2.2 and containing both commits - the other commit is basically just to add the marionette tests and have a clean history.
Depends on: 846940
Flags: needinfo?(mmedeiros)
This issue is verified fixed on the latest Nighty Flame 3.0 and 2.2 builds.

Results:  The event is created correctly.

Environmental Variables:
Device: Flame 3.0
BuildID: 20150211010216
Gaia: 8c7865486a1b11076b849bbf8f7fccbaffbfafe7
Gecko: ee093ca70666
Gonk: e7c90613521145db090dd24147afd5ceb5703190
Version: 38.0a1 (3.0) 
Firmware Version: v18D-1
User Agent: Mozilla/5.0 (Mobile; rv:38.0) Gecko/38.0 Firefox/38.0

Environmental Variables:
Device: Flame 2.2
BuildID: 20150211002505
Gaia: 943be6fd146017dcd9d4c9d1027be1e43bad13eb
Gecko: e614443583e7
Gonk: e7c90613521145db090dd24147afd5ceb5703190
Version: 37.0a2 (2.2) 
Firmware Version: v18D-1
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
Status: RESOLVED → VERIFIED
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: