Closed P3rceval closed 2 months ago
[!CAUTION]
Review failed
The pull request is closed.
The changes encompass updates to various files, including modifications to a GitHub Actions workflow for security scanning, enhancements to the ListAction
class with new logic for operator UUID checks, and the introduction of an allTimeOperators
property in multiple policy classes and interfaces. Additionally, minor formatting corrections were made to SQL query strings in various scripts and notebooks to ensure proper syntax.
Files | Change Summary |
---|---|
.github/workflows/analysis.yml |
Replaced security scanning action and removed a parameter. |
api/src/pdc/services/policy/actions/ListAction.ts |
Modified logic for checking operator UUID inclusion with fallback handling. |
api/src/pdc/services/policy/actions/ListAction.unit.spec.ts |
Introduced unit tests for the ListAction class, validating the handle method under different conditions. |
api/src/pdc/services/policy/engine/policies/20210520_IDFM.ts |
Added allTimeOperators property to IDFMPeriodeNormale2021 class for aggregated operator data. |
api/src/pdc/services/policy/engine/policies/20240101_PaysDeLaLoire.ts |
Added allTimeOperators property to PaysDeLaLoire2024 class for aggregated operator data. |
api/src/pdc/services/policy/interfaces/engine/PolicyInterface.ts |
Introduced optional allTimeOperators property in PolicyHandlerParamsInterface . |
api/src/shared/policy/common/interfaces/PolicyInterface.ts |
Added optional allTimeOperators property to PolicyInterface . |
notebooks/scripts/distance_duration_anomalycheck.py |
Corrected SQL update query string syntax. |
notebooks/scripts/notebooks/distance_duration_anomalycheck.ipynb |
Adjusted SQL update query string syntax. |
notebooks/scripts/notebooks/temporal_overlap_anomalycheck.ipynb |
Adjusted SQL update query string syntax. |
notebooks/scripts/temporal_overlap_anomalycheck.py |
Corrected SQL update query string syntax. |
sequenceDiagram
participant User
participant CI/CD
participant SecurityScanner
participant PolicyHandler
User->>CI/CD: Push changes
CI/CD->>SecurityScanner: Trigger security scan
SecurityScanner-->>CI/CD: Return scan results
CI/CD->>PolicyHandler: Execute policy actions
PolicyHandler-->>CI/CD: Return policy results
CI/CD-->>User: Notify results
🐰 "In the meadow, changes bloom,
New paths for policies to zoom.
Operators gathered, all in line,
A safer world, oh how divine!
With tests to keep our code so bright,
Hoppy days are now in sight!" 🌼
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
allTimeOperators
to enhance operator data management in policy handling.ListAction
class to validate policy retrieval logic.