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 bug of branch/tag selector in the issue sidebar#32744

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 5 commits intogo-gitea:mainfromhiifong:fix/disable-selector
Dec 13, 2024

Conversation

@hiifong
Copy link
Member

@hiifonghiifong commentedDec 6, 2024
edited by wxiaoguang
Loading

Fix:#32731


Original proposal (rejected due to#32744 (comment)):

The Issue.Ref was added by "Add possibility to record branch or tag information in an issue (#780)"

After 8 years, this "branch selector" does nothing more than saving the branch/tag name into database and displays it.
So there is a plan to remove it:

  • Only hide it from the UI in 1.23, and collect feedbacks.
  • If nobody complains and explains how to use it, remove code and drop database column in next release.

What if I still would like to record branch or tag information in my workflow?

silverwind reacted with thumbs up emojididim99 reacted with confused emoji
@GiteaBotGiteaBot added the lgtm/need 2This PR needs two approvals by maintainers to be considered for merging. labelDec 6, 2024
@github-actionsgithub-actionsbot added the modifies/templatesThis PR modifies the template files labelDec 6, 2024
@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. labelsDec 6, 2024
@yp05327yp05327 added the topic/uiChange the appearance of the Gitea UI labelDec 6, 2024
@yp05327
Copy link
Contributor

Didn’t look into it, but why RepoBranchTagSelector is not used here?

@wxiaoguang
Copy link
Contributor

wxiaoguang commentedDec 6, 2024
edited
Loading

TBH, this selector should be completely removed.

I don't see it is useful in modern Gitea. It seems that selector was added in old days when Gitea doesn't have proper Issue/PR support.

Anyone is really using that selector?

metiftikci reacted with thumbs up emoji

@yp05327
Copy link
Contributor

It seems that it is used only in this pkace.

@wxiaoguang
Copy link
Contributor

History: Add possibility to record branch or tag information in an issue (#780)

It does nothing more than just saving the branch/tag name into database ..............

yp05327 and shugen002 reacted with laugh emoji

@hiifong
Copy link
MemberAuthor

TBH, this selector should be completely removed.

I don't see it is useful in modern Gitea. It seems that selector was added in old days when Gitea doesn't have proper Issue/PR support.

Anyone is really using that selector?

I think it is not a selector here, but a hint.

@yp05327
Copy link
Contributor

yp05327 commentedDec 6, 2024
edited
Loading

I don’t know the usage of this feature if we have development section in the sidebar. They seem similar.

#31899 (comment)

@shugen002
Copy link

Just some notice:
this selector , in other word, this sidebar also used in the new issue page.
if someone want to do some refactor, don't forget to check the page.

yp05327 reacted with thumbs up emoji

@lunny
Copy link
Member

History: Add possibility to record branch or tag information in an issue (#780)

It does nothing more than just saving the branch/tag name into database ..............

After reviewed the history, the feature aims to record which branch/tag happened of this issue. It looks like it maybe useful when reporting a bug. It's incomplete to have filter in issues page. Since Github has no such feature, we commonly record a version, OS, and other things in the issue content. Another alternative feature is label. Users can create labels with the same name as versions and track them with labels. So is this a really necessary feature? Maybe not.

@yp05327
Copy link
Contributor

yp05327 commentedDec 6, 2024
edited
Loading

I think this feature can be merged into development as it is used for developers to track in which branch/tag happened of this issue.
Or at least, giving it a description and a title. For now, I think most users don’t know the correct usage which it is designed for, especially after the implementation of development section.
Or just remove it.

@github-actionsgithub-actionsbot added modifies/translation modifies/apiThis PR adds API routes or modifies them modifies/goPull requests that update Go code modifies/frontend labelsDec 7, 2024
@hiifong
Copy link
MemberAuthor

remove it

@wxiaoguang
Copy link
Contributor

wxiaoguang commentedDec 7, 2024
edited
Loading

remove it

Although I suggested to remove it, actually "how to remove it" should be carefully designed.

Since this feature has been there for long time, we are not sure whether it is sure that nobody needs it.

If you just remove it completely and drop the column, then what if some 1.23 users come to complain: please give that selector back to me, what could you do?

Ideally the removal should be like this:

  1. only hide it from the UI in 1.23, and collect feedbacks
  2. if nobody complains and explains how to use it, remove code and drop database column in 1.24 or 1.25
hiifong, yp05327, and lunny reacted with thumbs up emoji

@hiifonghiifong marked this pull request as draftDecember 7, 2024 07:10
@eeyrjmr
Copy link
Contributor

Two questions.

1.what is shown/managed for issues that do have this information ? Will this break something for those instances that this was previously used one
2. How is this capability still realised (options were listed at in the OP)

This might not impact how we work... Just trying to collect the information. Multiple LTS feature branches at different branching from MAIN... I guess review comments can mention what branch the chreeypicked fix should be a applied to (or rewritten for). Not sure how 31899 works ATM so I can't comment

@wxiaoguang
Copy link
Contributor

1.what is shown/managed for issues that do have this information ? Will this break something for those instances that this was previously used one

Nobody knows at the momemt, that's why it needs to collect feedbacks. This info is only stored in database and displayed on the UI, no other logic.

  1. How is this capability still realised (options were listed at in the OP)

For example: just write the branch/tag name in the issue title? then it is still "stored in database" and "displayed on the UI"

Multiple LTS feature branches at different branching from MAIN...

It could also use other approaches, eg: labels, milestones, projects to bind an issue to a "feature"

@lunny
Copy link
Member

Or maybe we can migrate the data to the new table in the coming PR. Then I need to support tag

@wxiaoguang
Copy link
Contributor

Or maybe we can migrate the data to the new table in the coming PR. Then I need to support tag

Why? Have you figured out how end users use that field? Is it certain that the Ref could be used in your PR?

@eeyrjmr
Copy link
Contributor

1.what is shown/managed for issues that do have this information ? Will this break something for those instances that this was previously used one

Nobody knows at the momemt, that's why it needs to collect feedbacks. This info is only stored in database and displayed on the UI, no other logic.

so if it is only for display purposes then how it is being used presently can be complimented (honestly in my dev setup its only me that does this out of 4 of us :) ). Be it labels or text, yes there are ways to indicate to the wider team what branch to consider or what tag to check the issue again. I am just nervous about what happens to the db etc if this is dropped/removed.

@wxiaoguang
Copy link
Contributor

I am just nervous about what happens to the db etc if this is dropped/removed.

So in 1.23 we only hide it, and will drop it in next release if it is not used.

@lunny
Copy link
Member

Is this ready to review or merge?

@shugen002
Copy link

shugen002 commentedDec 10, 2024
edited
Loading

Few question , will the new feature#31899 block next release if this pr merged?
In the other word, can we make sure there is something to record a tag/branch in next branch.

@lunny
Copy link
Member

Few question , will the new feature#31899 block next release if this pr merged? In the other word, can we make sure there is something to record a tag/branch in next branch.

I would like#31899 merged first.

shugen002 reacted with thumbs up emoji

@wxiaoguang
Copy link
Contributor

In the other word, can we make sure there is something to record a tag/branch in next branch.

This PR's question is: how do you use that branch/tag selector?

@lunny
Copy link
Member

I moved#31899 from v1.23. And I think that will not be a block of this PR. The purpose is different. That PR added a development sidebar section to record which branches/commits/pull requests which resolved/will resolve the issue. But this feature is recording which branch does the issue happen.

@didim99
Copy link

Anyone is really using that selector?

Yes! Our team uses this feature for more than 20 projects with many branches. When your repo has more than 2-3 branches with different stuff (features, refactoring, etc) developing on them, it is a really useful feature to specify a branch in which issue found.

@wxiaoguang
Copy link
Contributor

it is a really useful feature to specify a branch in which issue found.

@didim99 Thank you very much for the feedback, it is valuable. Just have some more questions, could you help us to understand more about "selector"?

  • If it is used to "record the branch where a problem is found", what is the difference from "writing the branch name in issue title or description"? I can see the the branch selector's value isn't even searchable .... Could "using issue title/description to record the branch" be a feasible approach?
  • Is "GitHub-like development sidebar (#31899)" good enough (or better) for your usage?

@wxiaoguangwxiaoguang added skip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. and removed pr/breakingMerging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! labelsDec 13, 2024
@wxiaoguangwxiaoguang changed the titlePrepare to remove the branch/tag selector in the issue sidebarFix bug of branch/tag selector in the issue sidebarDec 13, 2024
@wxiaoguangwxiaoguang marked this pull request as ready for reviewDecember 13, 2024 00:25
@wxiaoguang
Copy link
Contributor

To avoid "breaking" in 1.23, I reverted the selector with the bug fix and added more comments. Then this PR could be merged, the discussion could be continued (#32744 (comment) ) to figure out how to improve the branch selector in the future.

@wxiaoguangwxiaoguangenabled auto-merge (squash)December 13, 2024 00:33
@wxiaoguangwxiaoguang merged commit30008fc intogo-gitea:mainDec 13, 2024
26 checks passed
zjjhot added a commit to zjjhot/gitea that referenced this pull requestDec 13, 2024
* giteaofficial/main:  Fix bug of branch/tag selector in the issue sidebar (go-gitea#32744)  Fix lfs migration (go-gitea#32812)  Avoid MacOS keychain dialog in integration tests (go-gitea#32813)  Update actionlint.yaml  Detect whether action view branch was deleted (go-gitea#32764)  Add "n commits" link to contributors in contributors graph page (go-gitea#32799)  Fix "unicode escape" JS error (go-gitea#32806)  use dedicated runners for release artifacts (go-gitea#32811)  Make API "compare" accept commit IDs (go-gitea#32801)  Implement update branch API (go-gitea#32433)  Fix JS error when dropping a file to a editor without dropzone (go-gitea#32804)  chore: use errors.New to replace fmt.Errorf with no parameters (go-gitea#32800)
@didim99
Copy link

@wxiaoguang

what is the difference from writing the branch name in issue title or description

At first, it's a standardized approach to specifying a branch reference. Of course, using issue title/text can be a compromise solution, but it needs additional convention for team members to implement this (especially if we want to use this information for some automated pipelines, parsing a human written text is a terrible thing! At the moment I not sure in possibility to retrieve branch ref via API/webhook, but having a separate field seems better than text). Second, "selector" decreases chance of human-related mistakes such as typo (hello parsing, again). Also current implementation is good enough to handle branch renaming, clicking to branch link in issue list redirect you to actual (renamed) branch. And last (but not least), it's just convenient! You don't need to remember all branch names in repo or go to another page in another tab to find a branch name, just use selector!

Is "GitHub-like development sidebar (#31899)" good enough (or better) for your usage?

Actually, I'm not sure at the moment. I'm using Gitea (thanks, dev team, great work!) in 95% of time rather than Github in last three years. This new feature looks cool, but not sure it suitable to solve our task "specify a (existing) branch on which issue/task should be solved". I need some time to playing with this new approach to answer for your question.

Of course, I understand if maintainers decide remove this functionality without any replacement as unmaintanable/legacy/buggy stuff, but if you want to remove this only because "nobody uses this", please, no!

P. S. Our team using Gitea as global task tracker (not only for code, for everything), it's lightweight and easy to use, good enough for small team. We tried OpenProject and some other open source solutions, and Gitea's issues system wins.

wxiaoguang reacted with eyes emoji

@go-giteago-gitea locked asresolvedand limited conversation to collaboratorsMar 13, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@wxiaoguangwxiaoguangwxiaoguang approved these changes

@delvhdelvhdelvh approved these changes

Assignees

No one assigned

Labels

lgtm/doneThis PR has enough approvals to get merged. There are no important open reservations anymore.modifies/frontendmodifies/goPull requests that update Go codemodifies/templatesThis PR modifies the template filesskip-changelogThis PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features.topic/uiChange the appearance of the Gitea UI

Projects

None yet

Milestone

1.23.0

Development

Successfully merging this pull request may close these issues.

Issue reference selection empty tips should not be selectable.

9 participants

@hiifong@yp05327@wxiaoguang@shugen002@lunny@eeyrjmr@didim99@delvh@GiteaBot

[8]ページ先頭

©2009-2025 Movatter.jp