Skip to content

Commit 7157ffa

Browse files
committed
Temporarily limit locations when creating sessions
There are 51k+ locations in the database after running the GIAS import. We can't display all of them at the same time, and instead should use something like an autocomplete that fetches locations from the server.
1 parent 3239897 commit 7157ffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/controllers/sessions/edit_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def set_steps
9595
end
9696

9797
def set_locations
98-
@locations = policy_scope(Location).order(:name)
98+
# TODO: Use an autocomplete instead.
99+
@locations = policy_scope(Location).order(:name).limit(100)
99100
end
100101

101102
def set_patients

0 commit comments

Comments
 (0)