Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
api
Commits
be99b428
Commit
be99b428
authored
Jul 09, 2019
by
Tobias Steiner
Browse files
Add debug flags
parent
0ec77fbe
Pipeline
#3000
passed with stage
in 2 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/controller/api.ts
View file @
be99b428
...
...
@@ -195,7 +195,7 @@ export class ApiController {
clearTimeout
(
unsubscribeTimer
);
}
// wait for kafka to answer
kafkaEventEmitter
.
on
(
`data-
${
id
}
`
,
await
waitForResponse
);
kafkaEventEmitter
.
on
(
`data-
${
id
}
`
,
waitForResponse
);
// a bit hackish but we need to unsubscribe from the event if no answer from kafka arrives
// todo: perhaps a different unsubscribeTimeout
...
...
src/utils/response-collector.ts
View file @
be99b428
...
...
@@ -59,6 +59,8 @@ export class ResponseCollector {
const
a
=
{};
try
{
const
provider
=
await
UrlResolver
.
getProvider
(
d
,
this
.
language
);
console
.
log
(
'
provider
'
+
provider
);
console
.
log
(
'
url
'
+
d
);
a
[
provider
]
=
d
;
return
a
;
}
catch
{
...
...
@@ -67,12 +69,15 @@ export class ResponseCollector {
}
});
}
console
.
log
(
data
);
if
(
Array
.
isArray
(
this
.
finalData
.
data
[
data
.
name
]))
{
this
.
finalData
.
data
[
data
.
name
].
push
(
data
.
data
);
}
else
{
this
.
finalData
.
data
[
data
.
name
]
=
data
.
data
;
}
console
.
log
(
this
.
finalData
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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