-
Notifications
You must be signed in to change notification settings - Fork 1.1k
INT-3337: MongoDbMessageStore refactoring
#1091
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
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.
I am not so sure the rename will be necessary.
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.
Why? My position to remove MongoDbMessageStore as redundant.
And when we will have just only ConfigurableMongoDbMessageStore, there might be a question: "And where is a plain MongoDbMessageStore? What is a reason to call it as 'Configurable', if there is no other implementation ?"
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.
I just don't see any compelling reason to inflict any pain on users; assuming they take heed of the deprecation, they will change their apps to use the configurable store; why would we force them to do another rename late? It just seems unnecessary to me.
I am not terribly concerned either way (whether we decide to do it or not), but I see no reason to include the ...will be renamed... in the JavaDocs.
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.
OK. I won't mind to leave it as is and don't rename.
If it is only one concern here, I'll push the fix soon.
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.
I didn't finish my review yet; let me take another look this morning.
|
Otherwise LGTM |
|
Pushed |
1 similar comment
|
Pushed |
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.
private ctor() ?
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.
Sure!
|
Pushed as we discussed privately:
|
JIRA: https://jira.spring.io/browse/INT-3337 * Introduce `MessageReadingMongoConverter` (similar to `MongoDbMessageStore.MessageReadingMongoConverter`) * Change tests to use `ConfigurableMongoDbMessageStore` with `MessageReadingMongoConverter`
* Add for `MessageDocumentMongoConverter` custom `converters` for all known `Message<?>` type * Add `MessageDocumentFields` * Add support to store/read `ErrorMessage`. As a trick for `Throwable` is selected (de)serializing converter
Add `_id` persistence field
|
Pushed |
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.
Maybe we should go ahead and rename as we discussed before MessageDocumentMongoConverter.
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.
Keep in mind here it has name MessageWrapper and we can't change the name for backward compatibility.
From other side MessageReadingMongoConverter is an inner class, so its name doesn't have value too.
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.
np;
|
Need to update the docs to reflect the differences between the 2 stores; currently
|
|
But we have in doc a difference comment. However I won't mind to add the note regarding removal in the future. |
|
Pushed |
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.
Do you get a warning for this? Eclipse doesn't complain when the @Id annotation is present.
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.
Yes, IDEA complains
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.
OK; LGTM; merging.
|
Merging with these fixes. |
|
Merged |
JIRA: https://jira.spring.io/browse/INT-3337
MessageReadingMongoConverter(similar toMongoDbMessageStore.MessageReadingMongoConverter)ConfigurableMongoDbMessageStorewithMessageReadingMongoConverter