Closed cristianpb closed 3 months ago
The recent updates encompass enhancements across several files, including the introduction of new parameters in the SearchController
, adjustments from substr
to substring
for string manipulations, and improvements in date handling and validation logic. Additionally, a new function for calculating token set ratios has been added, along with some minor corrections and refactoring to improve code clarity and functionality.
Files | Change Summaries |
---|---|
backend/src/controllers/search.controller.ts |
Added birthPostalCode and deathPostalCode parameters to the SearchController class methods. |
backend/src/masks.ts |
Replaced substr with substring in dateRangeValidationMask and dateRangeTransformMask functions. |
backend/src/models/requestInput.ts |
Swapped definitions of birthPostalCode with birthLocationCode and deathCity with deathPostalCode in RequestBody . |
backend/src/processStream.ts |
Updated pbkdf2 function to use substring instead of substr for base64 digest extraction. |
backend/src/score.ts |
Updated import for fuzz , exported fuzzballTokenSetRatio , fixed typos, improved date handling, and enhanced personFromRequest . |
backend/src/score.spec.ts |
Added tests for fuzzballTokenSetRatio and parseYMD functions. |
In the code's deep warren, changes unfold, New paths for searches, parameters bold. Dates now parsed with a substring's grace, Postal codes and tokens find their place. Through each function, clarity flows, As the rabbit's code garden grows. 🌱🐇
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?
Update docstrings Update js methods
Summary by CodeRabbit
New Features
birthPostalCode
anddeathPostalCode
in search functionality.deathAge
handling in person request processing.Bug Fixes
Refactor
fuzz
library.Documentation