Rename `API::Entities::ProjectEntity` to `API::Entities::IssuableEntity`
The following discussion from !25042 (merged) should be addressed:
-
@engwan started a discussion: (+6 comments) This seems out of place in
ProjectEntity. This is due to existing code though.IssueBasic,MergeRequestBasic, andMergeRequestSimpleshould not inherit fromProjectEntityeven if they have the same fields because these objects are not projects.We probably should have something like
IssuableEntitythat's similar toProjectEntity.There are also some fields in
ProjectEntitythat looks like they were just added for issuables. I believe projects don't haveiidandproject_idbut I think these are added here so that the issuable entities that are inheriting from this entity gets them.
Note that API::Entities::ProjectEntity is also used in EE so an EE-port here is required.