fix (web): Prevent shared yearMonth reference corruption in asset upserts (updateObject)#26888
Conversation
|
Label error. Requires exactly 1 of: changelog:.*. Found: 🖥️web. A maintainer will add the required label. |
|
not sure whether its expected behavior or not but it was causing tests failure for my changes and according to tyoes in constructors its indeed been using incorrect values |
|
The tests are passing on main. |
|
p.s any better suggestions how to mitigate it? |
|
What is your dev environment look like? How does it trigger for you? |
|
updated comment above, but its not about dev env, more like it being unreliable somehow |
|
Yeah there were some flaky tests in the past |
|
nevermind my fix was correct, they do exist on the type but while passing it down as |
|
seems like the existence of a $state in ViewerAsset was covering this bug and it went unnoticeable for a while |
namely, AFIACT, this change is exactly equivalent to the current behavior, but you create two extra objects. |
|
yeah as you can see i did strike those parts
wouldnt have created pr if it was that |







Description
A typo?
Fixes # (issue)
How Has This Been Tested?
Screenshots (if appropriate)
Checklist:
src/services/uses repositories implementations for database calls, filesystem operations, etc.src/repositories/is pretty basic/simple and does not have any immich specific logic (that belongs insrc/services/)Please describe to which degree, if any, an LLM was used in creating this pull request.
...