apache / apache/texera

refactor(agent-service): centralize backend DTOs, metadata, endpoint config, and auth

Open
#5,748 0 comments 0 reactions 1 assignee Claimed by @bobbai00 View on GitHub
agent-service refactor
Dominant language
Scala
Stars
314
Forks
187
Avg merge
1d 21h
Merged PRs (30d)
214

Description

### Task Summary

Centralize the agent-service type/config layer (no runtime behavior change): backend request/response DTOs into `types/dto.ts`, operator-metadata types into `types/metadata.ts`, backend base URLs into `config/endpoints.ts`, and the JWT helpers into `auth/jwt.ts`. Replace `any` with precise types and consume the centralized types at the call sites; expand unit-test coverage.

Part of #5747. Implemented by #5928.

### Task Type

- [x] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [x] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.