Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MontrealSergiy
Copy link
Contributor

@MontrealSergiy MontrealSergiy commented Aug 8, 2024

see #1409 for details.

Copy link
Member

@prioux prioux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

BrainPortal/app/controllers/portal_controller.rb Outdated Show resolved Hide resolved
BrainPortal/app/controllers/portal_controller.rb Outdated Show resolved Hide resolved
@MontrealSergiy MontrealSergiy changed the base branch from master to dev August 12, 2024 18:31
@MontrealSergiy
Copy link
Contributor Author

MontrealSergiy commented Aug 12, 2024

hopefully, better now. If you still find query sub-optimal I can cache.

@MontrealSergiy MontrealSergiy requested a review from prioux August 12, 2024 18:35
@prioux prioux changed the base branch from dev to master January 21, 2025 21:34
@@ -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
Copy link
Member

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.

Copy link
Member

@prioux prioux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make the list of tools and data sets more noticeable
2 participants