Actions
dev #2957
opendev #2956: [Module] Sprint 13
[BE] Implement feedbacks on trending, recommendation apis, and tool type names
Description
Summary¶
This introduces enhancements to the tools functionality by integrating interval-based logic for both trending and personalized recommendations. It also updates tool type naming across seed data and controllers to ensure consistency. This also updates the validateZodSchema middleware to give more detailed error response.
Changes¶
-
Middleware
- Updated
validateZodSchemamiddleware to provide more detailed error messages.
- Updated
-
Trending Tools
- Added
intervaloption in the controller. - Added
intervalInDaysas an optional query parameter. - Added
intervalInDaysin the commontoolValidation.tsfile which is used to validate query params for get all tools, search, trending, and recommendation apis. - Updated
variables.tswith new weights to calculate trending score.
- Added
-
Recommendations
- Incorporated
intervallogic inside the recommendation scoring function. - Passed
intervalInDaysas a parameter to worker functions for trending and recommendation processing.
- Incorporated
-
Tool Types
- Updated seed data with revised tool type names.
- Renamed
seedCategoriesfunction toseedToolTypesfor clarity and consistency. - Updated prompt for Gemini inside the search controller to align with new tool type names.
Actions