Closed Bug 1073423 Opened 10 years ago Closed 6 years ago

[Calendar]selecting + icon will not choose selected date.

Categories

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

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: swathiks115, Unassigned)

Details

(Whiteboard: [LibGLA,TD102537,QE2, B])

Attachments

(4 files)

      No description provided.
Attached image Selected date.png
Attached image Add event.png
Select any date before today's date and click + icon. Start date and End date will always be todays date.
Start date and End date is not taking selected day.

Please refer attached screenshot.

Selected date is 10th Sep
Today's date is 26th Sep
click on + icon 
start date and end date in add event screen is 26th Sep 

Expected result: both start date and end date  should be selected date i.e 10th Sep.
Flags: needinfo?(mmedeiros)
Whiteboard: [LibGLA,TD102537,QE2, B]
Harly, can you confirm what is the expected behavior?
Flags: needinfo?(mmedeiros) → needinfo?(hhsu)
Swathiks, nice catch, I wasn't aware of this behavior. 

Hi Miller, from an UX standpoint, I think the start and end date should always reflect on what date user have selected in month view, regardless of if it is the date before/ after today. Thanks.
Flags: needinfo?(hhsu)
Attached patch calendar+.patchSplinter Review
This patch will fix this issue.

Please give your feedback on this patch.
Attachment #8496679 - Flags: feedback?(mmedeiros)
Comment on attachment 8496679 [details] [diff] [review]
calendar+.patch

change looks good to me, can you update the unit tests as well? - you can run them locally with the script `./bin/gaia-test`, then click the calendar header to select all the calendar tests, and then click "execute".

PS: Github pull requests are easier to review since they execute all the unit/integration tests (to catch any potential regression) and allow us to comment on each individual line.

Thanks!
Attachment #8496679 - Flags: feedback?(mmedeiros)
Attached file Pointer to PR
PR is raised with unit tests. Please review.
Attachment #8501539 - Flags: review?(mmedeiros)
Comment on attachment 8501539 [details]
Pointer to PR

I added a few comments on the Github pull request. Unit tests are failing because of the changes and it also changed the file "mode" for some reason. Please flag me for ?review when you're done with the updates. Thanks!
Attachment #8501539 - Flags: review?(mmedeiros)
Hi Miller,

  Can you please test Unit Tests without my changes? Because some Unit tests are failing without my changes.

Thanks!
Flags: needinfo?(mmedeiros)
swathiks, the calendar unit tests should be working on latest master. Only tests that are expected to fail are the marionette alarm tests (notifications works on Linux but fails on Mac) and sometimes the month_view_test.js fails on the onswipe test (fixed by running "make clean && make really-clean"). gaia-try blackists known failures, so the treeherder results should be accurate. the patch really introduced a regression on the unit tests.

also need to re-apply the changes over latest master (code structure changed during AMD refactor). sorry about that.
Flags: needinfo?(mmedeiros)
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: