Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hotfix/optional leaf object#1865

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
oytuntez wants to merge11 commits intodocarray:main
base:main
Choose a base branch
Loading
fromMotaWord:hotfix/optional-leaf-object

Conversation

oytuntez
Copy link

This PR aims to improveDocList fields that areOptional or that are givenNone default value. Giving empty[] as default value would create entries in the subindex (with just the ID field, no other data), so I opted forNone.

The biggest issue that this PR aims to solve isDocList type fields would be required no matter if they have a default value or are marked asOptional.

Copy link
Member

@JoanFMJoanFM left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, is there a chance for you to add tests for the fixes? Also, I see code related to ES, does it belong to the same problem?

@codecovCodecov
Copy link

codecovbot commentedFeb 14, 2024
edited
Loading

Codecov Report

Attention:2 lines in your changes are missing coverage. Please review.

Comparison is base(7c1e18e) 84.68% compared to head(0a7e030) 84.67%.
Report is 2 commits behind head on main.

❗ Current head0a7e030 differs from pull request most recent head7555eb3. Consider uploading reports for the commit7555eb3 to get more accurate results

FilesPatch %Lines
docarray/index/backends/elastic.py66.66%1 Missing⚠️
docarray/index/backends/hnswlib.py75.00%1 Missing⚠️
Additional details and impacted files
@@            Coverage Diff             @@##             main    #1865      +/-   ##==========================================- Coverage   84.68%   84.67%   -0.02%==========================================  Files         136      136                Lines        9261     9268       +7     ==========================================+ Hits         7843     7848       +5- Misses       1418     1420       +2
FlagCoverage Δ
docarray84.67% <87.50%> (-0.02%)⬇️

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.

@JohannesMessner
Copy link
Member

+1 for adding a test, once there is a test I could take over for the review if you want@JoanFM

@JoanFM
Copy link
Member

+1 for adding a test, once there is a test I could take over for the review if you want@JoanFM

Perfect!

@JoanFM
Copy link
Member

Also@oytuntez, please be aware that we will need to have all the commitssigned-off for us to merge the contributions.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JoanFMJoanFMJoanFM requested changes

@JohannesMessnerJohannesMessnerAwaiting requested review from JohannesMessner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@oytuntez@JohannesMessner@JoanFM

[8]ページ先頭

©2009-2025 Movatter.jp