Skip to content

Test - #42

Merged
hoangtuzami merged 29 commits into
mainfrom
test
May 7, 2026
Merged

Test#42
hoangtuzami merged 29 commits into
mainfrom
test

Conversation

@hoangtuzami

Copy link
Copy Markdown
Member

No description provided.

hoangtuzami and others added 29 commits April 9, 2026 03:55
- Added `ContractTerminatedEvent` to represent contract termination details.
- Implemented `deactivateHouseForUser` method in `HouseServiceImpl` to handle house deactivation logic for terminated contracts.
- Updated Kafka listener in `EContractEventConsumer` to consume `contract.terminated` events and trigger house deactivation.
- Enhanced `HouseService` interface with `deactivateHouseForUser` definition.
…re/createHouse

Handle contract termination event and deactivate house for tenant
- Updated `HouseController` to include pagination parameters in `GetAllHouses` endpoint.
- Modified `HouseService` and `HouseServiceImpl` to support paginated responses with `PageRequest` and `PageResponse`.
- Integrated `CachedPageService` to enable caching for paginated house data.
- Refactored `HouseRepository` to implement `JpaSpecificationExecutor` for dynamic filtering and querying.
- Added `loadPage` method in `HouseServiceImpl` for fetching filtered and paginated house data.
- Added `AppAccessChangedEvent` DTO for representing access change events.
- Implemented `PaymentEventListeners` to consume Kafka events related to payment restrictions.
- Introduced `setTenantAccessRestriction` in `HouseService` and `HouseServiceImpl` to update access restrictions based on payment status.
- Updated access status logic in `HouseServiceImpl` to include `PAYMENT_RESTRICTED` state.
- Enhanced `House` entity with a `paymentRestricted` field to store restriction status.
…re/createHouse

Handle app access restriction based on payment status
…ervice methods, and exception handling.

- Added `EContractEventConsumerTest` to validate event consumption for `MapUserToHouse` and `ContractTerminated` scenarios.
- Introduced `FunctionalAreaControllerTest` to ensure CRUD operations are handled correctly in `FunctionalAreaController`.
- Implemented `FunctionAreaServiceImplTest` to verify business logic for managing functional areas.
- Created `HouseControllerTest` to validate endpoints for house management, including keycloak integration simulation.
- Added `GlobalExceptionHandlerTest` to cover exception handling logic for various scenarios.
…, tests, and mappers

- Introduced `numberOfFloors` property in `House` and `CreateHouseRequest` classes.
- Updated service and gRPC logic to handle `numberOfFloors`.
- Adjusted test cases and repositories accordingly.
Session: 16a9c5b4-aa2f-41fc-97cb-74db68561f08
Session: 50c32280-47f1-4d46-b00c-83a8b6e5adff
Session: 16a9c5b4-aa2f-41fc-97cb-74db68561f08
Session: 50c32280-47f1-4d46-b00c-83a8b6e5adff
Session: 16a9c5b4-aa2f-41fc-97cb-74db68561f08
Session: 16a9c5b4-aa2f-41fc-97cb-74db68561f08
- Introduced `assetCount` field in `FunctionalAreaDto`.
- Updated mappers to ignore `assetCount` during mapping.
- Adjusted test cases and DTO construction methods.
- Enhanced gRPC logic to include manager ID in `GetRegionResponse`.
- Added centralized JSON logging configuration with Logback.
Session: 39bd9cb8-6a77-42c8-9df8-7ba39f9090df
…ion enhancements

- Introduced `HouseSubscription` entity, repository, and notification logic via Kafka.
- Added `ContractReplacedEvent` and `HouseStructure` enum for improved domain coverage.
- Introduced presigned URL generation for S3 file access.
- Enhanced `House` entity with new fields (`areaM2`, `structure`, land certificate details).
- Improved translation services with override support and auto-completion tests.
- Updated test cases for new and existing functionality.
- Adjusted scheduler and service logic to align with new changes.
- Introduced `ContractCancelledByTenantEvent` and `InspectionDoneNotifyEvent` classes.
- Updated Kafka consumer to handle new `contract.cancelled-by-tenant` and `contract.inspection.done` topics.
- Enhanced region-based house retrieval with staff inclusion and deduplication.
- Added advanced caching strategies for house-related operations.
@hoangtuzami
hoangtuzami merged commit 5f8ee41 into main May 7, 2026
1 check failed
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.

2 participants