Closed jonathanfallon closed 4 months ago
This update primarily focuses on the renaming of the demande_cee
field to cee_application
across various components, enhancing the clarity and consistency of data representation related to CEE applications. Additionally, it updates API documentation titles and introduces a new section for exporting trip data, aligning with the latest versioning and providing detailed export schemas.
Files | Summary |
---|---|
api/.../export/models/CarpoolRow.ts api/.../export/repositories/queries/CarpoolListQuery.ts |
Renamed demande_cee field to cee_application for improved semantic clarity. |
doc/docs/.vuepress/config.js |
Updated API documentation titles and added a new entry for trip exports. |
doc/docs/operateurs/exports-de-trajets.md |
Introduced schemas for exporting trips, highlighting the transition to version 3.0. |
🐇✨
In fields of code where data hops around,
A change was made, a better name found.
Fromdemande_cee
tocee_application
, we leap,
In documentation, a promise to keep.
With every update, our journey's more bright,
Under the moon's soft, guiding light.
🌟🐾
api/src/pdc/services/export/models/CarpoolRow.ts (3)
`68-68`: Renaming `demande_cee` to `cee_application` improves clarity and consistency. Ensure all references to this field across the codebase are updated accordingly. --- Line range hint `107-109`: Consider implementing the transformation logic for dates as indicated by the TODO comment, or remove the comment if not applicable. --- Line range hint `125-127`: When adding a new field, throwing a generic `Error` is used. Consider using or creating a more specific error type for better error handling and debugging.doc/docs/.vuepress/config.js (3)
`32-32`: Updating the title to "Référence API V3.0" enhances clarity and versioning information for API documentation. --- `36-36`: Updating the title to "Référence API V2.0 (dépréciée)" clearly indicates the deprecated status of the API version. --- `39-42`: Adding a new section "Exports de trajets" is a valuable addition for users needing export functionality documentation. Ensure the content is comprehensive and up-to-date.api/src/pdc/services/export/repositories/queries/CarpoolListQuery.ts (3)
`70-70`: Renaming `demande_cee` to `cee_application` in the query aligns with the renaming in the data model, ensuring consistency across the codebase. --- `203-203`: Ensure that all references to the renamed field `cee_application` in downstream processing are updated to reflect this change. --- `67-73`: > :memo: **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [1-203] Review the SQL query performance, especially for joins and JSONB functions. Consider adding comments about performance considerations and ensure that appropriate indexes are in place for the used columns.doc/docs/operateurs/exports-de-trajets.md (3)
`14-14`: Check consistency of "passager" terminology. Ensure the term "passager" is consistently used throughout the document to avoid confusion. --- `40-40`: Consider rephrasing for clarity. The description of latitude and longitude precision could be rephrased for better clarity. Consider specifying the precision requirements more clearly, especially regarding the distinction between dense and less dense areas. --- `90-92`: Deprecated schema notice. Highlighting the deprecation of schema v2.0 and recommending the use of v3.0 is good practice for guiding users towards more current standards.
Ajout de la spec de l'export dans la doc opérateurs
Summary by CodeRabbit
Refactor
demande_cee
field tocee_application
in carpool data structures and queries, enhancing semantic clarity.Documentation