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 34,873
    • Issues 34,873
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 1,191
    • Merge Requests 1,191
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • 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
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #10103

Closed
Open
Opened Apr 25, 2016 by Yves Goergen@ygoe

View the history of changes to an issue/mr/epic description

Problem

The description of an issue can be freely edited and the time of the last edit is recorded. But it is not recorded who made an edit and most of all not what the previous content was. A customer in a collaboration project made an edit to an issue description that we may not agree to and we have no records about what the previous content was exactly. Everything else is versioned but this important piece is missing.

Proposal

  • Description edits should be collapsed by default

Screen_Shot_2019-09-09_at_10.06.37_AM

  • Users can expand description edits. This uses the same expand/collapse paradigm as discussions.

Screen_Shot_2019-09-09_at_10.06.21_AM

  • Once https://gitlab.com/gitlab-org/gitlab-ce/issues/26723 is complete, description edits made by the same user within a 10-minute span should reside under the same system note. Since we are showing the actual changes made, we can simplify the language of the system note and just say "User @username changed the description 3 weeks ago"

  • There is a max-height of 480px. This is twice the max-height of our dropdowns. If a description is longer than this, the content should scroll.

  • The diff will show straight markdown, not the markdown preview. This is because inline diffs do not work for headers, images, tables, etc.

  • Use the label Compare with previous version to expand the diff

Implementation Notes

  • Whichever path is selected as optimal during the implementation of this issue, please keep in mind that the likely next iteration after tracking is exposing the ability to easily revert to a previous version. This is out of scope for this MVC, but should be taken into consideration when selecting the optimal implementation path.
  • Additional conversation around implementation details - https://gitlab.com/gitlab-org/gitlab-ee/issues/10103#note_201016784

Documentation

Issue Documentation should be updated for the description of an issue as follows:

  • Show how to view / expand description diffs
  • Describe how straight markdown will be shown
  • Describe how Compare with previous version functions

Related issues

  • Combining system notes for description edits made within a 10-minute span
  • Filtering discussions by system notes/comments

Feature flag: :save_description_versions

Edited Jan 27, 2020 by Heinrich Lee Yu
Assignee
Assign to
12.8
Milestone
12.8 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab#10103