t/concur fails
@malcolmsparks is already working on this.
Since Nov 4, 2019.
Assessment
This issue has not been assessed yet.
Description
(t/concur
#:tick{:beginning #time/instant"2000-01-01T01:00:01.011Z", :end #time/instant"2000-01-01T02:00:01.011Z"}
#:tick{:beginning #time/instant"2000-01-01T00:00:00.003Z", :end #time/instant"2000-01-01T01:00:00.003Z"}
#:tick{:beginning #time/instant"2000-01-01T01:00:01.179Z", :end #time/instant"2000-01-01T02:00:01.179Z"})
Fails with:
No implementation of method: :< of protocol: #'tick.core/ITimeComparison found for class: nil
Because: tick.interval/relation cannot handle nil, which it will get in the example above.
I worked around it by doing:
(defn safe-concur
([] nil)
([x] x)
([x & args]
(reduce
(fn safe-concur-check [x y]
(and
(and x y)
(tick.interval/concur x y)))
x args)))
- Dominant language
- Clojure
- Stars
- 646
- Forks
- 61
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 juxt/tick
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
help wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
interval-calculus
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
interval-calculus
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Similar issues
-
.Team/Graphy
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
metabase/metabase#87741 · 1 comment ·
Maintainers usually reply within 1 day
-
Accumulator with a false initial value does not propagate it again after all facts are retractedPossibly taken @0z5a claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oracle-samples/clara-rules#517 ·
-
internal IOP tokens no changelog no qa
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Misleading WARNING "Failed to find resource type wavc, couldn't enable for streaming" when the WAVOpenbug triage
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
flaky
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day