-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat : switch from sql to mongodb for event publication storage #389
base: main
Are you sure you want to change the base?
Changes from 2 commits
595d95a
29bbb44
d4b5765
75e4487
a868411
ad8aa0a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,7 +137,7 @@ | |
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.modulith</groupId> | ||
<artifactId>spring-modulith-starter-jpa</artifactId> | ||
<artifactId>spring-modulith-starter-mongodb</artifactId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Migration to MongoDB is incomplete - JPA dependencies and entities still present The codebase still heavily relies on JPA/Hibernate with multiple entity classes using Jakarta Persistence annotations:
The change of dependency to 🔗 Analysis chainVerify complete migration from JPA to MongoDB While the Spring Modulith starter has been changed to MongoDB, there might be remaining JPA dependencies or code that needs to be updated. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check for any remaining JPA annotations or repositories
ast-grep --pattern 'import javax.persistence.$_'
ast-grep --pattern 'import jakarta.persistence.$_'
ast-grep --pattern '@Entity'
ast-grep --pattern 'extends JpaRepository'
# Check for any MongoDB related code to ensure proper migration
ast-grep --pattern 'import org.springframework.data.mongodb.$_'
ast-grep --pattern '@Document'
ast-grep --pattern 'extends MongoRepository'
Length of output: 16289 |
||
</dependency> | ||
<dependency> | ||
<groupId>org.mapstruct</groupId> | ||
|
@@ -206,6 +206,11 @@ | |
<artifactId>mongodb</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>grafana</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.redis.testcontainers</groupId> | ||
<artifactId>testcontainers-redis</artifactId> | ||
|
This file was deleted.
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.
Fix security vulnerabilities in mongo-express configuration
Several security and configuration issues need attention:
Apply these security fixes:
Create a
.env
file for sensitive credentials: