Resolve "NoMethodError: undefined method `present' for #<GenericCommitStatus:0x00007f6eacf34a40>"
What does this MR do?
Makes CommitStatus
and GenericCommitStatus
respond to presentable
methods, by including Presentable
module into CommitStatus
Why was this MR needed?
JobSerializer
methods were failing for GenericCommitStatus
instances. Including Presentable
module into CommitStatus
fixes the problem
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Conform by the code review guidelines
-
Has been reviewed by a Backend maintainer
-
-
Conform by the merge request performance guides -
Conform by the style guides -
If you have multiple commits, please combine them into a few logically organized commits by squashing them -
Internationalization required/considered -
End-to-end tests pass ( package-and-qa
manual pipeline job)
What are the relevant issue numbers?
Closes #46177 (closed)
Edited by Grzegorz Bizon