go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.18k stars 5.42k forks source link

issues listed in project board need to be updated after them were moved #13498

Open suli3 opened 3 years ago

suli3 commented 3 years ago

Description

I found that maybe the status/position of the issues listed in project board need to be updated after them were moved.

Screenshots

  1. Set up )W9{FKQK@@H9Q39 0OLQR%P

  2. move issue1 from To Do, to In Progress DTK~C7~}PWM{82DPWYSAO0J

  3. Click into the issue and then back to the project board, the issue1 change back to To Do. It should be still in the In Progress M( L3S %(`NM) %WU $QWT

POPSuL commented 3 years ago

I think, programmable issue transition needed, like jira. Each panel should have option like "ON_DROP_ISSUE" with "programmable" actions, eg:

  1. set label "WIP" if issue dropped to "In Progress"
  2. set label "Need review" and Assign reviewers automatically (or randomly, by predefined list, or better developer by inspect git-blame result in related PR)
  3. discussion should be closed which issue dropped to "Closed"
  4. ... N. more examples?
bobemoe commented 3 years ago

I think the issue reported by @suli3 is a caching issue. I can recreate it here in firefox using the 3 steps described in OP, and I would suggest step 4: refresh the page and see that the issue then appears "In Progress" as is should be.

I don't think the suggestion by @POPSuL would actually help here, however it is a brilliant idea and probably needs its own issue? In fact I thought there was one about changing labels on issues as they are moved around project boards, but I cant find it now :/

bobemoe commented 3 years ago

I'm still seeing this as a caching issue. Just confirmed in latest 1.14.0+dev-764

@lunny theme/kanban label?

zeripath commented 3 years ago

The likely issue here is one that the ajax request to update the board of the issue has not completed before you click away and thus the change is cancelled

bobemoe commented 3 years ago

In my experience of this the change is actually saved as expected. When it's displaying in the wrong column, just refresh the page to see it move to where it should be, see my comment https://github.com/go-gitea/gitea/issues/13498#issuecomment-735253270

I think the issue reported by @suli3 is a caching issue. I can recreate it here in firefox using the 3 steps described in OP, and I would suggest step 4: refresh the page and see that the issue then appears "In Progress" as is should be.

tobiasBora commented 2 years ago

See also this related issue https://github.com/go-gitea/gitea/issues/14359