Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
9e5e6fb5
Commit
9e5e6fb5
authored
Apr 10, 2017
by
Sascha Herzinger
Browse files
Submitting job functionality fixed
parent
781b0eb1
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/components/charts/CorrelationAnalysis.vue
View file @
9e5e6fb5
...
...
@@ -51,7 +51,7 @@
methods
:
{
createPlot
()
{
// function made available via requestHandling mixin
this
.
runAnalysis
({
name
:
'
compute-correlation
'
,
args
:
this
.
args
})
this
.
runAnalysis
({
job_
name
:
'
compute-correlation
'
,
args
:
this
.
args
})
.
then
(
response
=>
{
console
.
log
(
response
)
})
...
...
src/components/mixins/request-handling.js
View file @
9e5e6fb5
...
...
@@ -2,11 +2,11 @@ import store from '../../store/store'
export
default
{
methods
:
{
async
runAnalysis
({
name
,
args
})
{
async
runAnalysis
({
job_
name
,
args
})
{
function
timeout
(
ms
)
{
return
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
ms
))
}
const
jobID
=
await
store
.
getters
.
requestManager
.
createAnalysis
({
name
,
args
})
const
jobID
=
await
store
.
getters
.
requestManager
.
createAnalysis
({
job_
name
,
args
})
let
counter
=
0
while
(
counter
<
1000
)
{
await
timeout
(
++
counter
*
200
)
...
...
src/services/request-manager.js
View file @
9e5e6fb5
...
...
@@ -35,8 +35,8 @@ export default class {
return
this
.
_axios
.
get
(
'
/data
'
)
}
createAnalysis
({
name
,
args
})
{
return
this
.
_axios
.
post
(
'
/analytics
'
,
{
name
,
args
})
createAnalysis
({
job_
name
,
args
})
{
return
this
.
_axios
.
post
(
'
/analytics
'
,
{
job_
name
,
args
})
}
getAnalysisStatus
({
jobID
})
{
...
...
test/charts/test-chart.html
View file @
9e5e6fb5
...
...
@@ -14,7 +14,7 @@
handler
:
'
ada
'
,
thisBaseURL
:
'
http://10.79.2.192:8080
'
,
fractalisBaseURL
:
'
http://127.0.0.1:5000
'
,
getAuth
:
()
=>
{
getAuth
()
{
return
credentials
}
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment