Update confdb tutorial following feedback from Ocado#377
Open
mcw-work wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
@st3v3nmw - please review |
st3v3nmw
approved these changes
Jun 15, 2026
Contributor
Author
|
@miguelpires / @ndyer can you please review/accept? |
Clarified the role of the custodian snap in managing views.
Contributor
Author
|
@miguelpires rebased |
st3v3nmw
reviewed
Jun 19, 2026
|
|
||
| Now let’s create some view rules to access confdb. | ||
|
|
||
| In our example, we'll use one snap to configure the network and another to access it, which means we need two views: `wifi-admin` and `wifi-state`. |
Member
There was a problem hiding this comment.
Unfortunately, the rebase has undone changes that landed in #378.. llike renaming the views to wifi-admin & wifi-state. And now the storage paths start with v1
miguelpires
requested changes
Jun 19, 2026
miguelpires
left a comment
Contributor
There was a problem hiding this comment.
This seems to be reverting several changes made to make the docs consistent with SD247
Comment on lines
+111
to
+118
| request: "{name}.ssid" | ||
| storage: "wifi.{name}.ssid" | ||
| - | ||
| request: "{name}.password" | ||
| storage: "v1.wifi.{name}.psk" | ||
| request: "{name}.password" | ||
| storage: "wifi.{name}.psk" | ||
| - | ||
| request: "{name}.state" | ||
| storage: "v1.wifi.{name}.state" | ||
| request: "{name}.state" | ||
| storage: "wifi.{name}.state" |
Contributor
There was a problem hiding this comment.
This is restoring the pre-SD247 paths
Comment on lines
+296
to
+298
| snap connect custodian-snap:configure-wifi | ||
| snap connect custodian-snap:access-wifi | ||
| snap connect reader-snap:access-wifi |
| Done ... ... Run hook change-view-configure-wifi of snap "custodian-snap" | ||
| Done ... ... Run hook observe-view-access-wifi of snap "test-snap" | ||
| Done ... ... Commit changes to confdb (NI7Jstuu8gffcoXr02i1kYt898p6Co0A/network/wifi-setup) | ||
| Done ... ... Clears the ongoing confdb transaction from state |
| Now let’s create some view rules to access confdb. | ||
|
|
||
| In our example, we'll use one snap to configure the network and another to access it, which means we need two views: `wifi-admin` and `wifi-state`. | ||
| In our example, we'll use one snap as custodian of the two views and allowing changes to the configuration of the network, and another snap to access it. This means we will need two views: `configure-wifi` and `access-wifi`. |
Contributor
There was a problem hiding this comment.
The view names here are also the old ones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See https://warthogs.atlassian.net/browse/DMENG-975