Skip to content
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

Move state multiwatcher package #10846

Merged
merged 8 commits into from
Nov 5, 2019

Conversation

howbazaar
Copy link
Contributor

As a prelude to making the all watchers combined and their own worker, it made sense to move the actual multiwatcher delta types.

Due to name clashes in the params package, two of the delta types have been renamed to use Update suffix rather than Info.

There is only one actual difference in this change, and it is in serialization param for the address type. The new Address uses "space-id" for the provider ID. The old structure used something else. I'm almost 100% confident that this was never used by the GUI nor anyone else, and I didn't feel that it necessitated having its own type just for something that was unused.

@howbazaar
Copy link
Contributor Author

Oh, part of this was also to move the Job and Block constants into core/model rather than the params package.

These constants were used throughout the code, and had no place in the params package.

Copy link
Contributor

@babbageclunk babbageclunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice!

type ApplicationInfo struct {
// ApplicationResult holds an application info.
// NOTE: we should look to combine ApplicationResult and ApplicationInfo.
type ApplicationResult struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird to have a type named *Result without any error field.

@howbazaar
Copy link
Contributor Author

$$merge$$

@jujubot jujubot merged commit f26dd43 into juju:develop Nov 5, 2019
@howbazaar howbazaar deleted the move-state-multiwatcher-package branch November 5, 2019 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants