-
Notifications
You must be signed in to change notification settings - Fork 51
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
Keep general
state from becoming stale
#148
Comments
@Caleb-Ellis can you provide an example of where this is an issue in the app please? |
@squidsoup It's not currently a huge issue, and I imagine it's only going to affect MAASes with more than one person using it at a time. Basically there are a few fields in I became aware of it in the above PR where you can update the default OS/release for deploying machines. The list of OSes and releases you can select are fetched from e.g. if you changed the default OS/Release from Bionic to Xenial, you would have in state: state: {
general: {
osInfo: {
default_osystem: "ubuntu",
default_distro_series: "bionic"
...
}
...
},
config: {
items: [
{
name: "default_osystem",
value: "ubuntu"
},
{
name: "default_distro_series",
value: "xenial"
},
...
]
...
}
...
} ...until you explicitly fetch |
It looks like we get 'config' sync messages but not 'general' when these values change. We can either implement some kind of mapping between these on our end or request changes to the ws api. |
Making the change on the WS API sounds potentially less brittle, what would
that look like?
…On Mon, Nov 11, 2019 at 3:39 PM huwshimi ***@***.***> wrote:
It looks like we get 'config' sync messages but not 'general' when these
values change. We can either implement some kind of mapping between these
on our end or request changes to the ws api.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#148>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA7Z3S623CSBTT7O2YFN4TQTHUM3ANCNFSM4IO5254A>
.
--
Kit Randel (blr)
Canonical - Web Team
|
The change would just be to add the normal sync/update message that other models get when they change. |
I couldn't find a Launchpad bug for this so I filed one: https://bugs.launchpad.net/maas/+bug/1950106. |
Still valid. It's the root cause for a couple of other LP bugs too (that I can't quite remember). Adding a blocked label as essentially this requires a backend fix |
Relevant PR comments: #133 (review)
At the moment,
general
data is only fetchable and in many cases its in some way derived fromconfig
state. We need a way to re-fetchgeneral
state whenever config is synced (UPDATE_CONFIG_NOTIFY
).The text was updated successfully, but these errors were encountered: