Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-38678: Expand dataset refs before passing them to DefineVisitsTask #448

Merged
merged 1 commit into from Apr 13, 2023

Conversation

andy-slac
Copy link
Contributor

DefineVisitsTask calls expandDataId() internaly to expand each dataset ref in a loop, but this is not a recommended way. This patch adds expanded() call on the iterator before passing it to the task to achieve the same. I have not removed expandDataId() from the task, as it may be also be used in other contexts which use un-expanded refs.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

DefineVisitsTask calls `expandDataId()` internaly to expand each dataset ref
in a loop, but this is not a recommended way. This patch adds `expanded()`
call on the iterator before passing it to the task to achieve the same. I have
not removed `expandDataId()` from the task, as it may be also be used in other
contexts which use un-expanded refs.
@andy-slac andy-slac merged commit 9a2f90d into main Apr 13, 2023
3 checks passed
@andy-slac andy-slac deleted the tickets/DM-38678 branch April 13, 2023 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants