It could be great having an option to apply a new tagging rule to existing content.
It would better be a command I think. This kind of action could be quite long if people have a lot of entries.
But regarding wallabag.it (people can't launch a cli command on it) I think we should add:
This command already exists, right?
bin/console wallabag:tag:all -e=prod
Can confirm that @nicosomb was correct, the following worked on my Docker instance:
DOCKER_IMAGE_NAME=wallabag
WALLABAG_USERNAME=jamietanna
docker exec $DOCKER_IMAGE_NAME /var/www/wallabag/bin/console wallabag:tag:all -e=prod $WALLABAG_USERNAME
However, it would be great if this could be exposed via the web UI such that users who don't have shell+Docker access are able to apply these tagging rules themselves.
But launching a command from the UI isn't the recommend way to do that.
Maybe we can use a queue to handle tagging rule changes and re-apply rules on each update (by publishing a new message).
So, user won't have to trigger the system itself, it'll be automatic.
Agreed we wouldn't want to be shelling out if we can avoid it - the running of the command can be a workaround for now.
Having it automatic would be nice.
Maybe we can use a queue to handle tagging rule changes and re-apply rules on each update (by publishing a new message).
But that could be very long, isn't it ?
And slow down the process of adding multiple tagging rules.
edit: I just tried with ~1,000 articles. It took 5 seconds (on a Raspberry Pi 3, idle state).
Most helpful comment
This command already exists, right?
bin/console wallabag:tag:all -e=prod