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 support for saving dataset query with a given name #389

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Sep 4, 2024

Reverts https://github.com/iterative/dvcx/pull/1443.

Since we want to make save explicits via users, and are dropping last expression wrapping thing in #360, we won't have any mechanism to support this feature.

Also, this feature is only used in CLI which is no longer exposed to the users.

Part of #360.

@@ -1297,19 +1297,6 @@ def create_dataset_from_sources(

return self.get_dataset(name)

def register_new_dataset(
Copy link
Member Author

@skshetry skshetry Sep 4, 2024

Choose a reason for hiding this comment

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

This API is no longer used after removing save_as logic from query_wrapper below, so I have removed it.

Comment on lines +193 to +194
if not save:
assert result.dataset is None
return
Copy link
Member Author

@skshetry skshetry Sep 4, 2024

Choose a reason for hiding this comment

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

Previous test did not test with save=False and when save_as=None. So this scenario was never hit.

I am only testing this just to make parametrization easier. #360 will require adjusting these anyway.

Reverts iterative/dvcx#1443.

Since we want to make save explicits via users, and are dropping last expression
wrapping thing in iterative#360, we won't have any mechanism to support this feature.
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.76%. Comparing base (16ed477) to head (6fe8e24).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
- Coverage   86.78%   86.76%   -0.03%     
==========================================
  Files          92       92              
  Lines       10121    10098      -23     
  Branches     2054     2050       -4     
==========================================
- Hits         8784     8762      -22     
+ Misses        988      987       -1     
  Partials      349      349              
Flag Coverage Δ
datachain 86.70% <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
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.

My favorite kind of PRs with removing outdating code 😅👍

@skshetry skshetry merged commit 767f8e0 into iterative:main Sep 4, 2024
32 checks passed
@skshetry skshetry deleted the drop-save-as branch September 4, 2024 10:22
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.

2 participants