#477 Make all parts of hubs require login
Merged by abompard. Opened by ryanlerch.
ryanlerch/fedora-hubs always-login  into  develop

Download 477.patch

This makes everything in hubs require the user to login,
except for the new index.html page that provides a brief
overview of hubs, and login / signup links.

This also comments out the IRC icon in the topbar too.

fixes #473 #471

rebased onto c6a74f99234972d0352c65c0165925bc83ed6e21

just updated the commit to fix the tests that were broken

g.auth should always be defined (that's in hubs.app.check_auth), did you run into a case where it's not defined?

On Fri, 1 Dec 2017 at 8:22 pm, Aurelien Bompard pagure@pagure.io wrote:

abompard commented on the pull-request: Make all parts of hubs require login that you are following:
g.auth should always be defined (that's in `hubs.app.check_auth`), did you run into a case where it's not defined?

Yeah. A couple tests were failing due to it not being defined.

To reply, visit the link below or just reply to this email
https://pagure.io/fedora-hubs/pull-request/477

rebased onto 79b04fd0732dedc8bee19933cb9a4be47082e3ea

turns out test_index_logged_out was using app.get(), changing it to check_url() fixes the issue of not having a g.auth when not logged in.

updated the test in the commit, and removed the g.auth defined check in the master template.

rebased onto f257802a27b61a847a8f6aaade0dd035a66fbcec

I noticed a lot of spaces at the end of some lines in index.html, could you remove them?
FYI in my .vimrc I use this to highlight them:

" Highlight redundant whitespaces and tabs.
highlight RedundantSpaces ctermbg=red guibg=red
match RedundantSpaces /\s\+$\| \+\ze\t/

The tox -e lint command is also giving me an error : ./hubs/tests/views/test_root.py:18:5: E303 too many blank lines (2).

I like the new front page :-)
It says "communication centre", isn't it "center"? Maybe a typo?

Okies! Updated the commit:

  • fixed the linting error
  • removed extra spaces at the end of lines in index.html
  • used en_US spelling of center rather than the en_AU centre

rebased onto 32aeeac09ae99bca91f155ce5ad61d6779cb8ecf

Pull-Request has been merged by abompard

Metadata