The GitHub Actions job "Build and push images" on texera.git/main has failed.
Run started by GitHub user bobbai00 (triggered by bobbai00).

Head commit for run:
27b86aaca4e9e68136903d32e35faabfde26983f / carloea2 <[email protected]>
fix: Removing unnecessary user info returned from the backend (#4138)

### What changes were proposed in this PR?
Currently the endpoint `/api/workflow/owner_user/?wid=X` returns all the
information about the user, including name, email, etc. But the frontend
only needs the name. This PR limits the information returned from the
backend to the user name only.

The main changes are as follow:

1. Change the endpoint name from `/api/workflow/owner_user` to
`/api/workflow/owner_name`
2. Change the SQL query to only return name as plain text.
3. Change related uses of the endpoint in the frontend to match the new
signature.
4. Added a new `WorkflowResourceDashboardUserSpec` to test this endpoint
and support future testing of related endpoints.

### Any related issues, documentation, discussions?
No


### How was this PR tested?
Tests:
<img width="1778" height="429" alt="image"
src="https://github.com/user-attachments/assets/81b91d73-7396-4d97-a53f-80d4ed5ca724";
/>


Manually tested:
<img width="1348" height="658" alt="image"
src="https://github.com/user-attachments/assets/1aeba8b4-343c-407f-b1ef-ffc5b4afee1a";
/>



### Was this PR authored or co-authored using generative AI tooling?
No

Report URL: https://github.com/apache/texera/actions/runs/20587470379

With regards,
GitHub Actions via GitBox

Reply via email to