Skip to content
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

Documention on qua-compliance is not complete #1

Open
achirkin opened this issue Oct 26, 2016 · 11 comments
Open

Documention on qua-compliance is not complete #1

achirkin opened this issue Oct 26, 2016 · 11 comments
Assignees

Comments

@achirkin
Copy link
Owner

achirkin commented Oct 26, 2016

Here are some things I found after quick browsing:

  1. The text in Metadata section does not correspond to an example above,
  2. I could not find specification of contraints. Did you add it to the doc?
  3. Input section contains only obligatory inputs, but no service-specific parameters in a format we discussed (for strings- enumeration of variants, for ints - some other form). As I remember, we had following options: string, number, bool/
  4. All listings have geomID key, which is wrong. They should have ScID key for scenario id.
  5. Listing 8: output should not have key points. It should have two attachments: objIds ibjVals. Or maybe only latter one.
@mtfranzen
Copy link
Collaborator

Could you clarify point 3? Most issues are fixed here: mtfranzen@65fa456

The whole constraint-stuff was kind of hidden in the meta-data section. I think it is now more clear :)

@achirkin
Copy link
Owner Author

Thanks a lot! Why don't you push directly to here? Please, do it next time :)
3:
We discussed that all qua-view-compliant services must have a number of parameters depending on their mode. However, all of them may have configurable optional parameters, subject to some constraints - that allow to render these parameters in qua-view. For example:

  1. Any number of {"key name":string} pairs, which have to have corresponding constraint that contains a list of possible strings (enumeration)
  2. Any number of {"key name": bool}.

In general, the section lacks well-structured detailed information regarding how to declare a proper remoteRegister message, which will make it super-difficult for a third party to implement a proper service. I would suggest to add first an overall scheme of the remote-register and corresponding request message, and only after that all the examples you made.

Anyway, thanks a lot for contribution! If you don't have time for this, I will do it on my own later some day.

@mtfranzen
Copy link
Collaborator

mtfranzen commented Oct 28, 2016

A short introduction how to register a service in Luci is given in Section 2.1, but yes, the optional root-level-arguments are missing here. I will give more details (and a listing) in this section and then reference it in the section QUA-Compliance. Maybe I restructure the section as a whole :)

Will try to wrap this up in the coming days and make a pull request!

@achirkin
Copy link
Owner Author

Updated this section in the latest commit with significant changes in format.
Still, I do not close the issue -- could you please skim though it, and also finish the last subsection of this section?

@mtfranzen
Copy link
Collaborator

Added a description and made some minor changes to the example. One thing, I'm unsure about: In the scenario-execution-mode, your examples have the output fields "answer" or "image". That means we should probably change the output fields of the example service from

XOR values
XOR value

to:

OPT values

right?

mtfranzen added a commit that referenced this issue Nov 16, 2016
@achirkin
Copy link
Owner Author

Yes, you are right!
Also, I think, we should change mode objects: objIds to geomIDs, because in the luci definitions there is a unique property geomID:long for each object. Then names will look more consistent, I guess.

@achirkin
Copy link
Owner Author

Ok, I fixed most of things I could find. Pull before continuing to work on the spec!

@mtfranzen
Copy link
Collaborator

This issue can be closed right?

@achirkin
Copy link
Owner Author

achirkin commented Feb 2, 2017

Not sure now :) can you skim through it and adjust if needed and then close?

@mtfranzen
Copy link
Collaborator

mtfranzen commented Feb 2, 2017 via email

@achirkin
Copy link
Owner Author

Not sure, what was the last state of this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants