-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: All labels deleted when synching folders (despite RSS service doesn't even support labels) #465
Comments
Wow what a cute bug it is. |
Will fix for 4.0.0 for sure, serious flaw. |
the issue is now fixed, there are some follow-up problems which i will fix too, but now you can test test with development build please |
Seems to be fixed. Needed to delete config dir "RSS Guard 4" though, since v4 imported some stuff from v3.9.2, but lost account passwords (and several other things, like filters, message display [msgs still in database, though], ...). Simply adding the password again passed the connection test, but resulted in a crash when I closed the dialog. So, deleted v4.0.0 config dir, started from scratch and labels were preserved when I added a new feed, synced folders, removed feed and synced again. I hope the final release of v4.0.0 will seamlessly handle database migration from v3.9.2? For the time being, I'll export the labels to CSV and re-import them, via SQLite Studio. Currently, I'm assigning the labels via filters, so this can be restore by running them again, but it's a painful workaraound. |
Very unlikely, RSS Guard 4.0.0 never ever automatically touches anything from 3.x, it uses different folders to keep settings/DB. Yes, at this point DB file from 3.x is not compatible for 4.x and database migration will probably be impossible, like for 99%. If you are bit profficient with SQLite, then you can however perform the transition by yourself as some tables are in fact untouched - eg "Messages". Some basic copy-paste in SQlitestudio (which i use too, great app) will make things ok.
This is related to the fact that v4 DB file is hugely incompatible with v3. |
v4 does not import anything automatically, yes. I used "Restore settings" and picked a v3.9.2 backup, and since v4 did not outright refuse to restore a backup from on older version, I was assuming that restoring was possible, and the resulting issues were simply todos. I had already copied over the tables MessageFilter and Labels after your assurance that my data would not actually burn in hell... and it worked. So far, devbuild 4f6ec40 works for me, except for some cosmetic issues. |
Yes, those tables can be copied, I will probably write some semi-DIY SQL script to perform partial migration, so that advanced users like you could migrate atleast some data.
What does it mean that icon theme does not "work" in toolbar. You mean that buttons have no icons? Like all buttons? What Linux distro, how installed RSS Guard?
Yes, but overally it does not look that bad, it is just informative progress bar anyway.
You cannot set all columns to "fit", that's just not possible. Check the code. RSS Guard sets some columns to fit the contents, rest of columns are "interactive" - resizable and their order and size is remembered persistently. |
The buttons have icons, but while I can clearly recognize, e.g., WhiteSur, gnome, and ubuntu-mono-light icon themes when I set them in RSS Guard, the Papirus icons do not resemble what I know from Papirus. Distro is Kubuntu 20.04 LTS, running rssguard-devbuild-4f6ec403-nowebengine-linux64.AppImage. My C++ days are over by 20+ years now, so, sadly, I can't fully check the code you asked me to :) What I mean is that I'm used to columns remembering their order and respective relative widths; the behavior right now is a bit unusual: I keep the internal browser window at the right border (not at the bottom), and when no message is shown, the columns of the message list just stay where they are, leaving a huge blank space where the internal browser view was. I'd expected the columns to fill that space, while preserving their relative widths. Same thing happens when I switch the layout so the browser view is at the bottom: the message list doesn't expand to fill the gap. I just checked v3.9.2, and in both cases, the message list exapnds to fill the gap. |
Key information right here.
Report as separate bug perhaps.
So you say it worked fine with 3.9.2 but does not work anymore with 4.0.0? |
@rfkat
Try removing this line in config #435 (comment)
I am not too sure of what have happened here, nor how is it possible even. Perhaps the because of
? Do you running it in firejail? |
Do you have Papirus installed system-wide or only for your user? |
I had some problems with icons too, and sadly there is not much I can do. Basically everything I do is that I call special function which "sets" active icon theme by name. Everything else is automatic and THE function is known to sometimes have big problems. https://bugreports.qt.io/browse/QTBUG-48121?jql=text%20~%20%22icon%20theme%22 |
Also, I discovered the actual upstream method which is responsible for saving of state of list of messages and I am not happy. https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/itemviews/qheaderview.cpp?h=dev#n4077 The code saves also some unwanted things like |
Followup: I created experimental fix b81ac69. The fix now strictly saves only these properties of each column: visibility, sort order, width. It should work fine. You might cleanup your "config.ini" as @sakkamade states as new format of setting is not backwards compatible. |
This is only a consequence of the same string in config, hence the same issue. |
@Sakkade: That's it!
Purged per-user installed icon sets, and re-installed them system-wide. Now they work in RSS Guard. |
I guess this is a limitation of AppImage itself. It doesn't use much configuration from user's home directory. |
@rfkat, Could you revert this change for a bit
Start RSS Guard with |
@sakkamade I've tried with both Lyra and Papirus icons locally installed, and I can't reproduce the error anymore, with any of the test binaries; the respective icons are correctly shown now. :-| Binaries used for testing:
The log files are quite large (9-19 MB) and include both my personal directory structure, as well as my RSS feed subscriptions in plain text. So I prefer not to make them available to others (in our case, there's no error msgs anyway). I can't rule out that I broke the earlier icon install (that did not become visible in RSS Guard) when I did it manually. I've only recently switched to using ocs-url. |
Brief description of the issue.
When synching folders and other items with Nextcloud News, to account for new feed subscriptions, all existing labels get deleted.
How to reproduce the bug?
What was the expected result?
Never delete labels that were manually created. Especially when the configured RSS service does not even support labels that would need, or allow for, syncing.
What actually happened?
All labels deleted, tedious work to recreate them upon every new feed subscription in Nextcloud News that I want RSS Guard to pick up, via a sync.
Other information
The text was updated successfully, but these errors were encountered: