action #89638
closedlibyui-rest-api does not report errors when querying wrong widgets, and debug labels cannot be query'd.
100%
Description
If we run a query like http://server:port/v1/widgets?debug_label=SomeText, it returns a json like the one attached (widgets.json, see also the corresponding dialog.json, those come from the "welcome" firstboot client) . So at first sight it looks like the query worked. But In fact, it is the same as querying "http://server:port/v1/widgets" without any arguments. We can observe the same with other elements, that are not "query-able" or non-existant (eg "widgets?class=YQWizardButton" or "widgets?notexist=nope").
It would make more sense to have a "widget-not-found" error in such cases.
Also, being able to query those debug_labels to identify pages could be very useful, as there is no (?) other unique way to identify pages/modules/clients otherwise, and those seem to be present on each of them.
https://github.com/libyui/libyui-rest-api was included into https://github.com/libyui/libyui and is a sub-directory.
Files
Updated by riafarov over 3 years ago
- Description updated (diff)
- Status changed from New to Workable
Updated by oorlov over 3 years ago
- Target version changed from SLE 15 SP3 to Current
Updated by JERiveraMoya over 3 years ago
- Status changed from Workable to In Progress
- Assignee set to JERiveraMoya
Updated by JERiveraMoya about 3 years ago
Completed installation in a VM. The way to build the project has changed quite a lot since last time I checked and using a VM with TW I had to install the following in order to build all projects:
sudo zypper in git-core
sudo zypper in make
sudo zypper in cmake
sudo zypper in gcc (?)
sudo zypper in gcc-c++
sudo zypper in "rubygem(libyui-rake)"
sudo zypper in rpm-build
rake build_dependencies:install
sudo ./build-all
Updated by JERiveraMoya about 3 years ago
- Status changed from In Progress to Feedback
Updated by JERiveraMoya about 3 years ago
- Status changed from Feedback to Closed