Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 36,988
    • Issues 36,988
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,441
    • Merge requests 1,441
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Merge requests
  • !28509

Merged
Created Apr 01, 2020 by Samantha Ming@sming-gitlab🌴Developer0 of 20 tasks completed0/20 tasks

Show commits by author

  • Overview 106
  • Commits 6
  • Pipelines 27
  • Changes 15

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

  • Changelog entry
  • Documentation (if required)
  • Code review guidelines
  • Merge request performance guidelines
  • Style guides
  • Database guides
  • Separation of EE specific content

Availability and Testing

  • Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.
  • Tested in all supported browsers
  • Informed Infrastructure department of a default or new setting change, if applicable per definition of done

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 Apr 14, 2020 by Samantha Ming
Assignee
Assign to
Reviewer
Request review from
12.10
Milestone
12.10 (Past due)
Assign milestone
Time tracking
Source branch: 14984-show-commits-by-author