Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix issue filter#34914

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wxiaoguang merged 2 commits intogo-gitea:mainfromwxiaoguang:fix-no-label
Jun 30, 2025
Merged

Fix issue filter#34914

wxiaoguang merged 2 commits intogo-gitea:mainfromwxiaoguang:fix-no-label
Jun 30, 2025

Conversation

@wxiaoguang
Copy link
Contributor

0 is zero value and won't be put into query parameter by QueryBuild

Fix#34913

@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelJun 30, 2025
@github-actionsgithub-actionsbot added the modifies/templatesThis PR modifies the template files labelJun 30, 2025
@wxiaoguangwxiaoguang added the backport/v1.24This PR should be backported to Gitea 1.24 labelJun 30, 2025
@wxiaoguangwxiaoguang mentioned this pull requestJun 30, 2025
25 tasks
@wxiaoguang
Copy link
ContributorAuthor

image

image

@wxiaoguangwxiaoguang changed the titleFix issule & milestone filterFix issule filterJun 30, 2025
@GiteaBotGiteaBot added lgtm/need 1This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelsJun 30, 2025
@delvhdelvh changed the titleFix issule filterFix issue filterJun 30, 2025
@GiteaBotGiteaBot added lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1This PR needs approval from one additional maintainer to be merged. labelsJun 30, 2025
@wxiaoguangwxiaoguang merged commita94e472 intogo-gitea:mainJun 30, 2025
26 checks passed
@GiteaBotGiteaBot added this to the1.25.0 milestoneJun 30, 2025
@wxiaoguangwxiaoguang deleted the fix-no-label branchJune 30, 2025 16:33
wxiaoguang added a commit to wxiaoguang/gitea that referenced this pull requestJun 30, 2025
`0` is zero value and won't be put into query parameter by QueryBuildFixgo-gitea#34913
@wxiaoguangwxiaoguang added backport/doneAll backports for this PR have been created backport/manualNo power to the bots! Create your backport yourself! labelsJun 30, 2025
@wxiaoguang
Copy link
ContributorAuthor

Manually backported then no need to wait for the bot.

It seems the for most time the bot only does the backport then main branch gets another push.

@wxiaoguangwxiaoguang added the skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labelJun 30, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull requestJul 1, 2025
* giteaofficial/main:  Fix modal + form abuse (go-gitea#34921)  [skip ci] Updated translations via Crowdin  Follow file symlinks in the UI to their target (go-gitea#28835)  Fix issue filter (go-gitea#34914)  Fix: RPM package download routing & missing package version count (go-gitea#34909)  Add support for 3D/CAD file formats preview (go-gitea#34794)
</div>
<divclass="divider"></div>
<aclass="{{ifnot $.MilestoneID}}active selected{{end}}item"href="{{QueryBuild $queryLink"milestone"0}}">{{ctx.Locale.Tr"repo.issues.filter_milestone_all"}}</a>
<aclass="{{ifnot $.MilestoneID}}active selected{{end}}item"href="{{QueryBuild $queryLink"milestone"NIL}}">{{ctx.Locale.Tr"repo.issues.filter_milestone_all"}}</a>
Copy link
Member

Choose a reason for hiding this comment

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

Why do we writeNIL as uppercase? Shouldn't it work asnil too?

Copy link
ContributorAuthor

@wxiaoguangwxiaoguangJul 1, 2025
edited
Loading

Choose a reason for hiding this comment

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

No, Golang team's strange decision. Template can't use "nil", so we use our template helper function NIL

Maybe related to

https://github.com/golang/go/issues/58326

https://github.com/golang/go/issues/57773

Copy link
Member

@silverwindsilverwindJul 1, 2025
edited
Loading

Choose a reason for hiding this comment

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

We do have a few cases of lowercasenil in the templates, and I recall they work:

templates/repo/file_info.tmpl:7:  {{if ne .NumLines nil}}templates/repo/file_info.tmpl:12: {{if ne .FileSize nil}}templates/repo/issue/view_content.tmpl:8:         {{ctx.AvatarUtils.Avatar nil 40}}templates/repo/issue/view_content/comments.tmpl:21:         {{ctx.AvatarUtils.Avatar nil 40}}templates/repo/diff/comments.tmpl:6:    <span>{{ctx.AvatarUtils.Avatar nil}}</span>

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

That's different. Official document and issue have explained.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The real example is:

{{$var := nil}}, it fails. We have to use{{$var := NIL}}

wxiaoguang added a commit that referenced this pull requestJul 3, 2025
bdruth added a commit to bdruth/gitea that referenced this pull requestJul 4, 2025
…h/gitea into feature/enhanced-workflow-runs-api* 'feature/enhanced-workflow-runs-api' of github.com:bdruth/gitea:  [skip ci] Updated translations via Crowdin  Follow file symlinks in the UI to their target (go-gitea#28835)  Fix issue filter (go-gitea#34914)  Fix: RPM package download routing & missing package version count (go-gitea#34909)  Add support for 3D/CAD file formats preview (go-gitea#34794)  Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (go-gitea#34901)  Improve tags list page (go-gitea#34898)  [skip ci] Updated translations via Crowdin  docs: fix typo in pull request merge warning message text (go-gitea#34899)  Refactor container package (go-gitea#34877)  [skip ci] Updated translations via Crowdin
@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsSep 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@silverwindsilverwindsilverwind left review comments

@lunnylunnylunny approved these changes

@delvhdelvhdelvh approved these changes

Assignees

No one assigned

Labels

backport/doneAll backports for this PR have been createdbackport/manualNo power to the bots! Create your backport yourself!backport/v1.24This PR should be backported to Gitea 1.24lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/templatesThis PR modifies the template filesskip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.

Projects

None yet

Milestone

1.25.0

Development

Successfully merging this pull request may close these issues.

No Label filter doesn't work on Repository Issue Page

5 participants

@wxiaoguang@lunny@silverwind@delvh@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp