Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,763
    • Issues 44,763
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,330
    • Merge requests 1,330
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #39271
You need to sign in or sign up before continuing.
Closed
Open
Issue created Dec 10, 2019 by Francisco Javier López@fjsanpedro🔴Contributor

Implement revisions tab (Step 4)(Iteration N)

Important: All the new functionality must be implemented behind the feature flag :version_snippets. Besides, it has to be scoped for projects. Therefore, instead of checking if the feature flag is enabled or not (Feature.enabled?(:version_snippets)), we will check if the feature flag is enabled for specific users (Feature.enabled?(:version_snippets, user)).

UX Proposal

Add a Revisions tab

  • Display a list of revisions when the user clicks the Revisions tab
  • For each revisions display:
    • Avatar of the user that made the revision
    • Name of the user that made the revision
    • When the revision was made
    • Count of files, added lines, removed lines
    • The associated diffs
    • Diffs are displayed expanded by default but should be collapsable
  • Load the 5 most recent revisions
  • If more than 5 revisions exist, show pagination controls to load additional
Description Mockup
Revisions tab image

Availability and Testing

Potentially requires E2E coverage

Security Testing

  • Ensure visibility of revisions (@lulalala )

Testing Activity

  • Test to check that we display the information we need (@fjsanpedro)

QA Testing

This change warrants a new end-to-end test, new issue for it to be created and linked (@a_mcdonald).

NB Please include the SET (@a_mcdonald) in your MR reviews to coordinate the progress.

Edited Jun 16, 2020 by Anastasia McDonald
Assignee
Assign to
Time tracking