luci/modules/luci-base/luasrc/view/cbi
Jo-Philipp Wich 8deb949551 treewide: rework uci apply workflow
Switch to rpcd based uci apply/rollback workflow which helps to avoid soft-
bricking devices by requiring an explicit confirmation call after config
apply.

When a user now clicks "Save & Apply", LuCI first issues a call to uci apply
which commits and reloads configuration, then goes into a polling countdown
mode where it repeatedly attempts to call uci confirm.

If the committed configuration is sane, the confirm call will go through and
cancel rpcd's pending rollback timer.

If the configuration change leads to a loss of connectivity (e.g. due to bad
firewall rules or similar), the rollback mechanism will kick in after the
timeout and revert configuration files and pending changes to the pre-apply
state.

In order to cover such rare cases where a lost of connectivity is expected
and desired, the user is offered an "unchecked" apply option after timing
out, which allows committing and applying the changes anyway, without the
extra safety checks.

As a consequence of this change, the luci-reload mechanism is now completely
unsused since rpcd uses ubus config reload signals to reload affected
services, which means that only procd-enabled services will receive proper
reload treatment with the new workflow.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-05-05 23:11:23 +02:00
..
apply_widget.htm treewide: rework uci apply workflow 2018-05-05 23:11:23 +02:00
browser.htm luci-base: fix browser.htm template 2018-03-01 12:31:50 +01:00
button.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
cell_valuefooter.htm luci-base: refactor cbi dependency handling code 2016-01-18 17:05:36 +01:00
cell_valueheader.htm luci-base: refactor cbi dependency handling code 2016-01-18 17:05:36 +01:00
compound.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
delegator.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dvalue.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
dynlist.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
error.htm Globally convert headline anchors into name attributes. 2015-10-06 13:30:33 +02:00
filebrowser.htm luci-base: escape path strings and field parameter 2018-04-07 11:43:44 +02:00
firewall_zoneforwards.htm luci-base: gracefully handle broken firewall forwarding sections 2017-10-17 17:35:01 +02:00
firewall_zonelist.htm luci-base/firewall_zonelist: fix visual interface/background alignment 2018-03-09 08:13:03 +01:00
footer.htm luci-base: support hiding the "Back to Overview" button in cbi maps 2018-05-03 08:25:26 +02:00
full_valuefooter.htm luci-base: refactor cbi dependency handling code 2016-01-18 17:05:36 +01:00
full_valueheader.htm luci-base: refactor cbi dependency handling code 2016-01-18 17:05:36 +01:00
fvalue.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
header.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
lvalue.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
map.htm treewide: rework uci apply workflow 2018-05-05 23:11:23 +02:00
mvalue.htm luci-base: mvalue: fix column wrapping 2017-01-26 00:07:26 +01:00
network_ifacelist.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
network_netinfo.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
network_netlist.htm luci-base: view: make checkboxes and radio buttons styleable 2016-03-03 22:06:39 +01:00
nsection.htm luci-base: cbi: remove duplicate id from template 2016-02-09 16:12:02 +01:00
nullsection.htm luci-base: cbi: fix misplaced ID in nullsection template 2016-02-24 17:40:53 +01:00
simpleform.htm luci-base: properly initialize cbi.js on SimpleForms 2018-04-06 16:39:39 +02:00
tabcontainer.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
tabmenu.htm luci-base: improve tab hide logic 2016-01-18 11:23:11 +01:00
tblsection.htm luci-base: fix colspans calculation in tblsection 2018-03-27 10:39:55 +02:00
tsection.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
tvalue.htm luci-base: cbi: refactor event handling js 2016-01-18 19:34:02 +01:00
ucisection.htm luci-base: cbi: further refactoring 2016-02-10 18:11:49 +01:00
upload.htm luci-base: cbi: refactor event handling js 2016-01-18 19:34:02 +01:00
value.htm luci-base: cbi: rely on auto-serialization for combobox choices 2016-02-10 19:36:37 +01:00
valuefooter.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00
valueheader.htm Rework LuCI build system 2015-01-08 16:26:20 +01:00