FET Forum

FET Support (English) => Get Help => Topic started by: pnlshd on October 07, 2024, 09:22:40 AM

Title: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 09:22:40 AM
Hello again :)

I wanted to ask if there is a way to bulk apply (add) an activity tag to a set of activities or also remove a tag from them (if they have it) instead of doing it one by one from the UI.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 09:31:49 AM
Hello again, pnlshd! :)

No, unfortunately there isn't. I will add your suggestion in the TODO.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 09:39:27 AM
Thank you, Liviu :)

There was also another suggestion to consider if you like and it is a quite simple one, when I regenerate a timetable using multithreading I always get the prompt to first rename the folder, I suggest that this message become a Yes/No prompt to overwrite rather than an info message to enforce renaming from me.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 09:50:23 AM
You are welcome! :)

I also added this suggestion, but:

1) It is very risky for me/FET to remove the old multi results directory (the whole current file directory must be removed completely before the new generation).

2) The whole point of disallowing multiple generation overwriting is to make sure the hard earned results are not removed with a single click. You might press Yes and easy like that the possible precious results are gone.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 09:58:28 AM
That is true and I understand why you enforce that, maybe you can add a third option "rename" so "yes" will overwrite but rename will create a new folder with an incrementing numeric suffix. It could also be just No and Rename if you like too to prevent accidental overwrite.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 10:03:49 AM
OK, I will add also these words, and think of the problem.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 10:05:26 AM
Thank you for your consideration, Liviu. All the best for you and for FET 🥳
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 11:05:51 AM
You are welcome! Thank you!
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 01:57:38 PM
Hello, pnlshd,

I thought about it. A good idea might be to write each time the new timetables in another directory, if the current one exists. So, first it saves in liviu-single, then in liviu-single-2, then in 3, ..., 9, 10, for single generations, and similarly with liviu-multi.

The only drawback is that the disk space usage might grow much if the user does not notice that the old results are kept.

@Volker Dirr , what do you think?
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Volker Dirr on October 07, 2024, 03:10:34 PM
I think the idea is good.
Don't forget that the user should see the directory name (in the GUI and also in fet-cl mode.)

About disk space:
In TiTiTo I read the backup folder and warn if there are too many files.
Maybe we can do it similar in fet. Just counting the number of directories in the fet-results folder and if there are too many, then warn. (Of course we could also count the file size, I just suggested counting the directories, since it is faster)
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 03:15:30 PM
Thanks, Volker!

I have in mind only GUI change. The FET-CL can change the output directory in the command line options.

Hmm... about too many directories: I prefer not, because it does not exactly reflect the size. The user will see them. But if you strongly suggest, I will try to do this.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 04:58:09 PM
Hello,

Thank you for thinking about this!

I agree that the count of directories does not reflect size.

and yeah it is a good idea to check of a directory exists and then increment the last numeric suffix.

could also add this as an option to enable or disable in the settings by default.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 06:28:36 PM
I did it. I made a snapshot announcement in the Snapshots section. The link, directly:

https://lalescu.ro/liviu/fet/download/test/

I don't add any kind of warning or setting. I hope the users will manage. I just increase the numbers and add new directories.

Please let me know what you think.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 06:42:23 PM
I tried it and it works perfectly in single and multi, good job 🥳
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 06:44:29 PM
Thank you! I only worry about users' disk space...
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 07, 2024, 06:59:22 PM
It is not a problem for me and I don't think it will be a problem for many people, also they can delete the old generated folders every now and then or at the end of each work cycle (semester etc). You can also add a setting for them to choose the default behaviour to overwrite or create new with suffix if you think it could help.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 07, 2024, 07:02:01 PM
Thank you! I hope, as you say, that users will understand this problem. I prefer no setting, to make the behavior universal.
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 08, 2024, 08:40:37 PM
Hello, pnlshd,

I just released the new official version, FET-6.26.0. Thank you for your useful suggestions!
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 08, 2024, 08:44:26 PM
Hello, Liviu,

Wow! Good to hear! Thank you for the great work as always :)
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 18, 2024, 06:31:49 PM
Hello, pnlshd,

I added today in the latest snapshot the possibility to add/remove tags with a single click. Please see the Snapshots section of the forum for download link.

Thank you for your suggestion!
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 19, 2024, 08:33:57 AM
Hello Liviu,

Thank you so much for doing this! I will see and let you know!
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: pnlshd on October 21, 2024, 01:22:20 PM
Hello Liviu,

I am sorry for the late reply.

I have just tested it and it is working perfectly! Thank you for taking the time to do this!
Title: Re: Bulk apply/remove a tag on a set of activities?
Post by: Liviu Lalescu on October 21, 2024, 01:30:19 PM
Hello, pnlshd,

You are welcome! Thank you!

I hope to release today or tomorrow the official version, FET-6.27.0.