Skip to content

Conversation

@jeff-cohere
Copy link
Collaborator

This PR adds a transfer/records endpoint that allows for the querying of completed transfers bookended by two timestamps. The logic is simple, but devising a test for it can take some care.

In advance of devising a unit test for this endpoing (in part because we're reworking a lot of unit tests at the moment), I wanted to put this up and try to test it this weekend when I'm testing the new transfer orchestration code in NERSC's Spin environment.

@jeff-cohere jeff-cohere added enhancement New feature or request journal related to the transfer journal labels Oct 31, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://kbase.github.io/dts/pr-preview/pr-173/

Built to branch gh-pages at 2025-10-31 15:33 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.03%. Comparing base (276ac9a) to head (d36dd24).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #173   +/-   ##
=======================================
  Coverage   67.03%   67.03%           
=======================================
  Files          23       23           
  Lines        2175     2175           
=======================================
  Hits         1458     1458           
  Misses        574      574           
  Partials      143      143           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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


records, err := journal.Records(input.Start, input.End)
if err != nil {
return nil, huma.Error404NotFound(err.Error())
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A 404 error here is a bit presumptuous, so maybe this could be fleshed out with all the relevant possibilities in a type switch statement.

@jeff-cohere jeff-cohere merged commit 43fed6f into main Nov 4, 2025
6 checks passed
@jeff-cohere jeff-cohere deleted the xfer-journal-endpoint branch November 4, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request journal related to the transfer journal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants