-
Notifications
You must be signed in to change notification settings - Fork 123
Elektra-web 1.2 tasks #1845
Comments
my idea was that you usually want to modify configuration in
I don't think elektra-web should be the "main" editor for elektra. It should be used to edit configuration if you are not familiar with elektra at all. This also means that the config is already set up in
I couldn't reproduce this. I tried adding keys and metakeys with umlauts and there were no issues for me. Did you add the keys with umlauts via the web UI or through a kdb command?
As I said before, I don't think other namespaces should be the scope of this project.
the loading spinner should always be there when there are pending requests. I noticed that for large key sets it takes a while for the spinner to appear, I will look into this issue.
what do you mean?
as discussed in person, you can duplicate and drag & drop to achieve the same effect
does
I still don't really understand what the cmake integration should be doing. I mean, do we really want to install all elektra-web dependencies every time we build elektra? what is the point of that?
I think this could be an interesting feature, but I really don't want to extend the scope of the project at this point. Maybe add this to an issue with future ideas for elektra-web?
I wouldn't add this, as then someone could accidentally override data or forget that this happens.
I prefixed all hint texts with |
I tried using cascading keys here but it results in merge conflicts when using export/import:
You can try this yourself by overwriting the ROOT_PATH env variable with a cascading key (e.g. |
@omnidan Thank you for your answers!
I think we need to trust that users learn the meaning of namespaces. The namespace "user" often is not the right choice, in particular if system administrators use your tool.
That is a very good thought and I fully agree.
The keys were already there, it is easily possible that the web UI cannot produce this problems. But you should also test the interaction of any configuration in Elektra and your tool.
I think it is even more confusing if the CLI is needed to create the first key of a namespace :-) If you want to make it user friendly, you could add some information about what the individual namespaces mean, e.g. when you hover above the namespace. (Or show it like the description is shown.)
Other namespaces can certainly not be beyond scope, but for the feature that specifications are considered everywhere we could argued that it is part of the elektrad rewrite. But honestly the scope is already reduced a lot: e.g. export/import/mounting is also out of scope. The solution is also very simple: If you always use cascading lookups, the metadata is always appended. But the CLI is obviously not the right choice for what you are doing, which creates these troubles.
At the moment (it seemed to me) that your GUI does not show a difference if a key (with subkeys) is present or not present (or visible and not visible). For example: kdb set user/a/b/c web UI would show a and b without giving information that they actually do not exist?
I mean the configuration of your tool itself (stored in
It is about copying the values in the text fields. Simple marking of text does not work here.
Only if you do cascading lookups, which obviously collides with the requirement to show all namespaces individually. But we could add the
Did you look at the integration of Marvin? It should happen during "make install". The point of that is that all tools can be installed the same way and no manual steps are required for distributors that want to distribute your tool as part of Elektra's packages.
I agree but I think the current solution takes too much of the precious space.
What about showing the default value (which is the same as having no value) and have a button to copy the example value into the field? The default is currently is not shown, which is also a usability problem. It seems like your tool currently does not distinguish between no value and no key. I added the last two points in the tasks above. |
@markus2330 I tried adding a key to the spec namespace:
but then I got the following error:
it is also not possible to recover from this error, it happens on all further commands |
I fixed the issue by removing the |
Thank you for explaining the issues! I checked all tasks that are already done and moved certain tasks to #1849 (for a future 1.3 release). I really want to get the project done soon so I can still do the usability test and finish my thesis this semester. I will still be fixing all tasks in this issue until the end of this week.
I understand that, but
Can you give me the command to create a key that breaks elektra-web? Even when creating keys with umlauts via the CLI it does not break for me and I'm not sure how to reproduce this.
I agree, the
I just noticed that my fix for this works only on chrome, I will look into fixing this on firefox too.
I will have a look at it and provide a similar integration. |
I figured out why cascading keys didn't work on webd. It seems to be the behaviour of the yajl plugin. Without cascading keys, the output of
But with cascading keys, the output of
Is there any way to get consistent behaviour with cascading and non-cascading keys here? |
Unfortunately, I really cannot find a way to solve this in Firefox. In webkit based browsers, I can do In Firefox, however, it seems to also prevent text selection, so there is no way to prevent dragging while still allowing text selection. |
Yes, by fixing #51 for yajl. But it would only be a first step, you will soon run into other situations what you cannot do with
I do not understand:
I think it would even harm the usability if namespaces are treated differently as it would make everything more complex. So the simplest solution is maybe the best solution: show all namespaces and show them in the same way. |
@markus2330 I implemented all namespaces now and they also get shown when no keys are available yet. They are also all collapsed and treated the same way now. However, I still have the weird issue where creating a key in the |
Thank you. Please open a separate issue about the crashes, ideally with a backtrace. Maybe you ran into #1821. I'll put @tom-wa attention again at this issue, it is a shame we had to release with this possible crash. (Btw. I am really interested in your view of namespaces. Maybe there are usability concerns I have not considered.) |
@markus2330 how can I build just a single tool with cmake? I already tested the file by creating a BTW: everything except visibility is done now |
The official way is |
@markus2330 I built elektra with I also implemented visibility, so all tasks should be done. Please check if everything is fine now 😁 |
I'll check asap but I am afraid it won't be on the weekend. |
-> #1853 |
Some parts are still not implemented, e.g., "readOnly confusing: you get red sign, but it does not say the reason when clicking". I still only get a red sign. |
it works in chrome and safari, not in firefox. I'll have to look into this... |
@markus2330 I'm moving these tasks to the new issue -> #1853 |
elektra-web1.2 brings many nice improvements and features but there is still much to be done. At some places it feels like it was not tested, or not tested with realistic data.
kdb
are written very small and (during startup) are displayed very shortwhy is config in user even when running client as root? (it is in user/sw/elektra/web/#0/current/instances which is okay, when started as user) (read write from cascading keys should do the right thing)-> issue with yajl inconsistency regarding cascading keys (Elektra-web 1.2 tasks #1845 (comment)) -> use relative keynames in storage and export files #51keys with umlauts cause problems: "KDBError: Command failed: kdb lsmeta "�sd�y2 = "�[sec�iy1 ct{on`3" /bin/sh: 1: "could not reproduce, please provide kdb export or kdb set commandLater added:
conceptual problems/questions
visibility of keys
leftovers of #1759
check/type
accordingly when enum is set.cmake integration
positive things
non-goals
to keep the effort from exploding, following tasks are not longer the scope of elektra-web:
The text was updated successfully, but these errors were encountered: