Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update migration files' priority #714

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
const populateData = require('../services/PopulatedData/populateData');
const { updateTestPlanRun } = require('../models/services/TestPlanRunService');
const {
updateTestPlanReport
updateTestPlanReport,
getTestPlanReportById
} = require('../models/services/TestPlanReportService');
const conflictsResolver = require('../resolvers/TestPlanReport/conflictsResolver');
const BrowserLoader = require('../models/loaders/BrowserLoader');
Expand Down Expand Up @@ -127,7 +127,14 @@ module.exports = {
console.info(
`=== Fixing unexpectedBehavior results for TestPlanRun:${testPlanRunId} ===`
);
await updateTestPlanRun(testPlanRunId, updateParams);
await updateTestPlanRun(
testPlanRunId,
updateParams,
null,
[],
[],
[]
);
}
}

Expand All @@ -136,11 +143,11 @@ module.exports = {
const status = testPlanReportsData[i].status;
if (status === 'DRAFT') {
let updateParams = {};
const { testPlanReport } = await populateData(
{
testPlanReportId
},
{}
const testPlanReport = await getTestPlanReportById(
testPlanReportId,
null,
null,
['id', 'tests']
);

const conflicts = await conflictsResolver(
Expand All @@ -155,7 +162,13 @@ module.exports = {
}
};

await updateTestPlanReport(testPlanReport.id, updateParams);
await updateTestPlanReport(
testPlanReport.id,
updateParams,
[],
[],
[]
);
}
}
});
Expand Down