Feature #63
closedFeature #21: Enhance Matching Results and AI Assistant with Company Enrichment and Market Insights
[GetYourJob API] Market-insights proxy route to MatchingAgent
0%
Description
**Surface:** GetYourJob API routes (`GetYourJob/src/app/api/`) + infrastructure adapter (`GetYourJob/src/infrastructure/`).
## Description
Expose the MatchingAgent market-insights aggregates (#2) to the GetYourJob frontend via a Next.js API route, so the Market Insights UI (#5) and the assistant (#6) can consume them without calling MA directly.
- New API route (e.g. `GET/POST /api/market-insights`) that authenticates the session, forwards role/filter params to MatchingAgent (`MATCHING_AGENT_URL`), and returns the aggregate.
- Reuse the existing MatchingAgent adapter pattern (`MatchingAgentAdapter`).
- Cache results (Redis with in-memory fallback) keyed by role/filters to absorb the 100+ batch case.
Depends on #2. Blocks #5 and #6.
## Acceptance criteria
- [ ] `/api/market-insights` returns MatchingAgent aggregates for an authenticated session.
- [ ] Role/filter params are forwarded; unauthenticated requests are rejected.
- [ ] Responses are cached (Redis + in-memory fallback) keyed by role/filters.
- [ ] Adapter/route covered by a test (success + MA-unavailable fallback).
**Estimate:** S
RA Updated by Redmine Admin about 2 months ago
- Status changed from Submitted to In development
RA Updated by Redmine Admin about 2 months ago
- branch set to feat/redmine-21-insights-ui
- pr_url set to https://github.com/omdev-tech/GetYourJob/pull/239
🏁 done dev — ready for QA (reste In development).
#63 livré DANS la même PR que #61 : plus de proxy MatchingAgent (MA n'a pas le corpus d'offres), l'endpoint market-insights est entièrement côté GetYourJob (`GET /api/market-insights`), avec auth de session + cache (Redis + fallback mémoire) keyé par role/location. La partie « exposer l'agrégat au front avec auth + cache » de #63 est donc satisfaite par cet endpoint unique.
PR : https://github.com/omdev-tech/GetYourJob/pull/239 (base `dev`). CI Jenkins verte.
RA Updated by Redmine Admin about 2 months ago
RA Updated by Redmine Admin about 2 months ago
- Status changed from Preprod to Shipped
Livré en production avec l'épopée #21 (fusionné dans l'endpoint GYJ). Preprod → Shipped.