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

Add simple query to member manager index when no filters selected #20770

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

PhilipHow
Copy link
Contributor

@PhilipHow PhilipHow commented Mar 14, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This replaces the existing query for member manager with a simplified one when no filters are selected (i.e. when it is first accessed) in a hope it speeds up the initial page load.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: Small change to the controller
  • I need help with writing tests

Comment on lines 369 to 370

def set_user_details
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [rubocop] <Layout/EmptyLines> reported by reviewdog 🐶
Extra blank line detected. (https://rubystyle.guide#two-or-more-empty-lines)

Suggested change
def set_user_details
def set_user_details

Copy link
Contributor

github-actions bot commented Mar 14, 2024

Uffizzi Ephemeral Environment Deploying

☁️ https://app.uffizzi.com/github.com/forem/forem/pull/20770

⚙️ Updating now by workflow run 8708928334.

What is Uffizzi? Learn more!

@PhilipHow PhilipHow changed the title [WIP] Add simple query to member manager index when no filters selected Add simple query to member manager index when no filters selected Apr 11, 2024
@PhilipHow PhilipHow marked this pull request as ready for review April 11, 2024 13:09
@PhilipHow PhilipHow requested a review from a team as a code owner April 11, 2024 13:09
@PhilipHow PhilipHow requested review from lightalloy and maestromac and removed request for a team April 11, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant