luci-base: force menu to regenerate after uci change#7058
Conversation
Because the menu JSON can have 'depends' in them, uci changes should force the menu to regenerate. Signed-off-by: James Haggerty <james.haggerty@morsemicro.com>
|
Sooo, how does this differ from what happened in 97ebdcb ? |
|
This time it tests for a |
Could @wryun fix those also in this PR? |
|
It still wouldn't change the fact that the menu would needlessly get regenerated on every single change. |
Needless, perhaps. But regeneration still is useful in some cases. Can't we gate those conditions to make triggering it more simple? Evidently there's a need. |
|
From my perspective, I think the current behaviour is confusing, and realistically the cost of regenerating the menu vs the speed of applying changes in luci is low (any change automatically has a 4 sec hold-off, so what this adds is tiny by comparison). Even without fixing the filesystem/acl stuff - which aren't currently causing user-facing issues, AFAIK - I think this is a useful improvement. Note that even with the current base OpenWrt it can cause issues if people load the interface before the startup/hotplug stuff has finished: #6422 (comment) |
|
Closing this in favour of #7725 |
Because the menu JSON can have 'depends' in them, uci changes should force the menu to regenerate.
Checklist suggested incrementing PKG_VERSION, but AFAIK for luci this is automatic.
Closes #6422
Signed-off-by: <my@email.address>row (viagit commit --signoff)<package name>: titlefirst line subject for packagesPKG_VERSIONin the Makefile