zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

zipstore delitems via override

Open I-am-Emmanuel opened this issue 3 years ago • 13 comments

Fixes https://github.com/zarr-developers/zarr-python/issues/828

TODO:

  • [ ] Add unit tests and/or doctests in docstrings
  • [ ] Add docstrings and API docs for any new/modified user-facing classes and functions
  • [ ] New/modified features documented in docs/tutorial.rst
  • [ ] Changes documented in docs/release.rst
  • [ ] GitHub Actions have all passed
  • [ ] Test coverage is 100% (Codecov passes)

I-am-Emmanuel avatar Oct 13 '22 17:10 I-am-Emmanuel

I want to know if this is actually expected of me to do. Please if it is not give me a details explanation of what to do.

I-am-Emmanuel avatar Oct 13 '22 17:10 I-am-Emmanuel

This pull request introduces 1 alert when merging 96d11834ff3e2f618614d937ede7c07366b6b210 into eb6d14364280fa64b778913bc032aee783e1f65f - view on LGTM.com

new alerts:

  • 1 for Unused local variable

lgtm-com[bot] avatar Oct 13 '22 17:10 lgtm-com[bot]

That's incredible. I'm not sure whether that is what is expected of me. I'll continue with the testing. Thanks

I-am-Emmanuel avatar Oct 14 '22 00:10 I-am-Emmanuel

I think it should be doable and believe you are up to the task. I hope I've given enough info. As always though, please feel free to ask questions. Any question that occurs to you is worth asking 🙂

jakirkham avatar Oct 14 '22 00:10 jakirkham

Oh, just seeing this. I'm on it.

On Fri, Oct 14, 2022 at 1:55 AM jakirkham @.***> wrote:

I think it should be doable and believe you are up to the task. I hope I've given enough info. As always though, please feel free to ask questions. Any question that occurs to you is worth asking 🙂

— Reply to this email directly, view it on GitHub https://github.com/zarr-developers/zarr-python/pull/1184#issuecomment-1278338428, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZBHSCVU5GTYMR62UFVAZBTWDCVQLANCNFSM6AAAAAAREQIMUY . You are receiving this because you authored the thread.Message ID: @.***>

I-am-Emmanuel avatar Oct 14 '22 10:10 I-am-Emmanuel

This pull request introduces 1 alert when merging a83bff2b06ceda1449939bce5048d0f7caaec38e into 2c52b172ead27a1d5918563096703d9f3ed0f5f5 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

lgtm-com[bot] avatar Oct 14 '22 13:10 lgtm-com[bot]

Something is perplexing me as I prepare to participate to the test. I see the test is checking for the pop item rather than the del item, therefore I rewrite a test for the previously worked-on function del_item. To minimize confusion, I also included a function for pop_items in the storeitem class.

I-am-Emmanuel avatar Oct 14 '22 13:10 I-am-Emmanuel

This pull request introduces 1 alert when merging 0144f953e99ec73f4d03a7e6825ea48578e9e600 into 2c52b172ead27a1d5918563096703d9f3ed0f5f5 - view on LGTM.com

new alerts:

  • 1 for Unnecessary delete statement in function

lgtm-com[bot] avatar Oct 14 '22 16:10 lgtm-com[bot]

Thanks Emmanuel! 🙏

Looks like many things are done. So marked them resolved above.

The linter raised a few stylistic issues. Went ahead and just added these to the PR for simplicity.

There is one more test remaining that I've commented on above.

There is a test failure we need to look at. Will give it some thought.

jakirkham avatar Oct 20 '22 20:10 jakirkham

Think we need to tweak a few of ZipStore's methods to treat keys with values equal to b"" as missing. Once that is done this should fix the remaining test issues (and remove the need for special casing ZipStore in the tests)

jakirkham avatar Oct 25 '22 23:10 jakirkham

Waiting for this work to be reviewed.

I-am-Emmanuel avatar Oct 26 '22 15:10 I-am-Emmanuel

Thanks @I-am-Emmanuel! 🙏

That's a good start. Think we still need similar changes to __contains__ and keylist (skipping empty entries)

jakirkham avatar Oct 26 '22 16:10 jakirkham

@I-am-Emmanuel, would you like to finish this?

sanketverma1704 avatar Mar 14 '24 02:03 sanketverma1704