Skip to content
Snippets Groups Projects
Verified Commit 6d2cb660 authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer
Browse files

testing new transactional setting for tool creation on startup

parent 9f4dff0e
No related branches found
No related tags found
No related merge requests found
Pipeline #27512 passed
......@@ -64,7 +64,8 @@ class RepositoryService(
* Either creates or returns a repository entity based upon its
* opencode repository id.
*/
private fun getOrCreate(gitRepository: RepositoryCreateDto): RepositoryEntity {
@Transactional(readOnly = false, propagation = Propagation.MANDATORY)
fun getOrCreate(gitRepository: RepositoryCreateDto): RepositoryEntity {
logger.info("Checking if repository with ${gitRepository.id} exists")
var repo = repositoryRepository.findByProjectId(gitRepository.id)
if (repo == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.