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

Allow Summaries with empty objectives and deprecate DefObjectives #262

Merged
merged 1 commit into from
Nov 24, 2016

Conversation

beorn7
Copy link
Member

@beorn7 beorn7 commented Nov 23, 2016

This also updates all tests and examples to use explicitly set
objectives.

In v0.10, DefObjectives will be completely removed, and the default
Summary will have no objectives then.

Fixes #118

@stuartnelson3

@@ -54,6 +54,9 @@ type Summary interface {
}

// DefObjectives are the default Summary quantile values.
//
// Deprecated: DefObjectives will be removed in v0.10. The default will be a
Copy link
Member

Choose a reason for hiding this comment

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

Hm, it would be handy to still provide a package variable given how common these quantiles are. I doubt many people have a good feeling what error value to choose and would copy and paste it anyway.

Copy link
Contributor

Choose a reason for hiding this comment

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

Handy to provide these values in v0.10, even if they aren't used internally to the package?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. While users shouldn't really be using these in the first place, it's a breaking change and this will help quell some of the rumblings it'll cause.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, we can leave them in place, but I'd still rename then. Let's decide about that later (when we actually change the default behavior). For now, nothing changes. I have changed the comment to not suggest that they will be removed (rather: not used as default anymore).

@stuartnelson3
Copy link
Contributor

This PR is fine to me, but as @grobie is the guru who has his finger on the pulse of what the users want, I defer to him

This also updates all tests and examples to use explicitly set
objectives.

In v0.10, DefObjectives will be completely removed, and the default
Summary will have no objectives then.

Fixes #118
@beorn7
Copy link
Member Author

beorn7 commented Nov 23, 2016

As per personal discussion, I have removed the funny comments from the examples. They were grammatically wrong, and Matt taught me to not make examples funny (but relevant). Ironically, those examples were of his own (at least they were not mine, I found them when I entered the project 3y ago...).

@beorn7
Copy link
Member Author

beorn7 commented Nov 24, 2016

@stuartnelson3 Do you think comments are addressed?

@stuartnelson3
Copy link
Contributor

looks good

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.

4 participants