Skip to content

Show commits by author

Samantha Ming requested to merge 14984-show-commits-by-author into master

Issue: #14984 (closed)

What does this MR do?

The user can filter the commits by the author.

Extra info: The "Filter by commit message" update the commits list in 2 ways: it reloads the entire page when the user clicks enter on the search term (form submit) OR it updates as the user is typing the search term (via JS).

This issue will be resolved in 2 steps:

  1. In this iteration, the "search by author" will refresh the entire page on selection.
  • So there will be a slight delay of the author dropdown appearing due to the page refresh
  1. The next iteration will instead just update the commits-list section
  • this will provide a better user experience as the page will not be reloaded

Testing Case

  1. Go to the commits page
  • You will see the author dropdown

image

  1. In the "Filter by commit message", enter a search term
  • The author dropdown will now be disabled and when hovered will display this tooltip:

image

  • Clear the search term and the author will be enabled
  1. In the author dropdown, select an author
  • The commits list will update to show the commits from the author
  • The "Filter by commit message" is disabled and when hovered will display this tooltip:

image

  • Select "Any Author" and the "Filter by commit message" will be enabled

  • The search feature will allow you to filter the author list by username or name

image

Note

The author dropdown only displays GitLab users of the project. Likewise in the search feature, you can only search users of the project. But you may notice some of the commits are non-gitlab users, these users will not appear in the dropdown. This might be something we want to address in a future iteration (discussion to follow in this comment > !28509 (comment 320658697))

Currently, if no commits are found for the specific author, a blank page will appear. This is consistent with the behaviour of "Filter by commit message". A better experience is to add some sort of message (Issue > TBA)

image

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #14984 (closed)

Edited by Samantha Ming

Merge request reports