Skip to content

Fix serialization error on CI Lint with including a CI component

Furkan Ayhan requested to merge 453955-limit-ci-lint-result-includes-api into master

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".

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;

Screenshot_2024-05-30_at_11.24.33

Before After
Screenshot_2024-05-30_at_11.26.25 Screenshot_2024-05-30_at_11.26.44
Edited by Furkan Ayhan

Merge request reports