Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit a34247a2 authored by Marco Amoia's avatar Marco Amoia
Browse files

Merge branch 'hotfix' into 'main'

Enhanced query performance for API GET /onboarding-request

See merge request !109
parents d9e905de c0d8ee27
No related branches found
No related tags found
2 merge requests!126Update version to 1.2.0,!109Enhanced query performance for API GET /onboarding-request
Pipeline #254158 passed
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.0] - 2024-12-02
### Added
- Implemented scheduled task to reject stale onboarding requests.
- Added API endpoint to retrieve supported `mimeType` in `MimeTypeController`
- Created `EventLog` table.
### Changed
- Onboarding Request states are now managed using a `state machine`.
- Adjustment of the logical model aimed at introducing the state machine and improving integration with frontend developments.
- `OnboardingRequestService.create()` now takes an `OnboardingRequestDTO`.
- `Document` has `filename`, `filesize` and `hasContent` properties.
- `findInProgressWithExpiredTimeframe` now use `last_participant_update_timestamp`.
- Introduced a foreign key from `onboarding_request` to `onboarding_status`.
- `MimeTypeDTO.id` has been changed from long to UUID.
- Modified `mimetype` table.
- Modified `onboarding_status` table.
- `Rejection cause` for onboarding request rejection is now mandatory.
### Fixed
- Fixed event logging.
- Fixed `getActualMimeType` and `RejectDTO` validation.
- Fixed `OnboardingRequestController.create` response status.
- Fixed `CreationTimeStamp` saving in `OnboardingRequestService`.
- Fixed LazyInitializationException in `OnboardingRequestRepository`.
- Fixed `deleteDocument` operation in `DocumentService`.
- Fixed issues with `eventDetails` in `EventLog`.
## [0.7.0] - 2024-11-11
### Added
- Added `@Transactional` to `deleteDocument()`
- Added `participant_type` field
- Retrieve onboarding request by `id`
- Credential request event listener
- `setLastParticipantUpdateTimestamp` when user is `APPLICANT`
### Changed
- Create onboarding request on credential request
### Fixed
- Fix `OnboardingRequest` creation
- Fix `OnboardingRequestMapper`
- Fix `Document` creation
### Removed
- Remove `ParticipantType` enum
PROJECT_VERSION_NUMBER="1.0.0"
PROJECT_VERSION_NUMBER="1.0.1"
......@@ -5,9 +5,6 @@ import eu.europa.ec.simpl.onboarding.model.entities.*;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
......@@ -32,16 +29,6 @@ public interface OnboardingRequestRepository
@Override
Optional<OnboardingRequest> findById(UUID uuid);
@EntityGraph(
attributePaths = {
OnboardingRequest_.ONBOARDING_STATUS,
OnboardingRequest_.DOCUMENTS + "." + Document_.DOCUMENT_TEMPLATE + "." + DocumentTemplate_.MIME_TYPE,
OnboardingRequest_.PARTICIPANT_TYPE,
OnboardingRequest_.ONBOARDING_APPLICANT,
})
@Override
Page<OnboardingRequest> findAll(Specification<OnboardingRequest> spec, Pageable pageable);
@Query(
value =
"""
......
......@@ -33,6 +33,7 @@ import org.springframework.validation.annotation.Validated;
@Log4j2
@Service
@Validated
@Transactional(readOnly = true)
public class OnboardingRequestServiceImpl implements OnboardingRequestService {
private final JwtService jwtService;
......@@ -76,7 +77,6 @@ public class OnboardingRequestServiceImpl implements OnboardingRequestService {
var onboardingTemplate = onboardingTemplateService.findOnboardingTemplate(
onboardingRequestDTO.getParticipantType().getId());
// TODO pass the onboardingRequestDTO to mapper
var entity = onboardingRequestMapper.create(
createKeycloakUser(onboardingRequestDTO),
onboardingTemplate,
......
......@@ -5,7 +5,7 @@ spring:
password: onboarding
server:
port: 8084
port: 8080
logging:
config: classpath:log4j2-local.xml
......@@ -13,9 +13,6 @@ logging:
org:
hibernate:
SQL: debug
orm:
jdbc:
bind: trace
microservice:
users-roles:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment