Skip to content
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

Move SessionRepository classes to repository package #45

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

pvannierop
Copy link
Contributor

@pvannierop pvannierop commented Oct 11, 2021

Fixes #44

Removes SessionRepositoryImpl.java from session-service dependency jar, so that application context problems are avoided.

Edit:
The application context problem is caused by SessionRepositoryImpl.java requiring a MongoTemplate bean. The MongoTemplate bean is created when the application is configured to access a mongoDB instance. Because of this projects that merely require the domain information of session-service, are required to somehow to configure a MongoDB connection in order to create a MongoTemplate bean. The migration of SessionRepositoryImpl.java to a different package will avoid exporting this class in the domain/model jar so that the dependency will no longer require the application to create a MongoTemplate bean.

Removes it from session-service dependency jar, so that application context
probles are avoided.
Copy link
Member

@inodb inodb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - what are some of the application context problems u mentioned in the description?

@pvannierop
Copy link
Contributor Author

@inodb Comment added to description.

pvannierop added a commit to pvannierop/cbioportal that referenced this pull request Oct 12, 2021
pvannierop added a commit to pvannierop/cbioportal that referenced this pull request Dec 15, 2021
pvannierop added a commit to pvannierop/cbioportal that referenced this pull request Dec 15, 2021
pvannierop added a commit to pvannierop/cbioportal that referenced this pull request Dec 15, 2021
@Luke-Sikina
Copy link
Member

What verification should we do before we merge this?

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.

SessionRepositoryImpl.java should not be included in the model dependency jar
3 participants