##// END OF EJS Templates
goto-switcher: optimized performance and query capabilities....
goto-switcher: optimized performance and query capabilities. - Previous implementation had on significant bug. The use of LIMIT 20 was limiting results BEFORE auth checks. In case of large ammount of similarly named repositories user didn't had access too, the result goto search was empty. This was becuase first 20 items fetched didn't pass permission checks and final auth list was empty. To fix this we now use proper filtering for auth using SQL. It means we first check user allowed repositories, and add this as a filter so end result from database is already to only the accessible repositories.

File last commit:

r1:854a839a default
r2038:2bdf9d4d default
Show More
hg_diff_four_file_change_newline.diff
24 lines | 419 B | text/x-diff | DiffLexer
/ rhodecode / tests / fixtures / hg_diff_four_file_change_newline.diff
diff --git a/file b/file
new file mode 100644
--- /dev/null
+++ b/file
@@ -0,0 +1,1 @@
+file
diff --git a/file2 b/file2
new file mode 100644
--- /dev/null
+++ b/file2
@@ -0,0 +1,1 @@
+another line
diff --git a/file3 b/file3
new file mode 100644
--- /dev/null
+++ b/file3
@@ -0,0 +1,1 @@
+newline
diff --git a/file4 b/file4
new file mode 100644
--- /dev/null
+++ b/file4
@@ -0,0 +1,1 @@
+fil4
\ No newline at end of file