Who defines the syrup options? #615
Unanswered
ConfusedMerlin
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@ConfusedMerlin , |
Beta Was this translation helpful? Give feedback.
1 reply
-
Okay, I now understand that this was the wrong question... we can ignore this question, as I must ask something different first. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings,
trying to track down devices, that do not have a connectionUrl (and a grey screen) despite being shown in the farm as connected and being reachable by adb container without problem.
So I made may way through the process flow, from the device list on the web gui, to the swagger get vor api/v1/devcies, to the rethinkDB access for the devices table. Now I am looking for the source of the connectURL, which has led me to a file ./lib/units/device/plugins/connect.js.
It creates a plugin.start(), which gets called when a ConnectStartMessage is wired in. When that happens, a ConnectStartedMessage is wired out (which is received by a piece of code that inserts its url param into the db) as... positive Proimse then function, which gets the url from one of the two returns inside plugin.start().
So far, so good. But... the url to be send out with the ConnectStartedMessage is peeled out of the options parameter at the very top of the file, before its returned for the Promis (that bluebird stuff). This options parameter seems to come in with the syrup's instantiation. Now I stranded in the stf.syrup repository without a clue, about who actually fills the dependencies of the serial/parallel syrup class defined there.
Or to put it more blatant: who puts the the URL into the options parameter of stf.syrup which is used by the connect.js?
Because... I suspect that part is responsible for not providing the current ConnectURL in the cases I described at the top of this question.
Beta Was this translation helpful? Give feedback.
All reactions