Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !5992

Closed
Created 11 years ago by Administrator@rootOwner
  • Report abuse
Report abuse

Issue Notes: record assignee changes in the comment timeline

  • Overview 3
  • Commits 1
  • Changes 2

Created by: PixnBits

as proposed in http://feedback.gitlab.com/forums/176466-general/suggestions/5168130-record-assignee-changes-in-the-comment-timeline

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (base)

and
  • latest version
    9f49b926
    1 commit, 5 years ago

2 files
+ 13
- 0

    Preferences

    File browser
    Compare changes

There are merge conflicts

The comparison view may be inaccurate due to merge conflicts.

Resolve these conflicts or ask someone with write access to this repository to merge it locally.

a‎pp‎
mod‎els‎
not‎e.rb‎ +12 -0
obse‎rvers‎
issue_ob‎server.rb‎ +1 -0
app/models/note.rb
+ 12
- 0
  • View file @ 9f49b926


Show all unchanged lines Show 20 lines
}, without_protection: true)
end
def self.create_assignee_change_note(noteable, project, author, assignee, source)
body = "_Reassigned to @#{assignee.username}_"
create({
noteable: noteable,
project: project,
author: author,
note: body,
system: true
}, without_protection: true)
end
# +noteable+ was referenced from +mentioner+, by including GFM in either +mentioner+'s description or an associated Note.
# Create a system Note associated with +noteable+ with a GFM back-reference to +mentioner+.
def self.create_cross_reference_note(noteable, mentioner, author, project)
Show 20 lines Show all unchanged lines
app/observers/issue_observer.rb
+ 1
- 0
  • View file @ 9f49b926


Show all unchanged lines Show 20 lines
def after_update(issue)
if issue.is_being_reassigned?
notification.reassigned_issue(issue, current_user)
Note.create_assignee_change_note(issue, issue.project, current_user, issue.assignee, current_commit)
end
issue.notice_added_references(issue.project, current_user)
Show 20 lines Show all unchanged lines
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Lock merge request
Unlocked
1
1 participant
user avatar
Reference: gpt/large_projects/gitlabhq1!5992
Source branch: github/fork/PixnBits/master

    0 pending comments

Menu

Projects Groups Snippets
Help