Skip to content

Move Raven ID out of persisence contract - #5705

Open
rbev wants to merge 2 commits into
masterfrom
rhys/notifications
Open

Move Raven ID out of persisence contract#5705
rbev wants to merge 2 commits into
masterfrom
rhys/notifications

Conversation

@rbev

@rbev rbev commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

The current Notifications data store is stored as a singleton document in RavenDB, and is returned directly from the INotificationsManager. The Id field on this document is not used or relevant to consumers of this interface.

To remove this field from the contract this change implements a new internal class for Raven to persist, and removes the ID field from the returned object.

Testing Improvements:

  • Added a new test class NotificationsDataStoreTests with comprehensive tests to verify default values, round-trip persistence, field updates, and field preservation for notification settings. (src/ServiceControl.Persistence.Tests/NotificationsDataStoreTests.cs)
  • Removed inclusion of the new test file from SQL Server and PostgreSQL test project files as they will be implemented in a future change.

@rbev
rbev force-pushed the rhys/notifications branch from 0dc2f39 to 735dd16 Compare August 6, 2026 09:15
@rbev
rbev marked this pull request as ready for review August 7, 2026 00:55
@rbev rbev changed the title Move raven ID out of persisence contract Move Raven ID out of persisence contract Aug 7, 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.

1 participant