Server: Resolves #16132: Publishing/syncing an old note (serialized before the trash feature) throws Missing property "deleted_time" - #16175
Conversation
|
But also why is the introduction of the notebook publishing feature causing this bug? Is there maybe a code path that shouldn't exist, or that could be tweaked? What exactly is making it throw here? The problem with silently ignoring items without a |
In #15276, I called itemIsInTrash which wasn't used anywhere else before in A note object reaches
So I keep the |
|
So is there a better solution than what you are currently proposing? |
This reverts commit 23622b3.
I spoke with Henry today and we come to the conclusion that it is indeed better to keep the guard as it was before but just make sure to default I pushed the new changes |
It might be better to use the "Server" prefix, so that this change shows up in the server changelog, rather than the client application changelogs. |
Indeed the title was more adapted to my initial fix. I updated it |
Resolves #16132
My change was simple I just made sure old notes with no
deleted_timefield don't crash the trash/read-only check. A missingdeleted_timenow means "not in trash" instead of throwing.I also added two tests. Both use an old note that has no
deleted_timefield:false.itemIsInTrashdoes not throw and returnsfalse.