-
Notifications
You must be signed in to change notification settings - Fork 123
mount type by default #2733
Comments
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 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. |
@kodebach what do you think? |
We can think about it in #3693. Since If we mount it by default, we may need to do some modifications too. For example, There are also still the issues with normalization. Which I think can only be solved by different phases. All in all, I think we should first finish #3693 and then we can discuss making |
PS. IMHO the best solution would still be to integrate the type system directly into |
Not only global plugins can be mounted by default, e.g. sync also gets mounted by default (for every mountpoint).
I agree that this is confusing, let us drop "any" and make "string" any string.
Good idea.
I think it is best if we disable such forms of normalization as they are not really a killer-feature and "origvalue" is confusing.
It should be unrelated but I agree that we should not start too many tasks at once.
This is imho a pure optimization and brings many complications for bindings. |
With the new system in #3639 it would be up to the backend plugin what is mounted by default and what isn't. For example in a database backend it makes no sense to mount
The normalization is required for the current high-level API and anything else that uses
I actually think the normalization is a pretty good feature (when it works), because the application can be kept very simple, while the configuration is flexible. This is especially interesting, when a less strict format like INI is used. In formats with strict typing e.g. JSON the issue is less important.
Yes,
Yes, it is a kind of optimization and bindings could ignore it entirely. They could just convert the string value again. However, this is exactly the problem with the current system. The The conversion functions |
Yes, but probably it still makes sense to mount
I agree but can't this easily be done post-1.0. Do you see any issues? (Assuming that 1.0 will have both a fixed kdb+plugin API.)
Yes, we should advertise them better and we need a tutorial about types 😉, I added elektraKeyTo* in #280 (which already proposed that there should be a tutorial about types). Moving everything to the core might help short-time but will a huge long-term maintenance problem (e.g. if we decide to adapt to another type system). |
In principle it should be possible to define a fixed API for 1.0 that can later be extended. Since backend plugins will be responsible for calling plugins and can define their own positions, the only relevant thing the kdb<->plugin API actually defines is when
I don't think tutorials are the solution to everything. I'd assume most people look at tutorials when they are new to Elektra. But once they are already using Elektra, they probably don't want to read tutorials aimed at beginners. What we need is better discoverability. For the API, the docs and the website. I already know a lot about Elektra. Whenever I need look something up, I don't look at the docs. I read the source code, because I know I won't find it in the docs or on the website unless I check every file/page. Tutorials are nice to get started with Elektra, or a part of Elektra. For example, if I want to add command-line options to my app, reading the tutorial for that makes sense. However, what if I'm already using IMO what we need is not tutorials, but more structured documentation, where I immediately know where to look when I need to answer to "How to do X?".
I mostly want some way to cache the decoded value inside |
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. |
The "type" plugin implements essential semantics, thus it should always be present except for spec (where it would always fail as the keys might not have values/defaults, see #2723)
The text was updated successfully, but these errors were encountered: