-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#19002 from jack-w-shaw/JUJU-7548_wire_up_appl…
…ication_display_status juju#19002 Make use of the new GetApplicationDisplayStatus service method to calculate the application display status, backed by DQLite. You may be wondering why this is included in the task to wire up *unit* statuses. This is because our facade handlers would also query the unit statuses and use those to derive the application status if it is unset. However, this logic has now been encapsulated into the domain, so we can drop all of this. As a result, we can also drop a lot of code out of core/status, and (*Application).UnitStatuses from the state package. Also, as a flyby, restore apiserver/facades/agent/uniter/status_test.go tests. ApplicationStatus, the method being tested, no longer depends on Mongo state, so we can remove the factory methods and move over to mocked services entirely. ## QA steps ``` juju bootstrap lxd lxd juju add-model m juju deploy ubuntu ``` & watch the unit and application status, ensuring that the application becomes active when the unit does
- Loading branch information
Showing
15 changed files
with
297 additions
and
483 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
apiserver/facades/agent/uniter/legacy_service_mock_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.