Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
List and show- controllers update client store. #7806
Conversation
| @@ -82,14 +82,14 @@ controllers: | ||
| models: | ||
| controller: | ||
| uuid: ghi | ||
| - current-model: controller |
axw
Aug 29, 2017
Member
what necessitates this change? why is it OK for the model name above to be unqualified, but not current-model?
anastasiamac
Aug 29, 2017
Member
This is the outdated test data. We will always store qualified name (and test entries for model names will be updated when store models get updated).
Comparison logic worked ok in tests because we have never written test store data through QualifyingClientStore. Since we update store now as part of running the commands, all model names will be qualified. For current model asterix to be displayed, current model names need to be qualified to start with, otherwise store update will remove them.
|
$$merge$$ |
|
Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju |
anastasiamac commentedAug 29, 2017
Description of change
Both 'controllers --refresh' and 'show-controller' get full models list for a given controller. Use this as an opportunity to update client store.
Whilst the updates on th commands are straightforward, most of the movement proposed in this PR is in the test since tests were setup in such a way that client side store was re-used to supply data "coming" from the API. Here we separate API data from store data to check that the store is updated.
QA steps
Documentation changes
n/a - internal change
Bug reference
n/a