fix: Correct project_id scoping in get_user_metadata and delete_project by Abhishek8108 · Pull Request #6248 · feast-dev/feast
ntkathole
changed the title
fix: correct project_id scoping in get_user_metadata and delete_project
fix: Correct project_id scoping in get_user_metadata and delete_project
get_user_metadata was filtering only by feature view name, allowing a
shared Snowflake registry to return user metadata from a different
project's feature view with the same name. Added project_id = '{project}'
to the WHERE clause, consistent with apply_user_metadata.
delete_project was interpolating a Project object into the SQL string
instead of the project name string, which would use __str__ of the object
rather than the actual name. Changed to use the `name` parameter directly.
Signed-off-by: Abhishek8108 <87538407+Abhishek8108@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters