Skip to content
Snippets Groups Projects
Commit 91729b44 authored by Ramesh Kumar's avatar Ramesh Kumar
Browse files

TMSS-488: Function names modified

parent 66ccfbde
No related branches found
No related tags found
1 merge request!354Resolve TMSS-488
......@@ -7,6 +7,7 @@ import UnitConverter from '../../utils/unit.converter';
import _ from 'lodash';
import ScheduleService from '../../services/schedule.service';
import { Link } from 'react-router-dom';
import WorkflowService from '../../services/workflow.service';
class SchedulingUnitList extends Component{
constructor(props){
......@@ -227,7 +228,7 @@ class SchedulingUnitList extends Component{
const promises = [ScheduleService.getSchedulingUnitsExtended('blueprint'),
ScheduleService.getSchedulingUnitsExtended('draft'),
ScheduleService.getMainGroupStations(),
ScheduleService.getWorkflowProcesses()];
WorkflowService.getWorkflowProcesses()];
Promise.all(promises).then(async responses => {
const blueprints = responses[0];
let scheduleunits = responses[1];
......
......@@ -95,8 +95,8 @@ export default (props) => {
const getStatusUpdate = (taskList) => {
setLoader(true);
const promises = [
WorkflowService.getQASchedulingUnitProcesses(),
WorkflowService.getQASchedulingUnitTask()
WorkflowService.getWorkflowProcesses(),
WorkflowService.getWorkflowTasks()
]
Promise.all(promises).then(async responses => {
const suQAProcess = responses[0].find(process => process.su === parseInt(props.match.params.id));
......
......@@ -649,18 +649,6 @@ const ScheduleService = {
} catch (error) {
console.error('[project.services.getProjectList]',error);
}
},
//TODO: This function should be removed and
//all its implementations should use the function from WorkflowService after merging workflow ticket branches
getWorkflowProcesses: async function() {
let processes = [];
try {
const response = await axios.get('/workflow_api/scheduling_unit_flow/qa_scheduling_unit_process/');
processes = response.data.results;
} catch (error) {
console.error(error);
}
return processes;
}
}
......
const axios = require('axios');
const WorkflowService = {
getQASchedulingUnitProcesses: async function (){
getWorkflowProcesses: async function (){
let data = [];
try {
let initResponse = await axios.get('/workflow_api/scheduling_unit_flow/qa_scheduling_unit_process/?ordering=id');
......@@ -17,7 +17,7 @@ const WorkflowService = {
}
return data;
},
getQASchedulingUnitTask: async function (){
getWorkflowTasks: async function (){
let data = [];
try {
let initResponse = await axios.get('/workflow_api/scheduling_unit_flow/qa_scheduling_unit_task/?ordering=id');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment