-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cassandra Chat Memory: Fixed message order #2839
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
base: main
Are you sure you want to change the base?
Cassandra Chat Memory: Fixed message order #2839
Conversation
Signed-off-by: Linar Abzaltdinov <[email protected]>
Signed-off-by: Linar Abzaltdinov <[email protected]>
…ontainer by actual one Signed-off-by: Linar Abzaltdinov <[email protected]>
@michaelsembwever @tzolov As main contributor/reviewer of CassandraChatMemory feature, could you please take a look at this PR? |
|
||
import java.time.Duration; | ||
import java.util.List; | ||
import java.util.UUID; |
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.
is it correct to move import java…
down to here ?
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.
Well, that's how Intellij IDEA orders imports by default.
Didn't know about code style guide of Spring projects.
Reordered as it described in https://github.com/spring-projects/spring-framework/wiki/Code-Style
Signed-off-by: Linar Abzaltdinov <[email protected]>
Fixes issue #2815
This PR solves problem with message ordering:
CassandraChatMemory fetches rows in DESC order (by message_timestamp), and MessageChatMemoryAdvisor get and add all messages in that order - from last to first. So messages list needs to be reversed.
Same problem of JDBC Chat Memory solved here #2781