#1051 Fix Controller
Merged by pingou. Opened by farhaan.
farhaan/pagure private-repo  into  private_repo

Download 1051.patch
no initial comment

rebased

2 new commits added

  • Fix UI issuses and authorization issues
  • Fix repo controller

why the change?

:thumbsdown: for renaming the variable

same as above

and here as well

I'm not sure I understand the changes made here

what's happening when you not logged in?

This is specific to user when they are not logged in lines following check if the user is authenticated! hence private will be false everytime

This function is called only when user is authenticated

To make the code consistent throughout the file!

will undo it ! was trying to keep the code consistent!

But you didn't fix the rest of the method so you actually broke it :)

Wasn't it simpler to fix the one using if repo is None instead? Seeing how many if not repo you changed :)

Then shouldn't private in search_projects be False by default which would save us from specifying it here where it's not needed?

I guess that if we change the private to default to False, we'll need to adjust things here

I figured that after you pointed that :tongue: my bad!

1 new commit added

  • Fix variable change and default private

1 new commit added

  • Fix variable change

1 new commit added

  • Fix parameter

There are a few files where you should add your name in the headers :)

Will this https://pagure.io/fork/farhaan/pagure/blob/private-repo/f/pagure/ui/app.py#_33 show private projects? (Logged in? Logged out?)

Will this https://pagure.io/fork/farhaan/pagure/blob/private-repo/f/pagure/ui/app.py#_33 show private projects? (Logged in? Logged out?)

Nevermind, with private=False as default it won't indeed :)

Ok, fix the header and I'll merge :)

which all files ? :smile:

which all files ? 😄

The ones you changed of course :)

1 new commit added

  • Fix header

Alright, let's merge this one :)

Pull-Request has been merged by pingou

Metadata