Commit 565a4777 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '325693-next-check' into 'master'

Update checks in the great bug quest

See merge request gitlab-org/gitlab!58669
parents 78c73fcd d9ab2703
......@@ -104,12 +104,7 @@ export default {
const firstJobDefined = Boolean(group.jobs?.[0]);
if (!firstJobDefined) {
const currentGroup = this.groups.find((element) => element.name === group.name);
const serializedGroup = Object.entries(currentGroup).join(' ');
reportToSentry(
'stage_column_component',
`undefined_job_hunt, serialized group: ${serializedGroup}`,
);
reportToSentry('stage_column_component', 'undefined_job_hunt');
}
return group.size === 1 && firstJobDefined;
......
import { reportToSentry } from '../utils';
const unwrapGroups = (stages) => {
return stages.map((stage) => {
const {
......@@ -8,6 +10,10 @@ const unwrapGroups = (stages) => {
};
const unwrapNodesWithName = (jobArray, prop, field = 'name') => {
if (jobArray.length < 1) {
reportToSentry('unwrapping_utils', 'undefined_job_hunt, array empty from backend');
}
return jobArray.map((job) => {
return { ...job, [prop]: job[prop].nodes.map((item) => item[field] || '') };
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment