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

Merge branch 'master' into TMSS-843

parents 795661a7 9e3acf0d
No related branches found
No related tags found
2 merge requests!634WIP: COBALT commissioning delta,!557TMSS-843: Added custom read only fields frequency_resolution and...
...@@ -29,7 +29,11 @@ const QaReportingTemplate = { ...@@ -29,7 +29,11 @@ const QaReportingTemplate = {
let taskDataproducts = _.find(dataproducts.task_blueprints, {'id': task.id}) let taskDataproducts = _.find(dataproducts.task_blueprints, {'id': task.id})
for(const successor of taskSuccessors) { for(const successor of taskSuccessors) {
if(successor.task_type === "pipeline") { if(successor.task_type === "pipeline") {
observation.pipeline.push(successor.id); successor.subtasks.map(successorSubtask => {
if(successorSubtask.primary === true){
observation.pipeline.push(successorSubtask.id);
}
})
} }
} }
let taskDP = []; let taskDP = [];
...@@ -69,13 +73,14 @@ const QaReportingTemplate = { ...@@ -69,13 +73,14 @@ const QaReportingTemplate = {
} }
let tableBody = '' let tableBody = ''
for (const observation of observations) { const sortedObservations = _.orderBy(observations,['startTime'], ['desc'])
for (const observation of sortedObservations) {
tableBody = tableBody + ` tableBody = tableBody + `
<tr> <tr>
<td><a href="https://proxy.lofar.eu/inspect/HTML/${observation.controlId}/index.html">${observation.controlId}</a></td> <td><a href="https://proxy.lofar.eu/inspect/HTML/${observation.controlId}/index.html">${observation.controlId}</a></td>
<td>${observation.scheduleUnitId}</td> <td>${observation.scheduleUnitId}</td>
<td>${observation.taskId}</td> <td>${observation.taskId}</td>
<td>${observation.pipeline.join(",")}</td> <td>${observation.pipeline.join(", ")}</td>
<td>${observation.project}</td> <td>${observation.project}</td>
<td>${observation.targetname}</td> <td>${observation.targetname}</td>
<td><a href="https://proxy.lofar.eu/inspect/HTML/${observation.controlId}/Stations/station_beamlets.html">BST</a></td> <td><a href="https://proxy.lofar.eu/inspect/HTML/${observation.controlId}/Stations/station_beamlets.html">BST</a></td>
...@@ -128,7 +133,7 @@ const QaReportingTemplate = { ...@@ -128,7 +133,7 @@ const QaReportingTemplate = {
<strong>Archiving:</strong> <strong>Archiving:</strong>
<strong style='display:inline'>Remarks:</strong><p style= "display:inline; position: relative"> Please analyse the validation plots at <strong style='display:inline'>Remarks:</strong><p style= "display:inline; position: relative"> Please analyse the validation plots at
<a href="https://proxy.lofar.eu/inspect/HTML/">https://proxy.lofar.eu/inspect/HTML/</a> within 24 hours after this notification and submit your <a href="https://proxy.lofar.eu/inspect/HTML/">https://proxy.lofar.eu/inspect/HTML/</a> within 24 hours after this notification and submit your
findings using the form at <a href="http://localhost:3000/schedulingunit/${id}/workflow">http://localhost:3000/schedulingunit/${id}/workflow </a>. findings using the form at <a href="/schedulingunit/${id}/workflow">${window.location.origin}/schedulingunit/${id}/workflow </a>.
After this time window has passed, we will assume that your judgement is that the observation was successful and we will complete the actions described above ourselves to support your run.</p> After this time window has passed, we will assume that your judgement is that the observation was successful and we will complete the actions described above ourselves to support your run.</p>
<br/> <br/>
<p>From the moment the data are made available to you at the LTA you have four weeks to check their quality and to report any problems to the <p>From the moment the data are made available to you at the LTA you have four weeks to check their quality and to report any problems to the
......
...@@ -147,7 +147,7 @@ const TaskService = { ...@@ -147,7 +147,7 @@ const TaskService = {
}, },
getTaskSuccessors: async function(type, id) { getTaskSuccessors: async function(type, id) {
try { try {
const url = type === 'blueprint'? `/api/task_blueprint/${id}/successors`: `/api/task_draft/${id}/successors/`; const url = type === 'blueprint'? `/api/task_blueprint/${id}/successors/?expand=subtasks`: `/api/task_draft/${id}/successors/`;
const response = await axios.get(url); const response = await axios.get(url);
return response.data; return response.data;
} catch (error) { } catch (error) {
......
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