-
Notifications
You must be signed in to change notification settings - Fork 91
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
Conversation
@@ -1297,19 +1297,6 @@ def create_dataset_from_sources( | |||
|
|||
return self.get_dataset(name) | |||
|
|||
def register_new_dataset( |
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.
This API is no longer used after removing save_as
logic from query_wrapper
below, so I have removed it.
if not save: | ||
assert result.dataset is None | ||
return |
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.
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.
a84d793
to
7cd0d9a
Compare
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.
7cd0d9a
to
6fe8e24
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
My favorite kind of PRs with removing outdating code 😅👍
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.