-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Merge pull request #242 from pagopa/release-dev
feat: Release dev
- Loading branch information
Showing
23 changed files
with
218 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/it/gov/pagopa/admissibility/config/AdmissibilityErrorManagerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package it.gov.pagopa.admissibility.config; | ||
|
||
import it.gov.pagopa.admissibility.utils.OnboardingConstants; | ||
import it.gov.pagopa.common.web.dto.ErrorDTO; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class AdmissibilityErrorManagerConfig { | ||
|
||
@Bean | ||
ErrorDTO defaultErrorDTO() { | ||
return new ErrorDTO( | ||
OnboardingConstants.ExceptionCode.GENERIC_ERROR, | ||
"A generic error occurred" | ||
); | ||
} | ||
|
||
@Bean | ||
ErrorDTO tooManyRequestsErrorDTO() { | ||
return new ErrorDTO(OnboardingConstants.ExceptionCode.TOO_MANY_REQUESTS, "Too Many Requests"); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/main/java/it/gov/pagopa/admissibility/connector/repository/DroolsRuleRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package it.gov.pagopa.admissibility.connector.repository; | ||
|
||
import it.gov.pagopa.admissibility.model.DroolsRule; | ||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository; | ||
import it.gov.pagopa.common.reactive.mongo.ReactiveMongoRepositoryExt; | ||
|
||
/** | ||
* it will handle the persistence of {@link it.gov.pagopa.admissibility.model.DroolsRule} entity*/ | ||
public interface DroolsRuleRepository extends ReactiveMongoRepository<DroolsRule, String> { | ||
public interface DroolsRuleRepository extends ReactiveMongoRepositoryExt<DroolsRule, String> { | ||
} |
4 changes: 2 additions & 2 deletions
4
...n/java/it/gov/pagopa/admissibility/connector/repository/InitiativeCountersRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package it.gov.pagopa.admissibility.connector.repository; | ||
|
||
import it.gov.pagopa.admissibility.model.InitiativeCounters; | ||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository; | ||
import it.gov.pagopa.common.reactive.mongo.ReactiveMongoRepositoryExt; | ||
|
||
/** | ||
* it will handle the persistence of {@link InitiativeCounters} entity*/ | ||
public interface InitiativeCountersRepository extends ReactiveMongoRepository<InitiativeCounters, String>, InitiativeCountersReservationOpsRepository { | ||
public interface InitiativeCountersRepository extends ReactiveMongoRepositoryExt<InitiativeCounters, String>, InitiativeCountersReservationOpsRepository { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/it/gov/pagopa/common/reactive/mongo/ReactiveMongoRepositoryExt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package it.gov.pagopa.common.reactive.mongo; | ||
|
||
import com.mongodb.client.result.DeleteResult; | ||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository; | ||
import org.springframework.data.repository.NoRepositoryBean; | ||
import reactor.core.publisher.Mono; | ||
|
||
@NoRepositoryBean | ||
public interface ReactiveMongoRepositoryExt<T, ID> extends ReactiveMongoRepository<T, ID> { | ||
Mono<DeleteResult> removeById(ID id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.