After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777423 - (Week view) week-view may not list the 3rd full day event
(Week view) week-view may not list the 3rd full day event
Status: RESOLVED FIXED
Product: gnome-calendar
Classification: Applications
Component: Views
unspecified
Other Linux
: Normal normal
: 3.26
Assigned To: GNOME Calendar maintainers
GNOME Calendar maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-18 04:50 UTC by Mohammed Sadiq
Modified: 2017-05-04 01:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
week-view: deleting 4th event (video) (266.04 KB, video/webm)
2017-01-27 10:15 UTC, Mohammed Sadiq
  Details
Patch for bugfix (1.24 KB, patch)
2017-05-03 00:58 UTC, kestanegurgen
none Details | Review
patchV2 (1.47 KB, patch)
2017-05-03 20:18 UTC, kestanegurgen
committed Details | Review

Description Mohammed Sadiq 2017-01-18 04:50:05 UTC
Week view may sometime ignore the 3rd fullday event to be listed.

How to reproduce:

1. Open week view
2. Add 4 full single day events to the same date.
   Now the week-view will list 2 events and says 'Other 2 events' (This may depend on screen size. So I don't know if this same method will help one to reproduce the bug)
3. Now dnd any one event to some other date.

Result:
Week view now lists only two events in the date where there actually have 3 events in total. It also doesn't show 'other n events' or the expand button in left. Switching the week brings back the event to view though.
Comment 1 Georges Basile Stavracas Neto 2017-01-27 09:28:45 UTC
This is per the proposed designs of the Week view [1]. What's the problem with this behavior?

[1] https://github.com/gnome-design-team/gnome-mockups/blob/master/calendar/week-view-header-populated.png
Comment 2 Mohammed Sadiq 2017-01-27 10:15:54 UTC
Created attachment 344388 [details]
week-view: deleting 4th event (video)

(In reply to Georges Basile Stavracas Neto from comment #1)
> This is per the proposed designs of the Week view [1]. What's the problem
> with this behavior?

I think gnome-calendar is not acting as it is supposed to be. Please see the attached screencast to see what it happens to me (when I delete the fourth event, the 'Other n event' is not shown, nor the expand button, and week-view lists only 2 events (though there are actually 3))


Thanks
Comment 3 kestanegurgen 2017-05-03 00:58:24 UTC
Created attachment 350916 [details] [review]
Patch for bugfix
Comment 4 Georges Basile Stavracas Neto 2017-05-03 14:56:16 UTC
Review of attachment 350916 [details] [review]:

Nice catch! The code looks good and sweet, but the commit message needs some improvements.

First, the title does not need "Bugfix:". In the body of the commit message, you should explain what's happening, and how the fix works. Please follow the guidelines at https://wiki.gnome.org/Newcomers/SubmitPatch on how the commit message should be formatted.
Comment 5 kestanegurgen 2017-05-03 20:18:43 UTC
Created attachment 351007 [details] [review]
patchV2

Thanks for feedback,

Is this right?
Comment 6 Georges Basile Stavracas Neto 2017-05-04 00:57:39 UTC
Review of attachment 351007 [details] [review]:

Looks good. Thank you so much for the patch, and I'm looking forward your contributions! =)
Comment 7 Georges Basile Stavracas Neto 2017-05-04 01:00:15 UTC
Pushing to master and gnome-3-24. This fix will be available in Calendar 3.24.2 and 3.25.2. Also closing the bug as RESOLVED FIXED.

Attachment 351007 [details] pushed as a6e347d and e00bed4 - week-header: Move events at column after remove event from list