Closed jonathanfallon closed 5 months ago
The recent updates focus on refining the project's configuration and codebase, particularly around the API and shared interfaces. Key adjustments include streamlining PM2 configurations, enhancing the S3 storage debugging capability, and shifting the operator identification method from SIRET numbers to UUIDs. These changes signify a move towards more efficient code management and a stronger emphasis on unique identifiers for operator management, improving both the development workflow and the system's reliability.
Files | Summary |
---|---|
.vscode/settings.json |
Commented out "api/**/dist": true . |
api/pm2-api.json , api/pm2-worker.json |
Updated script paths and simplified watch configurations. |
.../storage/S3StorageProvider.ts |
Reordered imports, removed duplicates, added debug log in list method. |
.../providers/OperatorPgRepositoryProvider.integration.spec.ts |
Added uuid field to a test object. |
.../services/policy/actions/FindAction.ts , .../ListAction.ts |
Shifted from SIRET to UUID for operator identification, updated permission error messages. |
shared/operator/common/interfaces/OperatorDbInterface.ts , .../OperatorInterface.ts |
Made uuid a required field in OperatorDbInterface , added uuid to OperatorInterface . |
"In the realm of code, where logic does play,
A rabbit hopped in, making changes today.
🐰 With a flick and a hop, configurations refine,
UUIDs in the spotlight, uniquely define.
Debug logs for clarity, paths now succinct,
Our rabbit's swift work, in code does imprint.
Celebrate we shall, for improvements are here,
In the digital burrow, progress is near."
shared/operator/common/interfaces/OperatorDbInterface.ts (1)
`5-5`: Making `uuid` a required property aligns with the shift towards using UUIDs for operator identification. Ensure all usages of `OperatorDbInterface` across the codebase are updated to provide a `uuid`.api/pm2-api.json (1)
`3-3`: The updates to the script path and watch configuration are appropriate and should help streamline the development and deployment process. Also applies to: 7-7api/pm2-worker.json (1)
`3-3`: The updates to the script path and watch configuration are consistent with best practices and should enhance the development and deployment process. Also applies to: 7-7shared/operator/common/interfaces/OperatorInterface.ts (1)
`10-10`: The addition of the `uuid` field is crucial for the shift towards using UUIDs for operator identification. Ensure consistency across all related interfaces and implementations..vscode/settings.json (1)
`43-43`: Commenting out `"api/**/dist": true` may adjust the development environment settings. Consider documenting the reason for this change to provide context for future developers.api/src/pdc/services/policy/actions/FindAction.ts (1)
`61-62`: Updating the permission check logic to use the operator's UUID instead of the SIRET number is a critical change that aligns with the shift towards UUIDs. Ensure thorough testing of the updated logic.api/src/pdc/services/policy/actions/ListAction.ts (1)
`71-71`: The update to use `operator.uuid` in the `withOperator` method aligns with the shift towards UUIDs. Ensure that all related filtering and permission checks across the system are updated accordingly.api/src/pdc/services/operator/providers/OperatorPgRepositoryProvider.integration.spec.ts (1)
`51-51`: The addition of the `uuid` field in the test object is necessary for consistency with the updated operator identification strategy. Ensure all relevant tests are updated accordingly.api/src/pdc/providers/storage/S3StorageProvider.ts (2)
`58-58`: Consider refining the logging strategy to ensure it's appropriate for all environments. Excessive logging can clutter log files and incur costs in production. Perhaps conditionally enable detailed logging based on the environment or a configuration setting. --- `9-18`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-11] Reordering imports and removing duplicates are good practices for improving code quality and maintainability. Keep up the good work!
fix de l'affichage des campagnes liés au passage à l'UUID
Summary by CodeRabbit