-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Feature/tags #512
Feature/tags #512
Conversation
@benjamonnguyen Maybe also add the new option by something like @simulot Can this be merged please? Thx! |
@tobiasgraeber updated the readme! |
Let's actually hold off on merging this. I'm seeing an issue where sometimes assets aren't being tagged. Opened an issue here: immich-app/immich#13633 |
I'm wondering if it possible to leverage the tagging system to track immich-go uploads, and implement a kind of UNDO. |
I can definitely see I can add the -tag-session flag to this PR. |
@simulot implemented tag-session flag: For now I've had to add a 5 second sleep. It looks like there's a race condition where the assets are being moved out of the upload directory into the library directory resulting in a stale path when the tagAssets request is made. Waiting on a response from the immich team. |
Nice!
Let's see how the discussion goes. |
Thinking loud: Using the path as tags makes sense, isn't it? |
Silly of me to not think of this considering it's what motivated this PR in the first place. My wife has her folder structure like
and simply providing a flag Running list of possible flags... |
…t race condition when tagging assets
@simulot Got a workaround from an immich maintainer (immich-app/immich#13637 (reply in thread)) If things look ok to you, I think it's mergeable |
How about a My existing archive has folders named If that's a bit esoteric it's no problem for me, as I'll just use a bash script to call immich-go for each folder separately, building the tags list for each folder as it goes. But either way, I'm keen to see this merged! :-) |
@agittins I think the 3 current flags covers our bases and a bash script leveraging them would be a cleaner |
@simulot after using it to upload and tag a few of my wife's albums, I think it'll be a cleaner CLI to break it out into its own |
This could be one of the maintenance tools that we can propose through immich-go fyi: I'm still on the code reorganization |
The immich-go next version is more mature now. |
Don't rush on it... I'm still shaking the code |
If you don't mind, do you have a summary of the direction your taking with this next branch? |
I'll move the changes onto the next branch but you can look at my latest commits if you want to see the new tag command's options and implementation. |
I changed completely the command line management. |
I'm ready to merge your PR. |
Are you going to merge next into main branch? |
Can we chat on discord? |
Sure can you link me to the channel? |
I'm reviewing your PR in details. 1/ I'm sorry for having shacked all the source while you have worked on it. My channel is @simulot, Paris time zone. |
Linking to #522 |
Description
UpsertTags
,TagAssets
,BulkTagAssets
, andSendJobCommand
immich endpoints.Verification
test command:
immich-go upload -tags="test" -tag-with-session -tag-with-path ~/test