Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd additional tweet fields to TweetUtils; partially address #194. #254
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
codecov
bot
Aug 10, 2018
Codecov Report
Merging #254 into master will increase coverage by
0.37%
.
The diff coverage is100%
.
@@ Coverage Diff @@
## master #254 +/- ##
==========================================
+ Coverage 70.14% 70.52% +0.37%
==========================================
Files 41 41
Lines 1025 1038 +13
Branches 191 191
==========================================
+ Hits 719 732 +13
Misses 240 240
Partials 66 66
Impacted Files | Coverage Δ | |
---|---|---|
...n/scala/io/archivesunleashed/util/TweetUtils.scala | 96.15% <100%> (+3.84%) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 62628b4...658f1fa. Read the comment docs.
codecov
bot
commented
Aug 10, 2018
•
Codecov Report
@@ Coverage Diff @@
## master #254 +/- ##
==========================================
+ Coverage 70.14% 70.52% +0.37%
==========================================
Files 41 41
Lines 1025 1038 +13
Branches 191 191
==========================================
+ Hits 719 732 +13
Misses 240 240
Partials 66 66
Continue to review full report at Codecov.
|
assert(tweet.profileLocation() == null) | ||
assert(tweet.profileName() == null) | ||
assert(tweet.profileUrl() == null) | ||
assert(tweet.profileTimezone() == null) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
greebie
Aug 10, 2018
Contributor
Maybe use ".isEmpty" instead of == null, so scalastyle does not burp. Technically the return should be String instead of Null anyway.
greebie
Aug 10, 2018
Contributor
Maybe use ".isEmpty" instead of == null, so scalastyle does not burp. Technically the return should be String instead of Null anyway.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
greebie
Aug 10, 2018
Contributor
Just for the assertions. Although this is strictly a style issue, so not mandatory. (e.g. assert(tweet.profileLocation().isEmpty)
)
greebie
Aug 10, 2018
Contributor
Just for the assertions. Although this is strictly a style issue, so not mandatory. (e.g. assert(tweet.profileLocation().isEmpty)
)
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ruebot
Aug 10, 2018
Member
It's out of scope for this PR, and should be a new ticket. Create a new ticket.
ruebot
Aug 10, 2018
Member
It's out of scope for this PR, and should be a new ticket. Create a new ticket.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
greebie
Aug 10, 2018
Contributor
Hmm. That weird - these should have been detected and resolved in #249. I will add the ticket and try to find out why scalastyle did not yell at me.
greebie
Aug 10, 2018
Contributor
Hmm. That weird - these should have been detected and resolved in #249. I will add the ticket and try to find out why scalastyle did not yell at me.
ianmilligan1
requested changes
Aug 11, 2018
Tested with new categories and all looks good – just one minor typo fix and this is ready to merge.
src/main/scala/io/archivesunleashed/util/TweetUtils.scala
def text(): String = try { (tweet \ "text").extract[String] } catch { case e: Exception => ""} | ||
/** Get the full_text. */ | ||
/** Get the the tweet full_text. */ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ruebot
Aug 11, 2018
Member
@ianmilligan1 done! I rebased locally, so it's all a single commit with the commit message I want. So, feel free to squash and merge when you're ready.
@ianmilligan1 done! I rebased locally, so it's all a single commit with the commit message I want. So, feel free to squash and merge when you're ready. |
ruebot commentedAug 10, 2018
•
edited
Edited 1 time
-
-
ruebot editedAug 10, 2018 (most recent)
ruebot createdAug 10, 2018
GitHub issue(s): #194
What does this Pull Request do?
Adds the following addition fields to TweetUtils:
How should this be tested?
Same as outlined in #252, but test additional fields.
Tests should take care of it all. But, definitely curious to see how it goes.
Additional Notes:
Still need to add some addition fields outlined in #194. Entity fields will be interesting since they are all an array.
Interested parties
@ianmilligan1 @greebie @lintool