Bug 491804 - Sorting by Creation Date and Group by Month Creating Multiple Month/Yr Groups
Summary: Sorting by Creation Date and Group by Month Creating Multiple Month/Yr Groups
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Sort (show other bugs)
Version: 8.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-17 00:49 UTC by NameGoesHere3
Modified: 2024-08-17 10:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NameGoesHere3 2024-08-17 00:49:43 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
photos configured for  'Sort Item by Creation Date' and 'Separate item by month' but not all the photos are grouping together in a unified month/yr grouping. Where the majority the picture are in the proper month (ie Aug 2024)  there might be a couple photos in one or more additional Aug 2024 grouping. These may be part of a series. IE picture 001, 002, 003, 005, 006, 007, 009, and 010 would be in one group; 004 would be in another group; and 008 would be in a third group.

This does not happen for all months. 

STEPS TO REPRODUCE
1.  Under View, click sort item by creation date
2. Under View, click group by month
3. 

OBSERVED RESULT
not all the photos of a specific month/year group in multiple groups.  Multiple groups of the same month are created with different images in each group

EXPECTED RESULT
All the photos of a specific month/year group together in a unified month.

SOFTWARE/OS VERSIONS
Windows: 11
KDE Plasma Version: 
KDE Frameworks Version: Version 5.116.0
Qt Version: Version 5.15.14 (built against 5.15.14)

ADDITIONAL INFORMATION
  happened in 8.4 and the version before 8.4
Comment 1 Maik Qualmann 2024-08-17 06:12:02 UTC
I can't reproduce the problem here, but I know the cause of categories being duplicated.
There may not be valid date information on these images. Does anything change if you re-read the metadata from the August 2024 group images?

Maik
Comment 2 Maik Qualmann 2024-08-17 10:42:28 UTC
Git commit 35dee31cae6d5d1b06af77c6efdd9a8b8371b371 by Maik Qualmann.
Committed on 17/08/2024 at 10:41.
Pushed by mqualmann into branch 'master'.

handle items with invalid date in the Months view
FXED-IN: 8.5.0

M  +1    -1    NEWS
M  +2    -1    core/app/items/utils/itemcategorydrawer.cpp
M  +6    -1    core/libs/database/models/itemfiltermodel.cpp

https://invent.kde.org/graphics/digikam/-/commit/35dee31cae6d5d1b06af77c6efdd9a8b8371b371