Skip to content

add interval part3#567

Merged
jd-lara merged 2 commits into
mainfrom
jd/add_interval_part3
Apr 15, 2026
Merged

add interval part3#567
jd-lara merged 2 commits into
mainfrom
jd/add_interval_part3

Conversation

@jd-lara
Copy link
Copy Markdown
Member

@jd-lara jd-lara commented Apr 15, 2026

This one change wasn't hit by the tests in PSI, it got triggered later

@jd-lara jd-lara requested review from Copilot and daniel-thom April 15, 2026 19:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes the “interval” plumbing for time series identification by allowing callers to disambiguate time series UUID lookup using an interval keyword, which is particularly relevant for forecast-like series where multiple records can share the same name/resolution.

Changes:

  • Add interval::Union{Nothing, Dates.Period} = nothing keyword argument to get_time_series_uuid.
  • Forward interval through to get_time_series_metadata during UUID lookup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +205 to 209
name::AbstractString;
interval::Union{Nothing, Dates.Period} = nothing,
) where {T <: TimeSeriesData}
metadata = get_time_series_metadata(T, component, name)
metadata = get_time_series_metadata(T, component, name; interval = interval)
return get_time_series_uuid(metadata)
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New interval keyword support in get_time_series_uuid isn’t covered by tests. Please add a unit test exercising the disambiguation case (e.g., two forecasts with same type/name/resolution but different interval, and verify the correct UUID is returned when interval is provided, and that omission is ambiguous/throws if that’s the intended behavior).

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.87%. Comparing base (c2cacfe) to head (8a2112a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #567      +/-   ##
==========================================
+ Coverage   77.78%   78.87%   +1.08%     
==========================================
  Files          75       75              
  Lines        6733     6640      -93     
==========================================
  Hits         5237     5237              
+ Misses       1496     1403      -93     
Flag Coverage Δ
unittests 78.87% <100.00%> (+1.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/time_series_interface.jl 96.24% <100.00%> (ø)

... and 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jd-lara jd-lara merged commit 8d69052 into main Apr 15, 2026
14 checks passed
@jd-lara jd-lara deleted the jd/add_interval_part3 branch April 15, 2026 20:14
@jd-lara jd-lara restored the jd/add_interval_part3 branch April 15, 2026 20:16
@jd-lara jd-lara deleted the jd/add_interval_part3 branch April 20, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants