Page MenuHomePhabricator

No bar color for commits on Dashboard
Closed, ResolvedPublic

Description

When viewing commits on dashboard they have nice colored badge to indicate their status (vertical bar on the left). It comes in various colors:

  • grey - logged-in user don't care about a commit
  • orange - commit is set to be audited by logged-in user
  • red - a "Raise Concern" action was made on a commit
  • green - an "Accept Commit" action was made on a commit

After recent update however commits that were marked by herald as to be audited have grey badge instead:

Phabricator_WrongCommitBarColor.png (340×502 px, 74 KB)

How commit looks before update (note blue exclamation mark before auditor name):

Phabricator_HowRegualarCommitLooks.png (484×1 px, 87 KB)

How commit looks after update (note that exclamation mark has changed it's color to grey, whatever that means):

Phabricator_HowNewCommitLooks.png (605×1 px, 127 KB)

Related task T6344

Event Timeline

aik099 raised the priority of this task from to Needs Triage.
aik099 updated the task description. (Show Details)
aik099 added a project: Audit.
aik099 added a project: Dashboards.
aik099 added a subscriber: aik099.

Thanks, these offhand look incorrect to me too. cc @btrahan

I'm also curious about these exclamation mark icon colors next to auditor usernames in commit. I think badge color might be related to some in some way. Is there any documentation about Phabricator UI, e.g. what interface element means what?

One thing I haven't noticed from

Phabricator_WrongCommitBarColor.png (340×502 px, 74 KB)
is that on old commits I have Audit Required, but on new commits I have Audit Requested. That's surely not right, because Herald rule, that is adding me as auditor to new commits is the same.

In fact everything is connected. I've found, that blue exclamation mark next to auditor indicates, that audit is required (see https://github.com/phacility/phabricator/blob/master/src/applications/diffusion/controller/DiffusionCommitController.php#L1067-L1072) and dark exclamation mark next to auditor indicates that audit is requested (see https://github.com/phacility/phabricator/blob/master/src/applications/diffusion/controller/DiffusionCommitController.php#L1085-L1090).

So the problem is that auditors added by Heard rules now added as audit requested instead of audit required, which wrong IMO.

By the way what is that audit is requested status and how can I set one on a commit. I bet there was no such status before.

blue is incorrect anyways. It doesn't make sense to have it mean both AUDIT_REQUIRED and AUDIT_NOTREQUIRED. I have a diff to correct all the colors into something more sensible.

Also it's kind of strange to have orange badge (on commit list) for audit required status and blue exclamation mark (on commit detail page) at the same time.

D10726

Looks like a step in the right direction. Still doesn't explain Herald behavior change.

This explains how we prefer to write code:

https://secure.phabricator.com/book/phabflavor/article/recommendations_on_revision_control/#one-idea-is-one-commit

Specifically, it will take several commits to resolve this task as stated.

chad renamed this task from Wrong badge color for commits on Dashboard to No bar color for commits on Dashboard.Oct 18 2014, 10:00 PM

I'll take a look at the Herald behavior change. It will take me a few hours so please sit tight.