Bug 197358 - Allow transfer history to be automatically be deleted
Summary: Allow transfer history to be automatically be deleted
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 12:23 UTC by m.wege
Modified: 2023-07-23 15:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.wege 2009-06-21 12:23:11 UTC
Version:           2.2.90 (using 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.30-020630rc6-generic

Allow transfer history to be automatically be deleted after x days and/or x downloads
Comment 1 Bug Janitor Service 2023-05-10 14:24:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kget/-/merge_requests/59
Comment 2 Bug Janitor Service 2023-05-12 04:15:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kget/-/merge_requests/60
Comment 3 Albert Astals Cid 2023-07-23 14:27:56 UTC
Git commit a50d60ae7ff8c107b6f95968a13e2c208da60957 by Albert Astals Cid, on behalf of Theodore Wang.
Committed on 23/07/2023 at 16:27.
Pushed by aacid into branch 'master'.

Implemented feature request involving automatic deletion of transfer history and fixed TestJob member function

Toggling and setting of automatic deletion can be done under Settings->Configure KGet->Advanced.
Users can set automatic deletion based on a period of time.
For history items which have been around for a period longer than the specified duration, they are automatically deleted.
The specified duration can either be in terms of Day(s), Hour(s), Minute(s) or Seconds(s).

(Not related to bug) Also changed TestJob member function to prevent "Finished" jobs from being "Stopped" and started again. Thus resolving unit test failures.

M  +19   -0    conf/dlgadvanced.ui
M  +9    -0    conf/kget.kcfg
M  +33   -0    conf/preferencesdialog.cpp
M  +3    -0    conf/preferencesdialog.h
M  +3    -0    core/kget.cpp
M  +55   -0    core/transferhistorystore.cpp
M  +18   -0    core/transferhistorystore.h
M  +7    -0    core/transferhistorystore_sqlite.cpp
M  +7    -0    core/transferhistorystore_xml.cpp
M  +1    -1    tests/schedulertest.cpp

https://invent.kde.org/network/kget/-/commit/a50d60ae7ff8c107b6f95968a13e2c208da60957
Comment 4 Albert Astals Cid 2023-07-23 15:45:17 UTC
Git commit 2c549c6a247f2bea429e37d6543fb9798d9a8537 by Albert Astals Cid, on behalf of Theodore Wang.
Committed on 23/07/2023 at 17:43.
Pushed by aacid into branch 'release/23.08'.

Implemented feature request involving automatic deletion of transfer history and fixed TestJob member function

Toggling and setting of automatic deletion can be done under Settings->Configure KGet->Advanced.
Users can set automatic deletion based on a period of time.
For history items which have been around for a period longer than the specified duration, they are automatically deleted.
The specified duration can either be in terms of Day(s), Hour(s), Minute(s) or Seconds(s).

(Not related to bug) Also changed TestJob member function to prevent "Finished" jobs from being "Stopped" and started again. Thus resolving unit test failures.
(cherry picked from commit a50d60ae7ff8c107b6f95968a13e2c208da60957)

M  +19   -0    conf/dlgadvanced.ui
M  +9    -0    conf/kget.kcfg
M  +33   -0    conf/preferencesdialog.cpp
M  +3    -0    conf/preferencesdialog.h
M  +3    -0    core/kget.cpp
M  +55   -0    core/transferhistorystore.cpp
M  +18   -0    core/transferhistorystore.h
M  +7    -0    core/transferhistorystore_sqlite.cpp
M  +7    -0    core/transferhistorystore_xml.cpp
M  +1    -1    tests/schedulertest.cpp

https://invent.kde.org/network/kget/-/commit/2c549c6a247f2bea429e37d6543fb9798d9a8537