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

Simplify datachain.lib.listing by reusing Cilent.scandir() #376

Merged
merged 1 commit into from
Aug 30, 2024
Merged

Conversation

rlamy
Copy link
Contributor

@rlamy rlamy commented Aug 30, 2024

Fixes #373

@rlamy rlamy requested review from shcheklein, dtulga and ilongin August 30, 2024 11:56
Copy link

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 06d0061
Status: ✅  Deploy successful!
Preview URL: https://1ef6443b.datachain-documentation.pages.dev
Branch Preview URL: https://issue-373.datachain-documentation.pages.dev

View logs

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.74%. Comparing base (ed71afa) to head (06d0061).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #376      +/-   ##
==========================================
+ Coverage   86.67%   86.74%   +0.06%     
==========================================
  Files          92       92              
  Lines       10127    10072      -55     
  Branches     2057     2046      -11     
==========================================
- Hits         8778     8737      -41     
+ Misses        993      986       -7     
+ Partials      356      349       -7     
Flag Coverage Δ
datachain 86.67% <100.00%> (+0.06%) ⬆️

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.

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

Thanks @rlamy !

@rlamy rlamy merged commit 315816e into main Aug 30, 2024
38 checks passed
@rlamy rlamy deleted the issue-373 branch August 30, 2024 19:07
@ilongin
Copy link
Contributor

ilongin commented Sep 1, 2024

Even though I wanted to to this exact thing at first, my understanding was that we need to move as much "core" logic to "user / lib" level as possible for listing/indexing (that was part of the requirement). For scandir it was kind of questionable whether it really needs to be in the Client or we can move it to "upper" level and since it basically has most of the codebase used in listing I decided to lift it up.
I'm not against this refactoring, just explaining the reasoning.

@rlamy
Copy link
Contributor Author

rlamy commented Sep 2, 2024

my understanding was that we need to move as much "core" logic to "user / lib" level as possible for listing/indexing (that was part of the requirement).

I agree with that, and I think that this PR is part of it. IMO, we need to make Client independent of the core, and vice-versa, so it can become a completely app-level component. I've always understood that to be part of the plan for #33.

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.

Code duplication: datachain.lib.listing should use Client.scandir()
3 participants