-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Place /stats routes behind login check, for performance reasons #9536
Conversation
await approval in #9002, but this is a pretty simple change!
Codecov Report
@@ Coverage Diff @@
## main #9536 +/- ##
=======================================
Coverage ? 81.35%
=======================================
Files ? 98
Lines ? 5928
Branches ? 0
=======================================
Hits ? 4823
Misses ? 1105
Partials ? 0 |
This probably broke some tests which expect to be able to get to |
Yes - changes needed on:
|
|
@@ -32,6 +35,7 @@ def setup | |||
end | |||
|
|||
test 'should load stats range query' do | |||
UserSession.create(users(:bob)) # we now require login for this page for load reasons | |||
get :index | |||
assert_response :success |
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.
why should this be a 302 redirect???
Hi Jeff, The functional one error was hopefully we are all green now 🤞 thanks |
Code Climate has analyzed commit bc97636 and detected 0 issues on this pull request. View more on Code Climate. |
…iclab#9536) * Place /stats routes behind login check, for performance reasons await approval in publiclab#9002, but this is a pretty simple change! * Update public_pages_test.rb * Update stats_controller_test.rb * Update stats_controller_test.rb * fix failing tests Co-authored-by: Cess <[email protected]>
…iclab#9536) * Place /stats routes behind login check, for performance reasons await approval in publiclab#9002, but this is a pretty simple change! * Update public_pages_test.rb * Update stats_controller_test.rb * Update stats_controller_test.rb * fix failing tests Co-authored-by: Cess <[email protected]>
await approval in #9002, but this is a pretty simple change!