-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion about read- write-/multipleproperties #219
Comments
Ah, right, the TD spec has this workaround that Forms mean a different thing on the Thing level than on the interactions level. That should clarify it, since at Thing level we must take all Forms with
In which of the |
There is this relevant issue in the TD specification: |
However, this issue has not yet been solved in the TD spec. |
My understanding is that if op see TD wording I cited in fist comment
Hence the TD does not need to mention which names are supported. |
It's not the TD who provides the names, but the application. |
Correct, the property names string array gets passed to the provided href as input (... mentioned as "request data" in the cited para) That's at least how I read it... and the wording might be improved. |
+1
This is not what I meant to say. I think the GET call on href should contain the array in the body
Anyway, lets work on clarifying it in the TD. |
What we can do is to leave that up to the implementations and formulate the Scripting algorithms in a general way (e.g. fetch the array of names from the request - without going into details). Until this is resolved in the TD spec it should be okay. |
In the virtual F2F, we agreed that As discussed on the Scripting call on 20.7.2020, we agreed to tag/publish the current version, discontinue |
Note: I suggest to remove the F2F label and re-label it with a newly created TD label |
I don't think this has been implemented. We still have readMultipleProperties method in our spec. |
Good point! |
Given that we reached a consensus already I think we should apply the changes. If I remember in the TD we somehow clarified a little how the list of selected properties should look like (forcing to be a json array ?), but this probably works only for greenfield devices... finding an already existing API with the right serialization is a matter of luck. |
👍
This is correct. On the other hand the API could also handle it internally by doing Promise.all() but I think we said this is not what we want... |
Right. Promise.all() can be done from an app. But getting all properties with one request is a useful feature - that we could support when possible, but should not fake it when it's not there. |
I added the label "Needed by other TF " for w3c/wot-thing-description#848 |
In the Scripting API call we did have an interesting discussion about what does
op
readmultipleproperties
mean. We did have the feeling that the TD spec is not super clear about that case. I tried to look into it and found the following para (last para in 5.3.1.1 Thing)This seems to match with what we have in https://w3c.github.io/wot-scripting-api/#the-readmultipleproperties-method. There needs to be a dedicated form with op being
readmultipleproperties
and one can specify an array of property names.Does everybody agree?
In the case of
writemultipleproperties
it is the same I think.The text was updated successfully, but these errors were encountered: