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.

…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 cef0d8d to cd1eb5b Compare December 30, 2025 21:02
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.

1 participant