Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to purge vFolder record when the owner user is deleted #3383

Open
fregataa opened this issue Jan 6, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #3388
Open

Unable to purge vFolder record when the owner user is deleted #3383

fregataa opened this issue Jan 6, 2025 — with Lablup-Issue-Syncer · 0 comments · May be fixed by #3388
Assignees

Comments

@fregataa
Copy link
Member

fregataa commented Jan 6, 2025

In the VFolder purge API, it's set up to look up records using query_accessible_vfolders() and return 'VFolder Not Found' if nothing is found. query_accessible_vfolders() performs an inner join between the vfolders table and users table when querying VFolder records. When a user is removed, this inner join prevents VFolder records from being queried.

  • Don't call query_accessible_vfolders() in the purge API, instead query directly by folder ID (purge API is admin-only)
  • Change the vfolders users table join in query_accessible_vfolders() to a left outer join
  • any ideas?
@fregataa fregataa self-assigned this Jan 6, 2025
@fregataa fregataa linked a pull request Jan 7, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant