Ah, I was looking in the wrong spot. Thanks for pointing me to the right location.
One could make the same argument for Rules and Scripts. Sitemaps are required for the phone apps and support for building them needs to be in some UI if we are ever going to get to the possibility for UI only users (to all the text users, I’m not saying to get rid of text based sitemaps).
It’s unclear to me how much long term support there will be for sitemaps in their current form anyway. It uses the same Xtext based parser so if we are going to get to where we can drop those libraries something is going to have to replace the file format at the very least. If it weren’t for the fact that the phone apps are based on them I’d be fine with deprecating them when .items and .things files as they exist now are deprecated. But it will be pretty odd to have a system where everything can be done through a UI but if you want to use the official phone app you have to manually create text configs.
That sounds like a reasonable. While there is a REST interface to interact with persistence there is no REST API I can find to actually configure the persistence strategies. Basically a REST end point to set:
Strategies {
default = everyChange
}
Items {
gChart*,gIndoorTemps,gIndoorHumidity,vIsCloudy : strategy = everyUpdate
gHistory*: strategy = everyChange
}
Save every update to members of gChart, and the values of gIndoorTemps, gIndoorHumidity and vIsCloudy. Save every change to members gHistory.
or
Strategies {
default = everyChange
}
Items {
* : strategy = everyChange, restoreOnStartup
}
Save every change to all Items and restore all Items on startup.
It looks like everything else is possible but I see no way to set the strategy.
Also note that one can define their own strategy using a cron expression. For rrd4j everyMinute is a requirement.
Strategies {
// for rrd charts, we need a cron strategy
everyMinute : "0 * * * * ?"
}
Items {
// persist items on every change and every minute
* : strategy = everyChange, everyMinute
}
Maybe the ability to configure the strategies is under one of the other REST endpoints?