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

Added toolkit compare #719

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Added toolkit compare #719

wants to merge 3 commits into from

Conversation

ilongin
Copy link
Contributor

@ilongin ilongin commented Dec 17, 2024

Added compare function to toolkit. It uses datachain.lib.diff.compare() to compare DataChains and returns dictionary with values for each of added, removed, modified and unchanged chains. Each chain consists only of those changes that are related to it (added only has added fields, deleted only deleted fields etc.) Keys of dicts are shortcuts for each status: A, D, MandU`.
Status column is removed from each resulting chain as it's not needed.

Also added CompareStatus enum and replaced hardcoded status letters (A, D ...) across the codebasej

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.48%. Comparing base (fc8c7c1) to head (29f744e).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #719      +/-   ##
==========================================
+ Coverage   87.44%   87.48%   +0.03%     
==========================================
  Files         114      115       +1     
  Lines       10898    10928      +30     
  Branches     1499     1503       +4     
==========================================
+ Hits         9530     9560      +30     
  Misses        990      990              
  Partials      378      378              
Flag Coverage Δ
datachain 87.41% <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.

Copy link

cloudflare-workers-and-pages bot commented Dec 17, 2024

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 29f744e
Status: ✅  Deploy successful!
Preview URL: https://9d60efed.datachain-documentation.pages.dev
Branch Preview URL: https://ilongin-715-toolkit-diff.datachain-documentation.pages.dev

View logs

@ilongin ilongin marked this pull request as ready for review December 18, 2024 01:49
@shcheklein
Copy link
Member

@skshetry @dreadatour can we please review this folks?

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