Skip to content

Conversation

@jcscottiii
Copy link
Collaborator

Introduces a clear distinction between features that are truly deleted from the database versus those that are simply no longer present in a given search result (which could be due to a move, split, or rename).

Previously, the reconciler would mark a feature as "Removed" and set its reason to "Deleted" if it no longer existed. This approach was ambiguous because the feature remained in the Removed list, which is primarily intended for features that might have been moved or split.

This change introduces a new Deleted slice to the FeatureDiff struct. The reconciler logic is updated to check for a feature's existence when it's reported as removed. If it returns an ErrEntityDoesNotExist, the feature is moved from the Removed list to the new Deleted list.

This ensures the Removed list now accurately contains only features that need to be further analyzed for potential moves or splits, making the diffing process more robust and the resulting data structure clearer.

@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt5 branch from cef0d8d to cd1eb5b Compare December 30, 2025 21:02
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt4 branch from d1662da to 3f34413 Compare January 14, 2026 02:18
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt5 branch from cd1eb5b to fb75ef4 Compare January 14, 2026 02:19
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt4 branch from 3f34413 to f13a762 Compare January 14, 2026 18:51
Base automatically changed from jcscottiii/email-worker-pt4 to main January 14, 2026 20:10
…features

Introduces a clear distinction between features that are truly deleted
from the database versus those that are simply no longer present in a
given search result (which could be due to a move, split, or rename).

Previously, the reconciler would mark a feature as "Removed" and set its
reason to "Deleted" if it no longer existed. This approach was
ambiguous because the feature remained in the `Removed` list, which is
primarily intended for features that might have been moved or split.

This change introduces a new `Deleted` slice to the `FeatureDiff` struct.
The reconciler logic is updated to check for a feature's existence when
it's reported as removed. If it returns an `ErrEntityDoesNotExist`, the
feature is moved from the `Removed` list to the new `Deleted` list.

This ensures the `Removed` list now accurately contains only features
that need to be further analyzed for potential moves or splits, making
the diffing process more robust and the resulting data structure clearer.
@jcscottiii jcscottiii force-pushed the jcscottiii/email-worker-pt5 branch from fb75ef4 to f392e33 Compare January 14, 2026 20:17
@jcscottiii jcscottiii enabled auto-merge January 14, 2026 20:17
@jcscottiii jcscottiii added this pull request to the merge queue Jan 14, 2026
Merged via the queue into main with commit 80c1974 Jan 14, 2026
8 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/email-worker-pt5 branch January 14, 2026 21:17
@jstenback jstenback mentioned this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants