![]() |
#16 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,480
Karma: 29268252
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Mountain343 - seeing as I sent you here, a brief explanation
![]() The erroneous Tag value "Lost Angles" is not contained within every book record, it is held in a Tags table where each entry has a unique row number and a value. These row numbers are used to relate the Tag values to books records. If you change the value to "Los Angeles" the only thing that changes is that value in the relevant row in the Tags table, the unique number does not change. Hence the relationship between the book record and the Tags table remains valid. IMO spending a few minutes familiarising oneself with calibre's data base schema via a tool such as DB Browser for SQLite is worth the effort. If you're not familiar with the concepts of relational databases, start with the default library. Of necessity the handling of custom columns is a more complex than the built-in columns. Stay Safe BR |
![]() |
![]() |
![]() |
#17 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | ||
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
99% of AL's value comes from creating an audit-trail (log) of all metadata that has changed, its previous values, and when it was changed. The "undo" function is just a lagniappe that I threw in for good measure in Version 1.0.3. Without this audit-trail, changing any metadata back to what it was would be impossible, even manually. With the audit-trail, it is reasonably easy to change it back manually even if the "undo" feature does not exist (such as for Authors). By simply copying and pasting from the Log into the appropriate Calibre Edit Metadata columns, manual changes could easily be made. I won't narrow or minimize its characterization by renaming it "undo metadata" or "Log for metadata undo". https://duckduckgo.com/?t=ffab&q=def...tion&iax=about DaltonST |
||
![]() |
![]() |
![]() |
#19 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Hi Dalton.
Thank you for clarifying. |
![]() |
![]() |
![]() |
#20 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.15 - Qt tweaks for small displays
Version 1.0.15 - 2020-08-01 Qt tweaks for small displays.
DaltonST |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.16 - Miscellany
Version 1.0.16 - 2020-12-19 Miscellany.
DaltonST |
![]() |
![]() |
![]() |
#22 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,278
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I got this error when trying to "undo logged change". It happened for both the standard series column and a custom taglike column.
Code:
calibre, version 5.13.0 ERROR: AL: Undo : Sorry, AL cannot Reverse/Undo the selected line. <br><br><b>Unsupported table_action: insert EDIT: Also, just out of curiosity, is the log itself stored the _audit_log table in metatdata.db, or is that used for something else? Last edited by ownedbycats; 03-10-2021 at 04:04 PM. |
![]() |
![]() |
![]() |
#23 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,278
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I did a bit more testing. The issue seems to happen specifically when reverting an "insert" on a text-based column.
|
![]() |
![]() |
![]() |
#24 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Qt6 Test Version of Audit Log
Minimum Calibre Version is 5.99.3.
DaltonST Last edited by DaltonST; 07-11-2022 at 07:29 PM. Reason: New version using only Qt6 & Python 3 |
![]() |
![]() |
![]() |
#25 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
New version using only Qt6 & Python 3
New version using only Qt6 & Python 3 has been attached here:
https://www.mobileread.com/forums/sh...6&postcount=24 DaltonST |
![]() |
![]() |
![]() |
#26 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.18
Version 1.0.18 - 2022-04-13 Qt6 Compatibility; Minimum Calibre Version now 6.0.0 (5.99.9+)
|
![]() |
![]() |
![]() |
Tags |
audit, undo |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 508 | 02-27-2025 12:33 PM |
[GUI Plugin] Hyphenate This! | bookbinder | Plugins | 0 | 05-06-2015 01:07 PM |
[GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
How to log within plugin? | charlweed | Development | 4 | 08-24-2012 08:19 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |