-
Notifications
You must be signed in to change notification settings - Fork 297
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
Make import merge the tag lists by default (when not overwriting) #2023
base: master
Are you sure you want to change the base?
Conversation
Hi, Also the UI for the overwrite/don't overwrite setting currently looks like this: Maybe it should be updated to clarify what each option does? Currently if the checkbox is unchecked, I would expect existing shaares to not be modified, but with this patch, they will (if the tags are different across duplicates). Maybe a documentation update would be sufficient. This also removes the possibility of actually not modifying existing shaares. I'm fine with keeping it simple, and deciding on a single "good" behavior, but I'm not sure what is considered "good" by most users. I personally never use this feature, except to import an older backup on a fresh Shaarli installation, so I never run into duplicates. What is the problem you were having with the current behavior (skip shaares with duplicate URLs completely)? |
I have a large set (thousands) of bookmarks that I was storing in Google Bookmarks (which was the only reasonable way for me, not requiring any crappy addons, could be used from any device/browser, easily searched etc.). I have them exported and put into Firefox - but this import made a very funny thing - the tags became folders and bookmarks are duplicated for each tag they had... It became a set of more than 40000 bookmarks. There is no way I can order this in any reasonable way (yeah, I can eventually write some tool myself to clean this up... but no time for that so far). As I wrote in #2022, the UI could be extended to include all 3 options, but for me the behaviour with this patch is exactly what I would expect:
Anyway, probably the best would be to add a selection list/box to choose one of the three ways of dealing with tags for existing bookmarks (overwriting or not may concern also description/link title, if I recall well, so such option should probably have description that overwriting/merging/preserving is for tags only). The patch is a proposal/starting point for adding the feature. It can surely be improved as needed - but as it is, it is already working well, in my opinion not spoiling anything (ie. it does not introduce any potential data loss, on the contrary!). IMHO, the UI can be improved later (if needed). But as you prefer, of course. (What I care is that the feature is there, as I really need it.) |
Thanks a lot for the explanation. Disregard the failing tests as they are caused by #2029
That's a problem indeed... I've had good results with https://addons.mozilla.org/en-US/firefox/addon/bookmark-dupes/ in the past to get rid of duplicate bookmarks, but I don't think it would help with the merging part.
Yes, so we have the possible following behaviors, depending on what the user wants:
I think there is value in keeping the possibility of not touching existing bookmarks at all. The imported data may be "unclean" - For example my existing Shaarli bookmarks are
True. What I suggest is adding a simple configuration setting |
Implements feature from: #2022