Cannot pass Time parameter to time_entries.updated_since
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start in time_entries.rb and reproduce the failure with a Time, DateTime, or ISO 8601 string passed as updated_since. Trace the .map call and compare the generated request with the working Date case; done means supported time values no longer raise NoMethodError and the API receives the intended updated_since value.
Written by the indexing model from the issue text.
Description
This works:
h = Harvesting::Client.new
h.time_entries(updated_since: Date.yesterday)
This does not work:
h = Harvesting::Client.new
h.time_entries(updated_since: 1.hour.ago)
All attempts to pass time in addition to a date yield the following error:
NoMethodError (undefined method `map' for nil:NilClass)
I have tried with Time and DateTime classes, as well as passing a string (e.g. Time.now.iso8601) - all return this error, even though the Harvest API says time is acceptable in this field. I looked through time_entries.rb and see where this gem is trying to do a .map but got lost from there on where this is failing. Thanks in advance.
- Dominant language
- Ruby
- Stars
- 29
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fastruby/harvesting
-
Line Item Models OpenFeature Request
Difficulty 3/5 1-2 days Newbie friendliness 25/100
fastruby/harvesting#36 · 5 comments ·
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 50/100
fastruby/harvesting#20 · 7 comments ·
-
Feature Request
Difficulty 4/5 3-5 days Newbie friendliness 38/100
fastruby/harvesting#12 · 4 comments ·
All issues in fastruby/harvesting
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TheOdinProject/curriculum#31408 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Homebrew/homebrew-cask#288729 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100