gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Add milestone labels

Open bl00mber opened this issue 2 years ago • 1 comments

close #17244

gitea-milestone-labels1

gitea-milestone-labels2

bl00mber avatar Aug 02 '22 08:08 bl00mber

Can you merge @lafriks @silverwind @6543 @techknowlogick @lunny

bl00mber avatar Sep 17 '22 14:09 bl00mber

Is it necessary to display milestone's lables in issue view interface? It may made some confusion.

lunny avatar Sep 19 '22 09:09 lunny

please resolve conflicts

6543 avatar Oct 16 '22 14:10 6543

@6543 I will update today

bl00mber avatar Oct 18 '22 06:10 bl00mber

@bl00mber Could you comment on my reviews?

lunny avatar Oct 18 '22 08:10 lunny

@lunny I will fix according to review

bl00mber avatar Oct 18 '22 08:10 bl00mber

@lunny updated

bl00mber avatar Nov 10 '22 07:11 bl00mber

Were the review comments resolved? Also we'll need a rebase.

silverwind avatar Mar 19 '23 20:03 silverwind

@silverwind yes resolved & rebased

bl00mber avatar Mar 21 '23 10:03 bl00mber

You missed database migrations

lunny avatar Mar 27 '23 06:03 lunny

One more thing, there is a shared template for "label list", could the "milestone_new.tmpl" reuse the shared template?

And it looks strange to use <form class="ui comment (the comment) for a milestone form.

wxiaoguang avatar Mar 29 '23 11:03 wxiaoguang

Please resolve all resolved conversations, so we know what's left to do.

silverwind avatar Apr 22 '23 21:04 silverwind

@silverwind all updated according to comments, except: "SQL to delete" not added "label list" shared template not used, because it is a different UI component that looks like table

bl00mber avatar Apr 22 '23 21:04 bl00mber

I still think both issue labels and milestone labels displayed in the issue sidebar are confusing.

lunny avatar Apr 23 '23 09:04 lunny

I still think both issue labels and milestone labels displayed in the issue sidebar are confusing.

Hmm .... yup, so, let's first clarify the requirement before reviewing?

IMO the root question is: why milestones should have labels? If the labels are for mainly filtering purpose, does it make sense to attach labels to milestones?

wxiaoguang avatar Apr 23 '23 09:04 wxiaoguang

Hmm I think if someone is really so heavily using milestones to needing labels on them, it's a somewhat valid use case and labels can exist in milestone lists, but I still would not litter the issue/pr view with these second set of labels, it's too confusing.

Milestone link alone should be sufficient for issue/pr view.

silverwind avatar Apr 23 '23 17:04 silverwind

Update:

  • used container.Set[T]
  • deleted milestone labels from issue sidebar
  • added milestone filtering by label

it looks strange to use <form class="ui comment (the comment) for a milestone form.

This is the requirement for label select dropdown to work. You can see that issue/new_form.tmpl also has the comment class.

bl00mber avatar Apr 27 '23 09:04 bl00mber

Will test soon.

silverwind avatar Apr 30 '23 18:04 silverwind

There is a bug in the text color rendering on the milestone list, the text is white:

Screenshot 2023-05-01 at 01 00 26

Color is correct on milestone edit page:

Screenshot 2023-05-01 at 01 01 25

Also correct in the issue list:

Screenshot 2023-05-01 at 01 02 34

silverwind avatar Apr 30 '23 23:04 silverwind

How about remove milestone labels in issue page and keep milestone list/detail pages?

lunny avatar May 12 '23 04:05 lunny

How about remove milestone labels in issue page and keep milestone list/detail pages?

They were removed in previous update

bl00mber avatar May 12 '23 04:05 bl00mber

How about remove milestone labels in issue page and keep milestone list/detail pages?

They were removed in previous update

It's better to update the screenshots on the issue content.

lunny avatar May 12 '23 04:05 lunny

Is it ready for review again? It helps if you comment after updates, because simple pushes to the branch don't trigger a GitHub notification.

silverwind avatar May 12 '23 10:05 silverwind

@silverwind yes I replaced labels to RenderLabel and added deletion of MilestoneLabels when repo is deleted

bl00mber avatar May 12 '23 11:05 bl00mber

Ok, I will test again later.

silverwind avatar May 12 '23 11:05 silverwind

Could we display labels on the milestone detail page.

lunny avatar May 14 '23 06:05 lunny

Could we display labels on the milestone detail page.

I agree but we shouldn't bloat the scope of this PR too much. It's been waiting too long already. Let's get it into a mergable state and refine later.

silverwind avatar May 14 '23 12:05 silverwind

Could we display labels on the milestone detail page.

I agree but we shouldn't bloat the scope of this PR too much. It's been waiting too long already. Let's get it into a mergable state and refine later.

I don't think so. Like issue labels will be displayed in issue list and issue detail page. Currently milestone labels just are displayed in milestone list. They should also be displayed in milestone detail page.

lunny avatar May 14 '23 12:05 lunny

  • labelExclusiveScopes taken out to a new function
  • display labels on milestone detail page

I will update it only one more time, if there are any additional issues with this PR let me know or I am closing it next time.

bl00mber avatar May 17 '23 19:05 bl00mber

Bumped the migration number.

silverwind avatar May 21 '23 20:05 silverwind