File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
renku/ui/service/controllers Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ def _fast_op_without_cache(self):
54
54
if "git_url" not in self .context :
55
55
raise RenkuException ("context does not contain `git_url`" )
56
56
57
+ token = self .user .token if hasattr (self , "user" ) else self .user_data .get ("token" )
58
+
59
+ if not token :
60
+ # User isn't logged in, fast op doesn't work
61
+ return None
62
+
57
63
with tempfile .TemporaryDirectory () as tempdir :
58
64
tempdir_path = Path (tempdir )
59
65
self .git_api_provider .download_files_from_api (
@@ -93,6 +99,9 @@ def to_response(self):
93
99
except BaseException as e :
94
100
service_log .info (f"fast gitlab checkout didnt work: { e } " , exc_info = e )
95
101
result = self .execute_op ()
102
+ else :
103
+ if result is None :
104
+ result = self .execute_op ()
96
105
97
106
result_dict = asdict (result )
98
107
You can’t perform that action at this time.
0 commit comments