##// 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.
marcink -
r2038:2bdf9d4d default
Show More
Name Size Modified Last Commit Author
/ rhodecode / model
validation_schema
__init__.py Loading ...
auth_token.py Loading ...
changeset_status.py Loading ...
comment.py Loading ...
db.py Loading ...
forms.py Loading ...
gist.py Loading ...
integration.py Loading ...
meta.py Loading ...
notification.py Loading ...
permission.py Loading ...
pull_request.py Loading ...
repo.py Loading ...
repo_group.py Loading ...
repo_permission.py Loading ...
scm.py Loading ...
settings.py Loading ...
ssh_key.py Loading ...
supervisor.py Loading ...
user.py Loading ...
user_group.py Loading ...
validators.py Loading ...