Skip to content

Conversation

@mmabrouk
Copy link
Member

Summary

Closes #3447

  • Remove legacy /api/testsets/* router and all 6 endpoints
  • Remove dead frontend code that was using legacy endpoints
  • Update E2E tests to use preview endpoints
  • Remove legacy testset tests from api and sdk

Changes

Backend

  • Remove testset_router.py and its mount in routers.py
  • Remove unused _validate_testset_limits import from evaluation_router
  • Update manual test to use preview endpoint

Frontend

  • Remove dead code: updateTestset, uploadTestsets, importTestsetsViaEndpoint, fetchTestset
  • Remove dead code: fetchAllComparisonResults, testsetCsvDataQueryAtomFamily
  • Update E2E tests to use /api/preview/testsets/query and /api/preview/simple/testsets/{id}

Legacy Endpoints Removed

  • POST /api/testsets/upload
  • POST /api/testsets/
  • PUT /api/testsets/{id}
  • GET /api/testsets/
  • GET /api/testsets/{id}
  • DELETE /api/testsets/

All testset operations now use preview endpoints (/api/preview/testsets/* and /api/preview/simple/testsets/*).

- Remove legacy router mount and testset_router.py
- Remove dead frontend code (updateTestset, uploadTestsets, importTestsetsViaEndpoint, fetchTestset)
- Remove fetchAllComparisonResults and testsetCsvDataQueryAtomFamily (dead code)
- Update E2E tests to use preview endpoints
- Remove legacy testset tests from api and sdk
- Update manual test to use preview endpoint

Legacy endpoints removed:
- POST /api/testsets/upload
- POST /api/testsets/
- PUT /api/testsets/{id}
- GET /api/testsets/
- GET /api/testsets/{id}
- DELETE /api/testsets/

All testset operations now use preview endpoints:
- POST /api/preview/simple/testsets/
- GET /api/preview/simple/testsets/{id}
- PUT /api/preview/simple/testsets/{id}
- POST /api/preview/testsets/query
- POST /api/preview/simple/testsets/upload
@vercel
Copy link

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jan 16, 2026 10:31am

Review with Vercel Agent

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jan 16, 2026
@mmabrouk mmabrouk requested a review from ardaerzin January 16, 2026 10:31
@mmabrouk mmabrouk requested a review from jp-agenta January 16, 2026 10:32
@bekossy bekossy changed the base branch from main to release/v0.77.4 January 16, 2026 10:41
@bekossy bekossy merged commit 8907c5b into release/v0.77.4 Jan 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Frontend size:XXL This PR changes 1000+ lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(api): remove legacy /api/testsets endpoints

4 participants