Skip to content

fix: allow backends not to implement list_like disabling#766

Merged
JoanFM merged 18 commits intomainfrom
fix-disable-offset-id
Nov 14, 2022
Merged

fix: allow backends not to implement list_like disabling#766
JoanFM merged 18 commits intomainfrom
fix-disable-offset-id

Conversation

@JohannesMessner
Copy link
Copy Markdown
Member

A simple fix that makes it so storage backend implementations don't necessarily have to have a _list_like property.
We still want to encourage all backends to implement that feature, but it won't outright fail.
Besides, I think it is a better pattern not to assume the existence of a certain field that is outside the Mixin's control.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 14, 2022

Codecov Report

Base: 88.13% // Head: 86.61% // Decreases project coverage by -1.52% ⚠️

Coverage data is based on head (6aed7b3) compared to base (efc203f).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #766      +/-   ##
==========================================
- Coverage   88.13%   86.61%   -1.53%     
==========================================
  Files         133      133              
  Lines        6703     6703              
==========================================
- Hits         5908     5806     -102     
- Misses        795      897     +102     
Flag Coverage Δ
docarray 86.61% <100.00%> (-1.53%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/storage/base/getsetdel.py 91.09% <100.00%> (ø)
docarray/document/strawberry_type.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/document/mixins/strawberry.py 16.27% <0.00%> (-79.07%) ⬇️
docarray/array/mixins/pydantic.py 61.53% <0.00%> (-38.47%) ⬇️
docarray/array/mixins/strawberry.py 62.50% <0.00%> (-37.50%) ⬇️
docarray/document/mixins/pydantic.py 86.00% <0.00%> (-8.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Johannes Messner <[email protected]>
Co-authored-by: Joan Fontanals <[email protected]>
Signed-off-by: Johannes Messner <[email protected]>
@JohannesMessner JohannesMessner marked this pull request as ready for review November 14, 2022 11:57
@JohannesMessner
Copy link
Copy Markdown
Member Author

CI seems flaky (something going wrong during pip installing when preparing the tests); failures do not seem related to this PR

@JoanFM JoanFM merged commit 632c3ae into main Nov 14, 2022
@JoanFM JoanFM deleted the fix-disable-offset-id branch November 14, 2022 12:52
anna-charlotte pushed a commit that referenced this pull request Nov 14, 2022
anna-charlotte pushed a commit that referenced this pull request Nov 14, 2022
anna-charlotte pushed a commit that referenced this pull request Nov 14, 2022
feat: add rgbd representation of 3d mesh
Signed-off-by: anna-charlotte <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants