[SOLVED] Global v.s. local tag storage, and some suggestions
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Ah. The term "local" tends to remind of the local system, as in local vs network, what with your recent foray into MUT. 
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Well, that's right indeed. Hmmm...
Another question: should it be just the location, or include subfolders (= the branch)?
Another question: should it be just the location, or include subfolders (= the branch)?
FAQ | XY News RSS | XY X
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Global v.s. local tag storage, and some suggestions
OK, I agree (include subfolders).
IMO if it's difficult to find a good caption then take a simple caption. So I plead again for these (and explain the rest in the Help):
Export Local Tags
Import Local Tags
IMO if it's difficult to find a good caption then take a simple caption. So I plead again for these (and explain the rest in the Help):
Export Local Tags
Import Local Tags
FAQ | XY News RSS | XY X
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Global v.s. local tag storage, and some suggestions
Imho thats too broad / generic.
More specific:
Export Tags to Local Folder(s)
Import Tags from Local Folder(s)
More specific:
Export Tags to Local Folder(s)
Import Tags from Local Folder(s)
One of my scripts helped you out? Please donate via Paypal
-
sj515064
- Posts: 51
- Joined: 21 Feb 2019 06:14
Re: Global v.s. local tag storage, and some suggestions
Agreed, fixed name should be used for consistency.So what about this? We could used a fixed name, e.g. "XYplorerTag.dat", and then do it like this (GUI commands in bold, corresponding scripts in fixed font):
Agreed, after the export action, don't remove the exported tags from main DB.Export Tags To Local Database = tagexport("XYplorerTag.dat", , 3); (= store relative to tags database; don't remove from main DB)
Import Tags From Local Database = tagload("XYplorerTag.dat", 1); (= permanently merge into current DB)
After Import, the local DB survives (or should it be killed?): Prompt?
As Sammay has said, whether the local DB should be killed can be decided by the user through a prompt. (Or there can be an option in Tools | Configuration | Information | Tags? Seems unnecessary. Prompt should be OK)
Agreed, I think the captions should be concise.Maybe the captions should be simpler:
Export Local Tags
Import Local Tags
It's really hard to find a caption both concise and without ambiguity, thoughImho thats too broad / generic.
More specific:
Export Tags to Local Folder(s)
Import Tags from Local Folder(s)
SureAnother question: should it be just the location, or include subfolders (= the branch)?
Thank you:D
Last edited by sj515064 on 26 Feb 2019 12:55, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Perfect. I'll have something to eat now and then go to work. 
BTW, the next beta will have a new top menu "Tags". Tags are grown up now and want to move out of "Favorites".
BTW, the next beta will have a new top menu "Tags". Tags are grown up now and want to move out of "Favorites".
FAQ | XY News RSS | XY X
-
sj515064
- Posts: 51
- Joined: 21 Feb 2019 06:14
Re: Global v.s. local tag storage, and some suggestions
That would be great
(and more intuitive)
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Global v.s. local tag storage, and some suggestions
Menu - Tags - Export Local Tags
If you do this inside a directory for which no tags exist (neither for the directory itself, nor any file or folder underneath it),
wouldn't it make more sense to display a red status bar message that no XYplorerTag.dat was created because of no tags to export instead
of just creating it with no tags inside? Like the "Import Local Tags" does, when there is no XYplorerTag.dat file to import...
If you do this inside a directory for which no tags exist (neither for the directory itself, nor any file or folder underneath it),
wouldn't it make more sense to display a red status bar message that no XYplorerTag.dat was created because of no tags to export instead
of just creating it with no tags inside? Like the "Import Local Tags" does, when there is no XYplorerTag.dat file to import...
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Global v.s. local tag storage, and some suggestions
There is one thing that bothers me...
The server has ALL files, the clients none (they tag items via a mapped network drive from the server)!
Using this setting on all machines (clients + server)
Configuration | General | Startup & Exit | Save Settings | [✔] Save changes to disk immediately
Button "Apply to..."
[✔] Tags
Now lets imagine you copy an already tagged file "1.txt" with tag "one" into the same folder on a client
machine. It gets a suffix. The Tags column updates and shows that this file also has the tag "one".
Now on the server side:
The new file "1 - Kopie.txt" is immediately visible (it's on the local file system!) but because the client,
that created it didn't trigger a "save tags" automatically, the tags column shows no entry for it.
If someone on the server would now tag it to lets say "hey - new file", just because it didn't had
a tag yet (at least on the server side) this new tag would be replicated to all other machines.
We really need a way that after a copy, delete or move "job", the tags are saved immediately as well
(as long as the Save changes to disk immediately option is active). Doing this manually would be
a pain in the ass and if someone forgets to do it and another machine that sees e.g. a new file
with no tag and tags it, would (most likely) propagate the wrong tag back to all machines...
The server has ALL files, the clients none (they tag items via a mapped network drive from the server)!
Using this setting on all machines (clients + server)
Configuration | General | Startup & Exit | Save Settings | [✔] Save changes to disk immediately
Button "Apply to..."
[✔] Tags
Now lets imagine you copy an already tagged file "1.txt" with tag "one" into the same folder on a client
machine. It gets a suffix. The Tags column updates and shows that this file also has the tag "one".
Now on the server side:
The new file "1 - Kopie.txt" is immediately visible (it's on the local file system!) but because the client,
that created it didn't trigger a "save tags" automatically, the tags column shows no entry for it.
If someone on the server would now tag it to lets say "hey - new file", just because it didn't had
a tag yet (at least on the server side) this new tag would be replicated to all other machines.
We really need a way that after a copy, delete or move "job", the tags are saved immediately as well
(as long as the Save changes to disk immediately option is active). Doing this manually would be
a pain in the ass and if someone forgets to do it and another machine that sees e.g. a new file
with no tag and tags it, would (most likely) propagate the wrong tag back to all machines...
One of my scripts helped you out? Please donate via Paypal
-
sj515064
- Posts: 51
- Joined: 21 Feb 2019 06:14
Re: Global v.s. local tag storage, and some suggestions
Partially confirmed. With "Save changes to disk immediately" applied to tags, they are not saved immediately for items created by copy-paste action.highend wrote: ↑28 Feb 2019 22:10 There is one thing that bothers me...
The server has ALL files, the clients none (they tag items via a mapped network drive from the server)!
Using this setting on all machines (clients + server)
Configuration | General | Startup & Exit | Save Settings | [✔] Save changes to disk immediately
Button "Apply to..."
[✔] Tags
Now lets imagine you copy an already tagged file "1.txt" with tag "one" into the same folder on a client
machine. It gets a suffix. The Tags column updates and shows that this file also has the tag "one".
Now on the server side:
The new file "1 - Kopie.txt" is immediately visible (it's on the local file system!) but because the client,
that created it didn't trigger a "save tags" automatically, the tags column shows no entry for it.
If someone on the server would now tag it to lets say "hey - new file", just because it didn't had
a tag yet (at least on the server side) this new tag would be replicated to all other machines.
We really need a way that after a copy, delete or move "job", the tags are saved immediately as well
(as long as the Save changes to disk immediately option is active). Doing this manually would be
a pain in the ass and if someone forgets to do it and another machine that sees e.g. a new file
with no tag and tags it, would (most likely) propagate the wrong tag back to all machines...
(I guess that the same behavior exist for "move" and "delete" actions)
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Okay, I partly agree. I think it should be like this:
IF [✔] Save changes to disk immediately AND [✔] "Apply to..." = Tags THEN
ON copy > Save tags immediately IF [✔] Configuration | Information | Tags | Copy tags on copy operations
ON backup/sync > Save tags immediately IF [✔] Configuration | Information | Tags | Copy tags on backup and sync operations
ON move > Save tags immediately
ON delete > Nothing to do (the files are gone anyway)
IF [✔] Save changes to disk immediately AND [✔] "Apply to..." = Tags THEN
ON copy > Save tags immediately IF [✔] Configuration | Information | Tags | Copy tags on copy operations
ON backup/sync > Save tags immediately IF [✔] Configuration | Information | Tags | Copy tags on backup and sync operations
ON move > Save tags immediately
ON delete > Nothing to do (the files are gone anyway)
FAQ | XY News RSS | XY X
-
highend
- Posts: 14942
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Global v.s. local tag storage, and some suggestions
Agreed on that logic..
One more thing: Save tags immediately should also happen if a file is just renamed but ignore this request if "ON move" already
covers a simple rename.
One more thing: Save tags immediately should also happen if a file is just renamed but ignore this request if "ON move" already
covers a simple rename.
One of my scripts helped you out? Please donate via Paypal
-
admin
- Site Admin
- Posts: 66300
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Global v.s. local tag storage, and some suggestions
Okay, good point with the rename.
Done.
Done.
FAQ | XY News RSS | XY X
XYplorer Beta Club