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 repo search broken because of profile page added #25455

Merged
merged 4 commits into from
Jun 23, 2023

Conversation

lunny
Copy link
Member

@lunny lunny commented Jun 23, 2023

Fix #25433
Caused by #23260

@lunny lunny added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. backport/v1.20 This PR should be backported to Gitea 1.20 labels Jun 23, 2023
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jun 23, 2023
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 23, 2023
@silverwind
Copy link
Member

Is a regression test possible for this? Serious regressions like this shouldn't be missed by the integration tests.

@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 Jun 23, 2023
@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 Jun 23, 2023
@wxiaoguang
Copy link
Contributor

Is a regression test possible for this? Serious regressions like this shouldn't be missed by the integration tests.

ps: that's why I don't like PRs like "Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout #25108", these if blocks are too fragile.

@6543 6543 added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Jun 23, 2023
@6543 6543 enabled auto-merge (squash) June 23, 2023 12:11
@6543 6543 merged commit fab63cf into go-gitea:main Jun 23, 2023
@GiteaBot GiteaBot added this to the 1.21.0 milestone Jun 23, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this pull request Jun 23, 2023
@GiteaBot GiteaBot added backport/done All backports for this PR have been created and removed reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. labels Jun 23, 2023
@lunny lunny deleted the lunny/fix_repo_search branch June 23, 2023 13:28
6543 pushed a commit that referenced this pull request Jun 23, 2023
@puni9869
Copy link
Member

puni9869 commented Jun 23, 2023

Is a regression test possible for this? Serious regressions like this shouldn't be missed by the integration tests.

ps: that's why I don't like PRs like "Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout #25108", these if blocks are too fragile.

Would you please suggest an approach to tackle the problem using a small code example?

@wxiaoguang
Copy link
Contributor

Background: the thing I like doesn't mean it's liked by others, and the thing I don't like doesn't mean others don't like 😄 So, I share some my personal opinions, just for reference:

  • For the "template" part, I think the shared parts could be made as page-independent as possible. It means that, the shared parts (components) layouts themselves, eg: use "width 100%" provided by its container.
  • Let the caller's page decided the container layout, instead of {{if ThisPage}} <div "page-content foo"></div> {{else}} <div "page-content bar"></div> in the shared templates.
  • For the backend part, the pages could be covered by integration tests.

@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 21, 2023
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 backport/v1.20 This PR should be backported to Gitea 1.20 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repository Search Broken in 1.20.0-rc
7 participants