Closed myyong closed 6 years ago
console.log()
statementsSend job
takes the user to a blank page (?)
'Run job' (previously send) takes user to output page
moments.js
or similar (https://momentjs.com/) to display user friendly times (such as "an hour ago" for job submission time)saveJob()
is using the newJobUrl
(i.e. environment.apiUrl+"jobs"
). Check whether saveJob()
should instead be calling PUT
on api/jobs/<job-id>
. console.log("in save")
let headers = new Headers({ 'Content-Type': 'application/json' });
let options = new RequestOptions({ headers: headers });
let response = this.http.patch(newJobUrl, jobData, options)
.catch(this.handleError);
return response
}
Okay as
this.http.patch
is used. I think that it is confusing to havenewJobUrl
as a variable name if the URL is serving multiple purposes. Renaming tojobsUrl
may be less confusing.
Okay as this.http.patch is used. I think that it is confusing to have newJobUrl as a variable name if the URL is serving multiple purposes. Renaming to jobsUrl may be less confusing.
Agreed, have changed this.
Closing due to migration to ant.design.
Comments refer to branch
42-integration-testing