Skip to content

Work items widget: Activity

Release notes

Problem to solve

Show activity log on an individual work item.

Proposal

Add widget, that includes a GraphQL query that returns all system notes related to the work item. Frontend will be a new app (not the legacy notes app) using Apollo in the same architecture as the other widgets. The first iteration does not have to be concerned with combining with the upcoming discussions widget.

Acceptance Criteria

  • Create system notes
  • View system notes
  • View & delete description diffs
  • Sort controls
  • Pagination
  • System notes update in real-time

Technical notes

All the types of system notes available:

Actions:

  1. created: 1,
  2. updated: 2,
  3. closed: 3,
  4. reopened: 4,
  5. pushed: 5,
  6. commented: 6,
  7. merged: 7,
  8. joined: 8, # User joined project
  9. left: 9, # User left project
  10. destroyed: 10,
  11. expired: 11, # User left project due to expiry
  12. approved: 12

Objects:

  1. issue: Issue,
  2. milestone: Milestone,
  3. merge_request: MergeRequest,
  4. note: Note,
  5. project: Project,
  6. snippet: Snippet,
  7. user: User,
  8. wiki: WikiPage::Meta,
  9. design: DesignManagement::Design

FOSS Events

  • notes table, together with comments. We have a boolean column that defines if a note is a system note or not.
  • resource_state_events
  • resource_label_events
  • resource_milestone_events

EE Events

  • resource_iteration_events
  • resource_weight_events

We currently use https://gitlab.com/gitlab-org/gitlab/-/blob/e38891bb2598f191944ece8cb7bbbef16a4ea8f5/app/services/resource_events/merge_into_notes_service.rb to pull all those notes together

Feature Usage Metrics

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Michelle Cooper