Closed jonathanfallon closed 1 month ago
The recent updates significantly enhance the territory management capabilities within the application. Key changes include adjustments to input parameters, improved data handling for geographical selectors, and the introduction of a new repository specifically for territories. These enhancements streamline functionality and ensure accurate processing of territory-related data, ultimately improving the system's robustness and flexibility.
Files | Change Summary |
---|---|
api/src/pdc/services/company/providers/CompanyDataSourceProvider.integration.spec.ts |
Modified expected address value in a test case to enhance accuracy. |
api/src/pdc/services/export/ServiceProvider.ts |
Added TerritoryRepository to data access capabilities; adjusted order of services and repositories. |
api/src/pdc/services/export/actions/CreateActionV3.ts |
Updated middleware for territory_id and improved geo_selector resolution using asynchronous calls. |
api/src/pdc/services/export/commands/CreateCommand.ts |
Created geo_selector constant for structured geographical data handling, enhancing robustness in data processing. |
api/src/pdc/services/export/config/workbook.ts |
Added "cee_application" to exported fields , expanding the data model for workbooks. |
api/src/pdc/services/export/repositories/TerritoryRepository.ts |
Introduced new repository for territory selectors, including an interface and SQL query implementation for data retrieval. |
api/src/pdc/services/export/services/TerritoryService.ts |
Restructured parameters for territory resolution; added method for converting geo strings, enhancing clarity and functionality. |
api/src/shared/export/create.contract.ts |
Added optional territory_id property to ParamsInterfaceV3 , enabling specification of multiple territory IDs for greater flexibility. |
doc/docs/operateurs/exports-de-trajets.md |
Removed campaign_mode field from data representation, simplifying the model while retaining the incentive_type description. |
sequenceDiagram
participant User
participant TerritoryService
participant TerritoryRepository
User->>TerritoryService: Request territory data
TerritoryService->>TerritoryRepository: Retrieve territory selectors
TerritoryRepository-->>TerritoryService: Return territory data
TerritoryService-->>User: Provide territory information
🐰 In a meadow, I hop with glee,
Changes made, oh joy for me!
New territories, fields expand,
With every tweak, our dreams withstand.
Let's celebrate, with a joyful cheer,
More robust flows, the future's near! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
TerritoryRepository
for improved management of territory-related data.geo_selector
and associated methods in various services.Bug Fixes
Documentation
exports-de-trajets.md
document by removing thecampaign_mode
field for clearer incentive categorization.Chores
territory_id
property to theParamsInterfaceV3
for better flexibility in handling territory-related parameters.