Review Request 127156: Call off EntryFilter::expireEntries has no effect
Hartmut Riesenbeck
hartmut.riesenbeck at gmx.de
Tue Mar 1 20:43:16 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127156/
-----------------------------------------------------------
(Updated März 1, 2016, 8:43 nachm.)
Review request for KDE Edu.
Changes
-------
I agree to that the collectEntries() now does not reflect its complete
behavior. But from my understanding the expiring should be done before the
sorting into the filtered sets, because the change of grade and practice date
in expireEntries() would change the filter results in blockedEntries() and
minMaxGradeEntries().
So my suggestion is to introduce a new method named setupFilteredEntries() and
move the filtering part of collect entries into that. The order of method
calls in EntryFilter::entries() reflects now the logical sequence of operation.
Get all entries from the document, expire long time not trained vocables and
sort them into the different filter sets.
The method collectEntries() changed now in that way, that it only collects all
valid entries drom the document. But thad behavior refelcts now, for my opinion
its name.
By the way an unused debug function was commented out wich made compiler
warnings.
Repository: parley
Description
-------
In EntryFilter::expireEntries() the set
EntryFilter::m_entries is checked for entries
which hasn't practiced for a defined amount of
time and decreases the grad if this was expired.
But at time of calling expireEntries() this could
not work because m_entries was not intialisised
and empty. The method call was moved to a place
where m_entries is filled and cleaned of invalid
entries.
Diffs (updated)
-----
src/collection/entryfilter.h 8eacf188d0d549c535efc55c22102d8a6aa88c62
src/collection/entryfilter.cpp 5264226f9f9cf69d6c77fefd498ffbbc744b56e7
Diff: https://git.reviewboard.kde.org/r/127156/diff/
Testing
-------
Thanks,
Hartmut Riesenbeck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20160301/851394d2/attachment.html>
More information about the kde-edu
mailing list