Skip to content

GitLab

  • Menu
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
  • Issues
  • #510

Closed
Open
Created Mar 04, 2012 by Administrator@rootOwner

Removing merge request breaks application

Created by: corpix

I'm on bc6915f2 commit After removing merge request application falls down with 500 error Tail of production.log:

    Started GET "/" for 127.0.0.1 at 2012-03-05 02:44:56 +0400
    Processing by DashboardController#index as HTML
      Rendered dashboard/_projects_feed.html.haml (6.5ms)
      Rendered dashboard/_issues_feed.html.haml (8.9ms)
      Rendered events/_event_new_merge_request.html.haml (1.5ms)
      Rendered events/_event.html.haml (1.8ms)
      Rendered dashboard/_events_feed.html.haml (3.9ms)
      Rendered dashboard/index.html.haml within layouts/application (37.1ms)
    Completed 500 Internal Server Error in 69ms

    ActionView::Template::Error (undefined method `author' for nil:NilClass):
        1: = image_tag gravatar_icon(event.author_email), :class => "avatar"
        2: %strong #{event.author_name} 
        3: requested merge  
        4: = link_to project_merge_request_path(event.project, event.merge_request) do
      app/models/event.rb:75:in `author'
      app/models/event.rb:84:in `author_email'
      app/views/events/_event_new_merge_request.html.haml:1:in `_app_views_events__event_new_merge_request_html_haml___268055337_111901870'
      app/views/events/_event.html.haml:7:in `_app_views_events__event_html_haml___371861051_106017640'
      app/views/dashboard/_events_feed.html.haml:1:in `_app_views_dashboard__events_feed_html_haml__877476725_88868400'
      app/views/dashboard/index.html.haml:68:in `_app_views_dashboard_index_html_haml___166222954_105941080'

Temporary solved this by removing information about merge request by hands from database events table

Assignee
Assign to
Time tracking