-
Notifications
You must be signed in to change notification settings - Fork 122
cascading import/export/editor dangerous #2762
Comments
That is probably a merging problem. It seems In a more complicated example with a full LCDproc config, I actually got merging conflicts and import failed.
The only way I see any of these working, is like this:
That shouldn't be too hard to implement. It already works like this in Anything actually involving some sort of cascading lookup where different namespaces are mixed together would only cause problems. It would also be very intransparent. |
Thank you for the input!
Of course it would be better if it works. Otherwise @Piankero can also simply let it fail when cascading keys are given. |
I am not sure what I should do here as I am just mentioned. Probably with the keyname overhaul this is fixed? |
@MasterToney can you fix this by simply not allowing cascading keys for import/export? |
Just to be sure that I understand the task correctly: Same thing with export? |
Good that you ask! You understood correctly but this would be inconsistent to #2561. So we want following behavior:
will write to what is given by
you can reject for now (maybe @kodebach or you will add support later after #3115) Internally, you use the cascading key to kdbGet/kdbSet configuration by default but not the cascading key manipulating the KeySet (here you use namespace + key). Only if Maybe do not start with Thank you for picking this up! Please do not hesitate to ask any further questions. |
The version with namespace shouldn't be much work to implement either. You just call The only decision left is what to do if |
Exactly, that is why I suggested to reject it now. Unfortunately, there is no way to check if |
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. |
To be solved with #3742. |
cascading import/export/editor are currently not implemented and should fail until we have implemented it. As solution write to import/export/editor all namespaces separately (even though then validation does not work 😢).
One recent problem: In #2760 the last import removed the spec key.
The text was updated successfully, but these errors were encountered: