luci/modules/luci-base/luasrc
Jo-Philipp Wich 2d352a9251 luci-base: cbi: atomically reorder uci sections
Since the switch to ubus uci operations we do not have a local application-
side cursor cache anymore, instead uci operations happen synchronously in
the rpcd backend server.

This may cause cbi section reorder operations involving multiple elements
to fail, because anonymous section hashes may change due to rehashing
between consecutive ubus uci reorder calls.

In order to avoid that problem, use the ubus uci batch reorder extension,
which allows to pass a complete (or partial) list of section ids in the
desired order in one call, bypassing the volatile section id problem.

Fixes #1844.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-03 20:02:44 +02:00
..
cbi luci-base: add a strict flag to the hostname validator 2018-04-04 23:21:53 +02:00
model luci-base: handle potential crash in luci.model.network.interface.get_i18n() 2018-05-19 22:11:08 +02:00
sgi Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
sys timezone data: update to 2018d 2018-04-07 23:26:29 +03:00
tools treewide: filter shell arguments through shellquote() where applicable 2018-04-05 09:37:43 +02:00
view luci-base: use common alert message markup 2018-05-31 19:06:48 +02:00
cacheloader.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
cbi.lua luci-base: cbi: atomically reorder uci sections 2018-06-03 20:02:44 +02:00
ccache.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
config.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
debug.lua Rework LuCI build system 2015-01-08 16:26:20 +01:00
dispatcher.lua luci-base: update coxpcall() implementation, fix runtime error reporting 2018-05-31 17:45:49 +02:00
dispatcher.luadoc luci-base: introduce luci.dispatcher.lookup() 2018-04-05 23:03:01 +02:00
http.lua luci-base: raise maximum POST value size to 100KB 2018-05-18 16:43:29 +02:00
http.luadoc luci-base: fold luci.http.protocol into luci.http 2018-04-18 16:21:27 +02:00
i18n.lua Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00
i18n.luadoc Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00
ltn12.lua Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00
store.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
sys.lua treewide: filter shell arguments through shellquote() where applicable 2018-04-05 09:37:43 +02:00
sys.luadoc luci-base: add luci.sys.net.host_hints() and regenerate documentation 2016-01-20 16:56:25 +01:00
template.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
util.lua luci-base: update coxpcall() implementation, fix runtime error reporting 2018-05-31 17:45:49 +02:00
util.luadoc luci-base: drop luci.util.dtable() 2018-04-18 16:21:27 +02:00
version.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00