-
Notifications
You must be signed in to change notification settings - Fork 123
dbus and rename plugin do not work together #404
Comments
When I mount it that way, I get:
which gives dbus the keyset rename+INI got. Possible solutions:
What do you think? |
Solution 1 and 2 sound best. What is blocking the global plug-ins from being merged? |
The PR has some unresolved reviewer comments and needs a rebase. After the PR we need a |
Should be fixed now with global-mounts:
Btw. INI plugin is not fully ready for the release yet, but should be done soon. |
Please confirm when you think it is ready. |
(Btw. I only tested with dump, as said, INI is on its way. With current INI there are still problems.) |
otherwise logging + notifications plugins would not have sync information anymore for #404 when global plugins are used
Still open, INI seems to change every key:
I think the most robust way is to make the change detection as early as possible so that it is not dependent on every plugin not making changing to keys. |
@waht is this now resolved as dbus does not notify every value individually anymore? |
I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. |
I closed this issue now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
@atmaxinger this is (hopefully) the last important issue that requires a decision in the context of change tracking. Can you please write a decision with a summary of this issue. The problem also needs to be better clarified:
#955 is also part of this issue. Would it be possible to use iconv to rename keys? |
For me it looks like the main issue does not exist anymore. My understanding is that these are two issues
Number 2 is still an issue in certain cases, particularly here. But Number 1 doesnt exist anymore, as This is the test setup that I have used:
At first, we register the
mkwrapper.ini:
|
To expand why the change tracking of the The way the This is why the |
@markus2330 there is actually a completely different new decision also in here: How should notification plugins deal with renamed keys?. If |
As @markus2330 said, it's not just about renamed keys. The decision is in general: Which version of the KDB should be used for notifications/change tracking? Currently we use the version of the KDB that is present to applications. I think that is an easy option and probably the most consistent approach. Especially, since there could be plugins that add/remove keys based on other keys. Another option is using the version that is returned by storage plugins. I think that would just lead to inconsistencies and confusion. It would also complicate things if you want to receive notifications inside applications. If people really need this, they should probably watch the storage file (or whatever storage is used) for changes and then call the storage plugin directly, when they detect a change. With the simple phases approach we now have, I don't think there is any other option. We can't distinguish between plugins that change key names (or add/remove keys), plugins that only change values and plugins that don't change anything. |
Sorry, I didn't specify. This is a problem of such real-world issues, they often don't focus on some specific problem in a Elektra but to a problem a user had. I meant the problem "2.". But the problem is not specific to dbus but to how we detect changes.
Absolutely, I am so happy that you work on it! ❤️
Excellent observation, this work will definitely earn the level of "master of science". Both problems are called in the scientific literature "feature-interaction problems". Also as @kodebach said, there are other feature-interaction problems on general transformations (KeySets changing in the chain of plugins). Probably some restrictions of what plugins are allowed to do are necessary. I am not sure if renaming outside of storage plugins ever was a good idea but more about that when we have decisions. |
I've been advocating for this for years now (e.g. #3497 (comment)) and was always shot down... Now that One option I see is to define: "All key names are fixed after the (*) needs slightly different wording to allow |
I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. |
I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
There is a problem when the dbus and rename plugins are used at the same time. The dbus plugin seems not be aware of the renamed keys and notifies everyone with the raw key name. Furthermore it looks like the change detection does not work either.
mkwrapper.ini
is here:https://github.com/strahlex/mkwrapper-sim/blob/param/mkwrapper.ini
The text was updated successfully, but these errors were encountered: