-
Notifications
You must be signed in to change notification settings - Fork 48
Message retention via document expiration with RavenDB 5 #3727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ugly but refactoring will come later ;-)
| msg.Status = args.Unresolved | ||
| delete msg['@metadata']['@expires'] | ||
| {ExpirationManager.DeleteExpirationFieldScript} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the examples on https://ravendb.net/docs/article-page/6.0/csharp/client-api/operations/patching/set-based it looks like the statements inside the update block are going to need semicolons
|
I'm a little concerned that the effort to try to isolate expiration behind an ExpirationManager is wasted and makes things more complex, not less. If you could do it cleanly, that'd be one thing, but there are 3 different ways to enable expiration and 2 different ways to cancel it, some of which work on the session and others that have to alter some javascript command string. It just seems really messy and error-prone. My vote would be to revert the last 2-ish commits. |
|
@DavidBoike I think there is still value in keeping all code connected to RavenDB 5 expiry management in a single class. My reasoning is:
|
No description provided.