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

Add more test for login links and fix a bug on action retrieve #2361

Merged
merged 2 commits into from Aug 23, 2017

Conversation

lunny
Copy link
Member

@lunny lunny commented Aug 23, 2017

As title.

@lunny lunny added this to the 1.2.0 milestone Aug 23, 2017
models/action.go Outdated
@@ -735,7 +735,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) {

if opts.Collaborate {
cond = builder.Eq{"user_id": opts.RequestedUser.ID}.Or(
builder.Expr(`repo_id IN (SELECT repo_id FROM "access" WHERE access.user_id = ?)`, opts.RequestedUser.ID))
builder.Expr("repo_id IN (SELECT repo_id FROM `access` WHERE access.user_id = ?)", opts.RequestedUser.ID))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why such change in this PR?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this bug via these tests.

@lafriks
Copy link
Member

lafriks commented Aug 23, 2017

There are conflicts now

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 23, 2017
@lunny
Copy link
Member Author

lunny commented Aug 23, 2017

@lafriks rebased now.

@appleboy
Copy link
Member

LGTM

@tboerger tboerger 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 23, 2017
@lafriks
Copy link
Member

lafriks commented Aug 23, 2017

Integration test failed

@lafriks
Copy link
Member

lafriks commented Aug 23, 2017

LGTM

@tboerger tboerger 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 Aug 23, 2017
@lafriks lafriks merged commit 64b7068 into go-gitea:master Aug 23, 2017
@lunny lunny deleted the lunny/login_links_test branch August 23, 2017 09:56
@lunny lunny mentioned this pull request Aug 23, 2017
}

reqAPI := NewRequestf(t, "GET", "/api/v1/users/%s/repos", userName)
respAPI := MakeRequest(t, reqAPI, http.StatusOK)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be here session.MakeRequest?


for _, repo := range apiRepos {
for _, link := range repoLinks {
req := NewRequest(t, "GET", fmt.Sprintf("/%s/%s%s", userName, repo.Name, link))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NewRequestf instead of fmt.Sprintf?

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
6543 pushed a commit to 6543-forks/gitea that referenced this pull request Feb 26, 2024
The issue filter links should not be crawled by search engines, because
they they only filter results, and contain nothing new, yet, they put a
considerable load on the server.

To stop - well behaving - search engines from following these links, add
a `rel="nofollow"` property to them. The same property is already
present on the archive download links, and plenty of other places.

Fixes go-gitea#2361.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug type/testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants