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

   ### Task Summary
   
   Create user-dataset.component.spec.ts for 
frontend/src/app/dashboard/component/user/user-dataset/user-dataset.component.ts.
   
   Behavior to cover:
   
   - User state tracking — isLogin and currentUid update when 
UserService.userChanged() emits.
   - ngAfterViewInit — subscribes to userChanged() and calls search() on 
emission.
   - search (filterScope variants): 
     - "private" (default) → isLogin passed through, includePublic = false.
     - "public" → isLogin = false, includePublic = true.
     - "all" → isLogin passed through, includePublic = true.
   - search call shape — invokes SearchService.executeSearch(keywords, 
filterParams, start, count, "dataset", sortMethod, isLogin, includePublic) via 
searchResultsComponent.reset(...) then loadMore().
   - Mismatch warning — when search result has hasMismatch = true, sets 
this.hasMismatch and calls NzMessageService.warning (4000ms duration) with the 
mismatch message.
   - onClickOpenDatasetAddComponent — opens UserDatasetVersionCreatorComponent 
modal with isCreatingVersion: false; on close with a non-null result, navigates 
to
   ${DASHBOARD_USER_DATASET}/${dashboardDataset.dataset.did}.
   - deleteDataset — no-op when entry.dataset.dataset.did is undefined; 
otherwise calls DatasetService.deleteDatasets(did) and filters the deleted 
entry out of searchResultsComponent.entries.
   
   
   ### 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