-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Increase visibility of the full tool list link #1409 #1420
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
hopefully, better now. If you still find query sub-optimal I can cache. |
@@ -46,6 +46,15 @@ def welcome #:nodoc: | |||
@default_data_provider = DataProvider.find_by_id(current_user.meta["pref_data_provider_id"]) | |||
@default_bourreau = Bourreau.find_by_id(current_user.meta["pref_bourreau_id"]) | |||
|
|||
@tool_count = Tool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This expression returns a completely different number of tools compared to current_user.available_tools
(which is used in the page to generate the table). In fact, right now my page says "out of 50" and yet the table lists 161 tools.
I think this should be changed to "@tool_names =" to generate a list of names, not just a count, and then the array_to_table in the page should use that array too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
see #1409 for details.