-
Notifications
You must be signed in to change notification settings - Fork 101
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
query: remove use of pipe for communication #393
Conversation
src/datachain/catalog/catalog.py
Outdated
for dataset, dv, job in self.list_datasets_versions(): | ||
if job and str(job.id) == job_id: | ||
yield dv.created_at, (dataset, dv) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need an API for listing dataset versions by a given job id in the future for performance reasons.
38466d2
to
2e23af7
Compare
Deploying datachain-documentation with Cloudflare Pages
|
2e23af7
to
4f50d07
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #393 +/- ##
==========================================
+ Coverage 86.81% 86.82% +0.01%
==========================================
Files 93 93
Lines 10079 10043 -36
Branches 2048 2045 -3
==========================================
- Hits 8750 8720 -30
+ Misses 984 980 -4
+ Partials 345 343 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4f50d07
to
c841cee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
c841cee
to
8814ef6
Compare
8814ef6
to
ed7f42b
Compare
Now, we fetch all dataset versions created with a given
job_id
, and then choose the latest one by itsdatetime
. (If there are multiple dataset versions with the same datetime, the first one encountered is used but that may be rare).This removes the need for using a pipe to read and write dataset version from a script, which is too complicated.
Part of #360.