bobbai00 opened a new issue, #5749:
URL: https://github.com/apache/texera/issues/5749

   ### Task Summary
   
   Part of #5747 — depends on #5748.
   
   Isolate the `agent-service` HTTP clients behind clear, single-purpose 
modules and route them through the centralized endpoint config from #5748.
   
   **Scope**
   - Rename for clarity:
     - `src/api/compile-api.ts` → `compile-client.ts`
     - `src/api/execution-api.ts` → `operator-metadata-client.ts`
     - `src/api/workflow-api.ts` → `workflow-client.ts`
   - Add `src/api/execution-client.ts` (workflow-execution HTTP calls).
   - Rewire `src/api/index.ts` exports.
   - Switch all clients to `getServiceEndpoints()` from `config/endpoints`.
   - Add client unit tests: 
`{compile,execution,operator-metadata,workflow}-client.test.ts`.
   
   **Why**
   Separates HTTP concerns per backend service, makes endpoints 
injectable/testable, and removes ad-hoc env reads scattered across the clients.
   
   **Acceptance**
   - `agent-service` builds; new client tests pass.
   - No behavior change beyond the rename/rewire.
   
   ### Task Type
   - [x] Refactor / Cleanup
   - [x] Testing / QA
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to