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

query: remove use of pipe for communication #393

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Sep 4, 2024

Now, we fetch all dataset versions created with a given job_id, and then choose the latest one by its datetime. (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.

Comment on lines 1935 to 1937
for dataset, dv, job in self.list_datasets_versions():
if job and str(job.id) == job_id:
yield dv.created_at, (dataset, dv)
Copy link
Member Author

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.

@skshetry skshetry force-pushed the remove-comm-channel branch from 38466d2 to 2e23af7 Compare September 5, 2024 05:29
Copy link

cloudflare-workers-and-pages bot commented Sep 5, 2024

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: ed7f42b
Status: ✅  Deploy successful!
Preview URL: https://00640549.datachain-documentation.pages.dev
Branch Preview URL: https://remove-comm-channel.datachain-documentation.pages.dev

View logs

@skshetry skshetry force-pushed the remove-comm-channel branch from 2e23af7 to 4f50d07 Compare September 5, 2024 05:32
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.82%. Comparing base (576b69a) to head (ed7f42b).
Report is 1 commits behind head on main.

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     
Flag Coverage Δ
datachain 86.77% <100.00%> (+0.03%) ⬆️

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

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

@skshetry skshetry force-pushed the remove-comm-channel branch from 4f50d07 to c841cee Compare September 5, 2024 06:46
Copy link
Contributor

@dreadatour dreadatour left a comment

Choose a reason for hiding this comment

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

🙏

@skshetry skshetry force-pushed the remove-comm-channel branch from c841cee to 8814ef6 Compare September 5, 2024 07:19
@skshetry skshetry force-pushed the remove-comm-channel branch from 8814ef6 to ed7f42b Compare September 5, 2024 09:14
@skshetry skshetry merged commit a8d3640 into main Sep 5, 2024
38 checks passed
@skshetry skshetry deleted the remove-comm-channel branch September 5, 2024 10:20
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