-
-
Notifications
You must be signed in to change notification settings - Fork 226
[docs] Extend description of templates behaviour #991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,12 @@ once the device connects to OpenWISP it will download and apply the | |
default templates without the need of manual intervention from the network | ||
operators. | ||
|
||
**Side note:** To be precise, a default template is automatically assigned not | ||
to any new device but to any new device config. So if you have any | ||
device which was registered before a specific template was made a default | ||
template, you can delete its config and create a new one, then the new config | ||
will automatically have all current default templates assigned. | ||
|
||
An organization specific template flagged as default will be automatically | ||
assigned to any new device which will be created in the same organization. | ||
|
||
|
@@ -116,6 +122,9 @@ unassigned from a device configuration, they can only be overridden. | |
They will be always assigned earlier than default templates, so they can | ||
be overridden if needed. | ||
|
||
Another difference to :ref:`default_templates` is that required templates are | ||
assigned to all devices, not just new devices. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you 100% sure of this? I don't remember we added logic to automatically modify existing devices. As far as I remember the required template would be applied only if the user saves the device object. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't see it in the code but I noticed that a required template had been marked as assigned (with its checkbox disabled) in all devices after the template was made required. I didn't create a new device at all. That's why I thought that adding this information to the docs would be useful as this is a clear difference in behaviour compared to default templates. Edit: this comment #480 (comment) puts some doubt on it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trying to investigate the current behaviour, I did the following:
Then the situation is as follows:
So my previous observation and my additions to the docs match my tests. |
||
|
||
In the example above, the "SSID" template is flagged as "(required)" and | ||
its checkbox is always checked and disabled. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shall keep in mind this could change: #480.