File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ def _get_cached_api_key_path():
342
342
def _prompt_project (valid_connection , project , is_app ):
343
343
if project is None :
344
344
if is_app :
345
+ print ("on app" )
345
346
# On Serverless we filter out projects owned by other users to make sure automatic login
346
347
# without a prompt still happens when users add showcase projects created by other users
347
348
saas_projects = valid_connection ._project_api ._get_owned_projects ()
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ def _get_owned_projects(self):
45
45
# Raises
46
46
`hopsworks.client.exceptions.RestAPIError`: If unable to get the project teams
47
47
"""
48
+ print ("getting user owned projs" )
48
49
project_team_json = self ._get_project_teams ()
49
50
projects = []
50
51
if project_team_json :
@@ -53,8 +54,11 @@ def _get_owned_projects(self):
53
54
# Until there is a better solution this code is used to get the current user_id to check project ownership
54
55
current_user_uid = project_team_json [0 ]['user' ]['uid' ]
55
56
for project_team in project_team_json :
57
+ print (current_user_uid )
58
+ print (project_team ["project" ]["owner" ]["uid" ])
56
59
if project_team ["project" ]["owner" ]["uid" ] == current_user_uid :
57
60
projects .append (self ._get_project (project_team ["project" ]["name" ]))
61
+ print (projects )
58
62
return projects
59
63
60
64
You can’t perform that action at this time.
0 commit comments