Fix Error 500 resulting when loading network graph
discussion_id
may not be present when the SELECT call for notes does not include this attribute. Don't attempt to set the discussion ID unless the model contains the attribute:
irb(main):019:0> notes[0]
Note Load (10.3ms) SELECT notes.commit_id, count(notes.id) as note_count FROM "notes" WHERE "notes"."project_id" = $1 AND (noteable_type = 'Commit') GROUP BY notes.commit_id [["project_id", 13083]]
ActiveModel::MissingAttributeError: missing attribute: discussion_id
Closes #21119 (closed), #21128 (closed)
Merge request reports
Activity
Milestone changed to %8.11
mentioned in issue #20946 (closed)
Added 5 commits:
-
415e22a2...6a05f246 - 4 commits from branch
master
- 5cb488e8 - Fix Error 500 resulting when loading network graph
-
415e22a2...6a05f246 - 4 commits from branch
/cc: @rdavila
mentioned in commit b8728c0b
mentioned in commit 707bb9dc
Hi @alioozgur, if you have installed GitLab from source pulling the stable branch should fix the issue otherwise we're going to release the
RC7
package today with the fix.@rdavila thank you. I'll pull 8.11 stable tomorrow and hope that works.
Mentioned in commit nick.thomas/gitlab-ee@707bb9dc