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

Document Existence of Web UI #41

Closed
domenukk opened this issue Jun 4, 2020 · 14 comments
Closed

Document Existence of Web UI #41

domenukk opened this issue Jun 4, 2020 · 14 comments

Comments

@domenukk
Copy link
Member

domenukk commented Jun 4, 2020

The most convenient way to test checkerlib is via the webui, however this feature is not well-documented in the readme.

@ldruschk
Copy link
Member

ldruschk commented Jun 4, 2020

Related to this, the stringify_spec_entry function should produce a valid JSON object such that the Web UI is usable without any adjustments:

def stringify_spec_entry(entry: Union[Optional, Required]) -> str:

@domenukk
Copy link
Member Author

domenukk commented Jun 4, 2020

Why and how? Stringify can't know what you want to do?

@ldruschk
Copy link
Member

ldruschk commented Jun 4, 2020

In that case the Web UI maybe shouldn't display the spec in the input field by default, but instead in addition to same valid example JSON. Personally I found it more confusing to have those optional fields with default values that lead to the JSON object being invalid when they could have just as well been filled with the default values.

@domenukk
Copy link
Member Author

domenukk commented Jun 4, 2020

What should the default value for the address be?
Isn't it more important to know about available methods than to fill out one?
An extra field could be an option.

@ldruschk
Copy link
Member

ldruschk commented Jun 4, 2020

While you can't put in a default value for the address (although localhost and the port specified in the checker class might be a good guess), the rest of the defaults should be set such that specifying the address and method should be enough for most use cases.

@domenukk
Copy link
Member Author

domenukk commented Jun 4, 2020

Address and method is enough for all use cases, the checkerlib sets sane defaults for all other values, if I recall correctly.

@domenukk
Copy link
Member Author

domenukk commented Jun 4, 2020

See the spec:

spec: List[Union[Required, Optional]] = [

Only the first two are marked Required.
This should probably also be documented.
(This makes it pretty easy to use via httpie on the commandline as well)

@ldruschk
Copy link
Member

I think @MMunier has been doing some work on the Web UI recently

@ldruschk
Copy link
Member

With the new web UI, would you consider this issue to be resolved? I would say the new interface is pretty self-explanatory

@MMunier
Copy link
Member

MMunier commented Apr 25, 2021

Well some keys like the "UniqueVariantId" could use some onhover-texts, but I belive it is in a sufficient state to consider it done.

@domenukk
Copy link
Member Author

domenukk commented Apr 26, 2021

With the new web UI, would you consider this issue to be resolved? I would say the new interface is pretty self-explanatory

It looks like this issue is more about "how do I spawn and access the checker web UI".
It still seems to very much not be documented. It could probably go into
https://github.com/enowars/enochecker/blob/main/docs/guide/developing.rst

@MMunier
Copy link
Member

MMunier commented Apr 28, 2021

With the new web UI, would you consider this issue to be resolved? I would say the new interface is pretty self-explanatory

It looks like this issue is more about "how do I spawn and access the checker web UI".
It still seems to very much not be documented. It could probably go into
https://github.com/enowars/enochecker/blob/main/docs/guide/developing.rst

is it?
At least the discussion until here wasn't about that
And start your checker GET / isn't that big of a hurdle either

@domenukk
Copy link
Member Author

domenukk commented Apr 28, 2021

That was Lucas' "related to this" sidetrack.
Knowing that there is a web ui in the first place couldn't hurt...

@domenukk domenukk changed the title Document Web UI Document Existence of Web UI Apr 28, 2021
@domenukk
Copy link
Member Author

I guess this is a subset of the newer #54 though, so closing

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

No branches or pull requests

3 participants