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

Fix sort order for organization home and user profile page #31921

Merged
merged 5 commits into from
Sep 1, 2024

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Aug 26, 2024

Fix #31916

In #30876, sortOrder has been changed into a map, but it is only implemented in explore.
But it seems that size sort order has no effect from long long ago, not directly caused by the PR above.

I think it is still caused by #29231.
In #29231, it merged the sort orders from templates/explore/repo_search.tmpl and templates/admin/repo/search.tmpl.
In templates/admin/repo/search.tmpl, it contains size sort orders, but not in templates/explore/repo_search.tmpl, which is used in non-admin pages.
So order by size is added from #29231, but the handler was not added.
So maybe we should manually backport this fix to 1.22.
Backport: #31922

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 26, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 26, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Aug 26, 2024
@yp05327 yp05327 added this to the 1.23.0 milestone Aug 26, 2024
@yp05327 yp05327 added the backport/v1.22 This PR should be backported to Gitea 1.22 label Aug 26, 2024
@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 Aug 26, 2024
routers/web/org/home.go Outdated Show resolved Hide resolved
routers/web/user/profile.go Outdated Show resolved Hide resolved
@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 Sep 1, 2024
@6543 6543 enabled auto-merge (squash) September 1, 2024 16:28
@6543 6543 added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 1, 2024
@6543 6543 merged commit 661a1e1 into go-gitea:main Sep 1, 2024
26 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Sep 1, 2024
@yardenshoham yardenshoham added the backport/done All backports for this PR have been created label Sep 3, 2024
zjjhot added a commit to zjjhot/gitea that referenced this pull request Sep 5, 2024
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  [skip ci] Updated translations via Crowdin
  Remove html tags from create tag and branch translation (go-gitea#31973)
  Replace v-html with v-text in search inputbox (go-gitea#31966)
  [skip ci] Updated translations via Crowdin
  [skip ci] Updated translations via Crowdin
  Improve get feed with pagination (go-gitea#31821)
  Remove urls from translations (go-gitea#31950)
  Prevent update pull refs manually and will not affect other refs update (go-gitea#31931)
  [skip ci] Updated translations via Crowdin
  nix wording nit in todo code comment
  Fix 500 error when `state` params is set when editing issue/PR by API (go-gitea#31880)
  Fix sort order for organization home and user profile page (go-gitea#31921)
  Improve textarea paste (go-gitea#31948)
  Fix index too many file names bug (go-gitea#31903)
  [skip ci] Updated translations via Crowdin
  Move web globals to `web_src/js/globals.d.ts` (go-gitea#31943)
@yp05327 yp05327 deleted the fix-sortorder branch September 24, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/done All backports for this PR have been created backport/v1.22 This PR should be backported to Gitea 1.22 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/go Pull requests that update Go code size/M Denotes a PR that changes 30-99 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Orga: sort projects by size isn't working
6 participants