open-build-service icon indicating copy to clipboard operation
open-build-service copied to clipboard

Add overview and reviewers information

Open rubhanazeem opened this issue 3 years ago • 10 comments

Preview of the changes: Screenshot 2022-08-09 at 17-35-56 Open Build Service For reviewers:

  • Log in as Iggy / buildservice
  • Visit https://obs-reviewlab.opensuse.org/rubhanazeem-request-overview/request/show/2
  • If you don't see the request show redesign, the feature toggle request_show_redesign needs to enabled for the staff group in the Flipper UI
  • Visit again the request#show page and you should see the redesign now

DO NOT MERGE until we squash the commits.

rubhanazeem avatar Jul 26 '22 11:07 rubhanazeem

I think we can do better than displaying the reviewers exactly like we did before. Maybe showing who approved/declined the requests and who still needs to review.

This information is already available in the request history. I've removed the duplicate request state from overview tab

rubhanazeem avatar Jul 26 '22 12:07 rubhanazeem

This information is already available in the request history.

But not in a form that I can get an overview what is done and what not.

Also the repeated text (Open review for...) is a headline and I think you should display the by_project reviews for projects that belong to a staging differently.

hennevogel avatar Jul 26 '22 12:07 hennevogel

As @rubhanazeem and I discussed together this morning, we need to have a better overview on who approved/declined the request and who still needs to review the request (if a request is still in review).

Here's a mockup of a proposal, displaying with icons the reviewers and their review state. This would be the content of the Overview tab. The request description can be quite long in some cases, so I wouldn't display the reviewers below the description.

example

dmarcoux avatar Jul 28 '22 13:07 dmarcoux

Review app will appear here: http://obs-reviewlab.opensuse.org/rubhanazeem-request-overview

obs-bot avatar Aug 05 '22 15:08 obs-bot

@rubhanazeem I'd recommend rebasing on master as soon as possible, so we get rid of code already handled by PR #12858. It will make this easier to review.

saraycp avatar Aug 05 '22 15:08 saraycp

BTW visually you can review this by going here: https://obs-reviewlab.opensuse.org/rubhanazeem-request-overview/request/beta/show/2

hennevogel avatar Aug 09 '22 10:08 hennevogel

Codecov Report

Merging #12863 (4289c15) into master (64b8ac5) will decrease coverage by 0.06%. The diff coverage is 41.93%.

:exclamation: Current head 4289c15 differs from pull request most recent head d77e522. Consider uploading reports for the commit d77e522 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12863      +/-   ##
==========================================
- Coverage   88.69%   88.63%   -0.07%     
==========================================
  Files         694      695       +1     
  Lines       23721    23752      +31     
==========================================
+ Hits        21039    21052      +13     
- Misses       2682     2700      +18     

codecov[bot] avatar Aug 09 '22 14:08 codecov[bot]

Please, DO NOT MERGE until we squash the commits.

saraycp avatar Aug 09 '22 15:08 saraycp

To help users understand who exactly is involved in reviews, we should display the name of the users in addition to their login. So as an example with the screenshot below, Admin would become Jane Doe (Admin). This change affects the reviewer for groups/projects/packages reviews and the reviews for a single user.

display-name

dmarcoux avatar Aug 09 '22 15:08 dmarcoux

we should display the name of the users in addition to their login

@rubhanazeem also suggested that. I'll do it.

saraycp avatar Aug 09 '22 16:08 saraycp

To help users understand who exactly is involved in reviews, we should display the name of the users in addition to their login. So as an example with the screenshot below, Admin would become Jane Doe (Admin). This change affects the reviewer for groups/projects/packages reviews and the reviews for a single user.

If we use the long version of the name, this is what it looks like:

Screenshot 2022-08-10 at 13-09-09 Open Build Service

We think it's not nice when the name is too long. We vote for using the login only. If the user hovers over the avatar, he/she will see the real name. Moreover, the link we display goes to the profile, so revealing the real name is just one click away.

saraycp avatar Aug 10 '22 12:08 saraycp

RSpec is failing because we introduced the method Review#by_package?. Now I'm trying to figure out why...

saraycp avatar Aug 10 '22 12:08 saraycp

I think the conversation needs a headline on smaller viewports or the reviews need to go somewhere else...

Screenshot from 2022-08-10 15-16-10

hennevogel avatar Aug 10 '22 13:08 hennevogel

RSpec is failing because we introduced the method Review#by_package?. Now I'm trying to figure out why...

We added a new commit fixing this issue. Please read the commit description for more details.

saraycp avatar Aug 10 '22 13:08 saraycp

We added a new commit fixing this issue. Please read the commit description for more details.

So we are back to being implicit with ordering. I don't like it particularly. You can name those methods without clashing with rails right?

hennevogel avatar Aug 10 '22 13:08 hennevogel

I think the conversation needs a headline on smaller viewports or the reviews need to go somewhere else...

The heading was missing due to merge conflicts. It's back now

heading

rubhanazeem avatar Aug 10 '22 14:08 rubhanazeem

We added a new commit fixing this issue. Please read the commit description for more details.

So we are back to being implicit with ordering. I don't like it particularly. You can name those methods without clashing with rails right?

We also thought about renaming the methods... we've just pushed a commit doing so now. Naming is always tricky, we hope requested_to_*? (requested_to_project?) is ok.

saraycp avatar Aug 10 '22 14:08 saraycp

I added a tiny change and rebased on master.

saraycp avatar Aug 10 '22 15:08 saraycp

@dmarcoux and @hennevogel , we have rebased on master and squashed all the commits in one. Please take another look.

saraycp avatar Aug 11 '22 08:08 saraycp