Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd 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.
|
| @@ -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} | |||
austin3dickey
May 29, 2018
Member
Perhaps change this to @note? That may make more sense than "References"
Perhaps change this to @note? That may make more sense than "References"
jameslamb
May 29, 2018
Author
Member
good call
good call
|
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
|
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 whatuptasticsearchdoes and will require extra administrative burden to test. As a reminder,get_countsbasically 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.