Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[ENH] V1 → V2 API Migration - datasets #1608
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
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
[ENH] V1 → V2 API Migration - datasets #1608
Changes from all commits
bfb2d3e707e1f1cabaecf79cf49c5c8791a85c111339bf86a7b66677d2224c49608c36f6bc7f7baa3a3829c93d17674b3addb077452b93feec9477fcea61883d4e84d839bd33841734910d134a935f0f49514df809f9ad60b5242753bee9433b4ca0a6b9a45f924b32541b0f2acb173f3e8d1f0f83bdb5969c7d82a42712001caadfb38a2d03c4ca98d708fd4f75bba164f66fc4dae4336c20a2ab3c1eb0fc3c74741a66b81dff8d27ac86f2a488cacbc7194599c7e12867862f09f3cd5f731cebad7842aefdb380f40b027ac16726ac1dfe62924c927696bb190face95daaa67841ea8cc515aae6a92df1b8c22afc839a61c922afffa9ce9a7b2d2127fe790896511272ea1a4a696c49755636dd07af342d9c8ec002b989045d896c437966e27470ad04d9569263f7f79dea29f6497c2dce7f5440dd4600fc917c3d86b18aba3d3ed99d54ddc22e3a731857329ef187cf94c89298fbda987050233065c276b92bb419edcbcb6d9378544c8ad4c413bfab1a156392be8276324a73f75942ee7fa34f37607c74754a24732087afb0e33b96559ea8078583a2e809eb6c904be5bbd9027c01c1efdebdd048d598041ede5461a97d899a9858741423a3450ac28f824a66245c762fb477c21f2eac24fc2ed65fef3b07de29db3f13b4e5388ac886b305f4f0b2bf164e97e6c2c66d73caa54e8e2d452d3c23581239eb82350eed377a000eb79f6187b1a9e7fd716ecf3c29e71b4ff0b293155eed3cc9a7a6b82f434199738de99b7d0202b00fa9e3b7d611071ecbbba65472ed921926644b48b511b19de4df12d377d2af204bc83bf9260928072e3447464e9f059e71b6d5e314ee28f1509b4c363855975fea9c94b43003f01db35e10d776ba7edd8f003425713356e92bc246f9dddacb90e7c44f3ec7498616dbed35e694af9cbe1c4f9468c1c2050d99b8dc0871f36791fb6416460755f13add6fe96ac0b33778d37464e79bb91db74277fac024095c68c62b7df47b5836b95e3436817fc00255b3f118fe594137526bb3996bddb3e9ab1ac3b90394ed2a6df8b4b83778204b6c4b912edd5d08d889595d104c19dffaaefe7cf967ae536a4fc0616c1c5544140830eaf8810d959d56b4719013b33a895e2eddc69f73cca28c9946b499d7cb821c82d434d452c68a32929288fe13073956ec10a18d343974bf3480de1eac6f11d4e804f58dadcc68a2b07b125ba9316586912cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
I think we can remove these parameters:
destinationandexists_okaltogether since the destination is always dynamically created from a given url usingself._get_pathThere 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.
when
download_minio_fileis calledexists_okdefaults to True,Only when
download_minio_bucketcalls the download files passes exists_ok as False, if we remove it wouldn't that functionality removed?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.
I didn't see that, in that case, I think it's fine to keep it
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
as suggested above
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.
@geetu040 Would we then remove these tests which checks if minio download to particular path and directory? eg
test__download_minio_file_to_pathThere 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.
yes, they can be removed
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.
#1608 (comment)
Since we are not removing it , its fine to keep it right? should that be removed still?
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.
we are keeping
exists_okbut still removingdestination, isn't that so?Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
can we not have same signature for all 3 methods:
DatasetsAPI.list,DatasetsV1.list,DatasetsV2.list? does it raise pre-commit failures since a few might not be used?Uh oh!
There was an error while loading. Please reload this page.
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.
Oh that v2 signature was experimental, idk how pre-commits did not catch that, Will make them same
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.
Is
mypysupposed to catch that?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.
yes unused parameters are caught under #ARG001 as seen in the
cache_directoryparams.Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.