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

   ### What happened?
   
   ### What went wrong?
   
   `<texera-filters>` is shared by the Workflows, Datasets and hub result 
pages, but it always sourced
   its Owner and ID dropdowns from `WorkflowPersistService`. On the Datasets 
pages that means both
   dropdowns show workflow data.
   
   Root cause: 
[`filters.component.ts:186-198`](https://github.com/apache/texera/blob/main/frontend/src/app/dashboard/component/user/filters/filters.component.ts#L186)
   hardcodes `workflowPersistService.retrieveOwners()` and 
`retrieveWorkflowIDs()`, and the component
   has no input saying which resource kind the page is filtering.
   
   ```
   Before:  Datasets page -> filters -> workflowPersistService.retrieveOwners() 
     -> workflow owners
                                     -> 
workflowPersistService.retrieveWorkflowIDs() -> workflow IDs
   
   After:   Datasets page -> filters -> datasetService.retrieveOwners()         
     -> dataset owners
                                     -> (no dataset-ID endpoint) -> ID dropdown 
hidden
   ```
   
   User-visible symptoms:
   
   | Where | Symptom |
   | --- | --- |
   | Your Work → Datasets | Owner dropdown lists owners who have workflows, not 
owners who have datasets. Picking one filters datasets by a name that may own 
no dataset at all. |
   | Your Work → Datasets | An "ID" dropdown offers workflow IDs. Selecting one 
filters datasets by a workflow ID, so the result is normally empty. |
   | Hub → Datasets results | Same, via `hub-search-result.component.html`. |
   
   The Workflows page and the unified search page are correct today and must 
stay unchanged.
   
   
   ### How to reproduce?
   
   1. Sign in as a user who can see datasets owned by someone with no workflows.
   2. Go to Your Work → Datasets.
   3. Open the Owner dropdown (the person icon): it lists workflow owners.
   4. Open the ID dropdown (the ordered-list icon): it lists workflow IDs.
   
   <img width="1235" height="556" alt="Image" 
src="https://github.com/user-attachments/assets/8969f8c9-3d03-407c-aa6b-01c67d3993f7";
 />
   
   <img width="1239" height="533" alt="Image" 
src="https://github.com/user-attachments/assets/c1706987-29fc-4630-9e8e-566dc0991e03";
 />
   
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   _No response_
   
   ### What browsers are you seeing the problem on?
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   
   ```


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