Skip to content

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Oct 31, 2024

Fixes #15302

The subquery on the users table was incorrectly using the username from the workspaces table, not the users table.

This passed sqlc-vet because the column did exist in the query, it just was not the correct one.


Note: If we do not care about deleted users, we can drop querying the Users table at all and use the owner_username on the workspaces. But then we'd get deleted users with the same name 😢

@Emyrk Emyrk changed the title chore: add unit test to verify filter by owner name fix: workspaces query to correctly user username from users table Oct 31, 2024
@Emyrk Emyrk marked this pull request as ready for review October 31, 2024 13:59
@Emyrk Emyrk requested a review from johnstcn October 31, 2024 13:59
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamp 👍

@Emyrk Emyrk merged commit 9d03e04 into main Oct 31, 2024
25 checks passed
@Emyrk Emyrk deleted the stevenmasley/workspace_owner_name_filter branch October 31, 2024 16:33
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail to query workspaces by owner name
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy