-
Notifications
You must be signed in to change notification settings - Fork 123
web 1.2 issues revisited #1853
Comments
@markus2330 can you please send me an export of your kdb database so I can reproduce these issues? I really didn't run into any of these "really bad" issues (not showing namespaces, no values) while testing the app with my setup (which is probably quite simple compared to yours, though). I will also make sure to test with Firefox ESR more (I only tested Quantum because ESR is quite slow on my machine compared to Quantum, Chrome and Safari). BTW: also let me know the commands you're using for cmake and what you expected to happen/what happened. The scripts were copied over to the |
what does that mean? I have keys in user and system too, both namespaces and keys show up fine for me.
it is marked as disabled (greyed out) until the required fields (name and host) are filled in |
Yeah, it is a good idea that we should have a "real-world" Elektra config that contains the configuration settings that may be present. I created #1858 In the current state of web-ui, however, it is hardly necessary: It was very easy to produce these problems. Actually even with a completely empty key database (after Adding any key and pressing F5 (reload page) also caused problems. Creating a key with a value, caused problems, too (it was without value).
I expect that after
yes please!
It might be caused by the "F5" (reload) problem.
Yes but if nothing is changed it could be gray, too. Btw. see also #1857 |
@markus2330 I do not have the |
I managed to reproduce most issues and am working on fixing them now. There were a couple issues that I could not reproduce, including the "F5 problem" (reloading works fine for me in both chrome and firefox esr, even after creating a key)
This was a race condition with the debouncing mechanism, it is fixed now.
I cannot reproduce this, what do you mean it is not as it was before? How does it look? For me even in Firefox ESR it looks the same after collapsing/uncollapsing.
Duplicating keys with the same name is not even possible anymore. When I try to do this I'm getting
I do not have this problem either, the user and system namespaces display and work fine for me (except that some keys in system/ cannot be changed because of permissions). Or do you mean some kind of interaction between the namespaces doesn't work? How do I reproduce this? |
Actually, it wasn't greyed out at all for existing instances. I updated it so that when you remove the name or host from an existing instance, the save button also gets greyed out so that it is not possible to save without entering the required values. |
I think I figured out the reloading issue 😁 It happens when the host (e.g. in single instance mode) has a tailing slash, because then it makes a request to |
Unfortunately the "click on disabled" is not possible at all on Firefox :/ Firefox doesn't propagate events up to container elements when the input field is disabled: https://stackoverflow.com/a/3100395 |
@markus2330 for the cmake integration, how can I check if a certain plugin is available in the same elektra installation? The yajl plugin is required for elektra-web to work |
You can check if list (FIND REMOVED_PLUGINS "yajl" yajl_index)
if (yajl_index EQUAL -1)
message ("YAJL plugin is available")
endif (yajl_index EQUAL -1) . |
Thank you @sanssecours ! I added the check. |
So it does remember which parts of a tree I collapsed?
Yes, I also get this error message. But if I duplicate it again with a different name there seems to be some wrong state. (It duplicates the key twice.)
I think it is/was the refresh (F5) problem. |
Ah, I misunderstood. I implemented this now.
I tried the following:
It seems to work as expected. I am cleaning up the state when the dialog is closed. The path is also checked exactly before the duplicate event is dispatched. |
I think you have to duplicate it twice successfully. But once webd works again for me I can try to reproduce it. |
Looks much better now, thank you for the many fixes! I moved some remaining ones to #1865 |
👍 thanks for the build/run scripts
👍 logo
The CMake installation did not work for me. There were many other easily visible problems, sometimes severe. Please test more.
From the features, however, it now seems quite complete.
Some problems I found in a quick try run:
kdb get
)Tasks from old issue:
doesn't work on firefox: readOnly confusing: you get red sign, but it does not say the reason when clicking-> not possible: https://stackoverflow.com/a/3100395The biggest problem is that web-ui sometimes creates wrong keys (e.g. without values, unexpected meta data...) and easily gives up showing some keys, e.g., after pressing F5 sometimes all keys in a namespace are gone. Such problems are really no-gos.
Otherwise it is fun to work with the tool.
Cannot reproduce:
The text was updated successfully, but these errors were encountered: