-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add deprecation warning on get_counts #69
Conversation
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
==========================================
- Coverage 68.43% 67.68% -0.75%
==========================================
Files 4 4
Lines 548 554 +6
==========================================
Hits 375 375
- Misses 173 179 +6
Continue to review full report at Codecov.
|
R/elasticsearch_eda_funs.R
Outdated
@@ -32,6 +32,7 @@ | |||
#' , end_date = "now" | |||
#' , time_field = "dateTime") | |||
#' } | |||
#' @references \href{https://github.com/UptakeOpenSource/uptasticsearch/pull/69}{get_counts will be deprecated soon} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps change this to @note
? That may make more sense than "References"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this deprecation strategy. This function makes too many assumptions
@austin3dickey should we deprecate |
I don't think so. That's a utility that parses data you get from Elasticsearch (timestamps of the form "2016-06-28T08:53:07Z") that's not replicable in base R (I don't think you can parse military time zone abbreviations) so it seems to me that it belongs |
I like the deprecation strategy, but is there any way or need to make it more obvious? Maybe call out the deprecations in the README or NEWS documents... |
@jataggart good call, will add to the @austin3dickey ok sure. I think there's a difference between "this function should exist somewhere in the R ecosystem" and "this function belongs in uptasticsearch". That date format is not ES specific...it's called ISO 8601 and it's used in other places where a mixed date + time + TZ string representation is required. For now, I think the message is "we all feel fine about deprecating |
9cd4693
to
2873a4c
Compare
Got it building! All of the failed builds were from transient Travis issues. I just kept clicking rebuild until they resolved themselves |
Overview
In this PR, I'd like to propose deprecating
get_counts
. This function is not really central to whatuptasticsearch
does and will require extra administrative burden to test. As a reminder,get_counts
basically generates queries to check the counts of different values on a field within a period of time.This is outside of our mission for a couple of reasons:
IMHO we should remove this function from the package.
Deprecation Strategy
I propose accepting this PR so this warning goes out with the next release to CRAN (which we will attempt whenever #66 is building and gets merged).
After that release gets to CRAN, I'll submit a PR straight-up removing this function from
uptasticsearch
.We will wait at least one month to do the next release, giving people time to uncover this deprecation warning.
IF any interest is shown in the function (via people creating
issues
), we can discuss keeping it.