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

   ### Task Summary
   
   `WorkflowResource` 
(`amber/src/main/scala/org/apache/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala`,
 codecov ~44%) has a `WorkflowResourceSpec` on `MockTexeraDB`, but ~24 of its 
jOOQ endpoints are untested. Extend it. Only the three cover-image methods 
touch `DocumentFactory` (storage) — scope those out.
   
   ### Behavior to add
   
   In the existing `MockTexeraDB`-backed spec, seed users + workflows via DAOs 
and cover the DB endpoints:
   
   - CRUD: `createWorkflow` / `persistWorkflow` / `retrieveWorkflow` / 
`deleteWorkflow` / `duplicateWorkflow` / `cloneWorkflow` — persist and read 
back; assert ownership.
   - Listing / lookup: `retrieveWorkflowsBySessionUser` / `retrieveIDs` / 
`retrieveOwners` / `getOwnerName` / `getWorkflowName` / `getWorkflowType` / 
`getWorkflowDescription` / `getSize` / `workflowExistsInDb` / 
`searchWorkflowByOperator` — assert the rows for seeded data (empty and 
populated).
   - Mutations: `updateWorkflowName` / `updateWorkflowDescription` / 
`makePublic` / `makePrivate` — the change round-trips; `retrievePublicWorkflow` 
returns only public ones.
   
   Out of scope (storage): `getCoverImage` / `setCoverImage` / 
`deleteCoverImage` (they go through `DocumentFactory`).
   
   ### Task Type
   - [ ] Refactor / Cleanup
   - [ ] DevOps / Deployment / CI
   - [x] Testing / QA
   - [ ] Documentation
   - [ ] Performance
   - [ ] Other
   


-- 
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