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

   ### Task Summary
   
   Create user-dataset-list-item.component.spec.ts for 
frontend/src/app/dashboard/component/user/user-dataset/user-dataset-list-item/user-dataset-list-item.component.ts.
   
   Behavior to cover:
   - entry getter — throws "entry property must be provided…" when accessed 
before being set; returns the value once set.
   - dataset getter — returns entry.dataset when set; throws "Incorrect type of 
DashboardEntry provided…" when missing.
   - confirmUpdateDatasetCustomName — no-op when name unchanged; otherwise 
calls DatasetService.updateDatasetName(did, name), updates entry.dataset.name 
and sets editingName = false on success; on error calls 
NotificationService.error("Update dataset name failed") and still resets 
editingName.
   - confirmUpdateDatasetCustomDescription — same shape as above for 
description: no-op when unchanged, updates entry.dataset.description and resets 
editingDescription on success, shows "Update dataset description failed" on 
error.
   - onClickOpenShareAccess — opens ShareAccessComponent modal with nzData: { 
writeAccess: accessPrivilege === "WRITE", type: "dataset", id: did }, no 
footer, title "Share this dataset with others", centered.
   - Inputs/Outputs — verify editable input default false, and that deleted, 
duplicated, and refresh are wired as EventEmitters.
   
   ### 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