Skip to content

Conversation

@zeripath
Copy link
Contributor

Fixes issue with the repo-list total count number not showing up and just sets the "private" toggle to match repo.is_private state.

A more complete refactor of these toggles is required in future but this is a simple backportable bug-fix

Signed-off-by: Andrew Thornton [email protected]

@zeripath
Copy link
Contributor Author

(Fixes bugs reported by @CirnoT)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 19, 2020
@CirnoT
Copy link
Contributor

CirnoT commented May 19, 2020

Public repos of limited/private organizations still don't show as either Private or Public, only in undefined state.

@zeripath
Copy link
Contributor Author

Sigh ... I've set it so that "private" shows the limited and private org public repos.

@CirnoT
Copy link
Contributor

CirnoT commented May 20, 2020

I don't think I agree with them being classified as private, considering they are currently shown as public (both via icon as well as color); I think user expectation given visual clues would be that they show under Public

@6543
Copy link
Member

6543 commented May 20, 2020

this is kind/breaking for the API !!!

@6543
Copy link
Member

6543 commented May 20, 2020

OnlyPrivate -> AndPrivate or am I'm wrong?
(will test it soon)

@zeripath
Copy link
Contributor Author

@CirnoT changing it to do the obvious thing would break the API as @6543 says - and therefore unbackportable.

@zeripath
Copy link
Contributor Author

but of course this still doesn't completely work...

pub repo of pub org seems not be shown.

@zeripath
Copy link
Contributor Author

WHY IS THIS SUCH A MESS

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 20, 2020
@lafriks
Copy link
Member

lafriks commented May 20, 2020

Something wrong with swagger, duplicate description swagger needs to be regenerated

Signed-off-by: Andrew Thornton <[email protected]>
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 20, 2020
@guillep2k guillep2k merged commit 3eb3239 into go-gitea:master May 21, 2020
@guillep2k
Copy link
Member

Please send backport

@zeripath zeripath deleted the fix-repo-list-bugs branch May 21, 2020 05:51
zeripath added a commit to zeripath/gitea that referenced this pull request May 21, 2020
* Fix repo-list private and total count bugs

Signed-off-by: Andrew Thornton <[email protected]>

* Ensure limited and private org public repos are displayed on "private"

Signed-off-by: Andrew Thornton <[email protected]>

* switch from onlyPrivate to is_private

Signed-off-by: Andrew Thornton <[email protected]>

* Generate swagger

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: guillep2k <[email protected]>
@zeripath zeripath added the backport/done All backports for this PR have been created label May 21, 2020
jolheiser pushed a commit that referenced this pull request May 21, 2020
* Fix repo-list private and total count bugs

Signed-off-by: Andrew Thornton <[email protected]>

* Ensure limited and private org public repos are displayed on "private"

Signed-off-by: Andrew Thornton <[email protected]>

* switch from onlyPrivate to is_private

Signed-off-by: Andrew Thornton <[email protected]>

* Generate swagger

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: guillep2k <[email protected]>

Co-authored-by: guillep2k <[email protected]>
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* Fix repo-list private and total count bugs

Signed-off-by: Andrew Thornton <[email protected]>

* Ensure limited and private org public repos are displayed on "private"

Signed-off-by: Andrew Thornton <[email protected]>

* switch from onlyPrivate to is_private

Signed-off-by: Andrew Thornton <[email protected]>

* Generate swagger

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: guillep2k <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants