Fix serialization error on CI Lint with including a CI component
What does this MR do and why?
The CI Lint response includes the included files of the CI Config. This included files response returns metadata of each included file. The problem is the component inclusion because its metadata contains "component_attrs" which includes a Project object.
The error occurs because serializing a Project object is forbidden.
This change fixes this problem by specifying the needed fields of included files' metadata. We don't need to serialize "component_attrs".
- Related to Validate GitLab CI/CD configuration fails with ... (#453955 - closed)
- Sentry errors:
- Similar to Fix error when calling GQL ciConfig endpoint wi... (!153046 - merged).
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
An example content;
Before | After |
---|---|
Edited by Furkan Ayhan