-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Issue type:
- ➕ Feature request
Description:
The idea is to add an option so values that have been set in a different (imported) config can be overridden. For example in CSS we have the following config:
{
"@id": "urn:solid-server:default:ResourceLocker",
"@type": "WrappedExpiringReadWriteLocker",
"locker": { ... },
"expiration": 3000
}This is one of the configs that gets imported into the main config to set up the locking system. If a user wants to change the expiration time of the locks, they would have to copy everything in this import somewhere else, change the expiration value, and import that config instead (or copy it into the main config).
It would be nice if instead something like this could be added to the main config instead:
{
"@id": "urn:solid-server:default:ResourceLocker",
"@override": {
"WrappedExpiringReadWriteLocker:_expiration": 5000
}
}Which would make it much easier for users to adapt existing configurations.
The disadvantage (besides potentially being complex to implement) is that if you start from a config that already has an override value, there is no way to override it again. Perhaps a weight system could be used there but that would increase complexity.
Potentially there are also other possible solutions, but in general the ability to change the value of a parameter from an imported config would make several situations much easier.