Skip to content
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

misc(blob/service)!: return empty values in case blobs were not found #3223

Merged
merged 10 commits into from
Jul 4, 2024

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Mar 1, 2024

Resolves #3192 , #3292

ramin
ramin previously approved these changes Mar 1, 2024
Wondertan
Wondertan previously approved these changes Mar 1, 2024
@Wondertan
Copy link
Member

This is technically API breaking as someone could depend on the error, so we should mark it as so

@vgonkivs vgonkivs changed the title misc(blob/service): allow empty results in get all misc(blob/service)!: allow empty results in get all Mar 1, 2024
@vgonkivs vgonkivs added the kind:break! Attached to breaking PRs label Mar 1, 2024
walldiss
walldiss previously approved these changes Mar 4, 2024
@vgonkivs vgonkivs requested a review from jcstein March 4, 2024 10:58
@vgonkivs vgonkivs dismissed stale reviews from Wondertan, walldiss, and ramin via b88b3d3 March 7, 2024 12:46
@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.50%. Comparing base (2469e7a) to head (bc24637).
Report is 134 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3223      +/-   ##
==========================================
- Coverage   44.83%   44.50%   -0.33%     
==========================================
  Files         265      273       +8     
  Lines       14620    15402     +782     
==========================================
+ Hits         6555     6855     +300     
- Misses       7313     7738     +425     
- Partials      752      809      +57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vgonkivs vgonkivs changed the title misc(blob/service)!: allow empty results in get all misc(blob/service): allow empty results in get all Mar 7, 2024
@vgonkivs vgonkivs removed the kind:break! Attached to breaking PRs label Mar 7, 2024
@jcstein
Copy link
Member

jcstein commented Mar 7, 2024

This is technically API breaking as someone could depend on the error, so we should mark it as so

Isn't this breaking? why were tags and ! removed?

@vgonkivs
Copy link
Member Author

vgonkivs commented Mar 7, 2024

Reworked to non-breaking.

@jcstein
Copy link
Member

jcstein commented Mar 7, 2024

makes sense, thanks! and in this feature, if there are no blobs, empty vector is returned? is there anything else that changes from a user perspective?

ramin
ramin previously approved these changes Mar 8, 2024
ramin
ramin previously approved these changes Jul 3, 2024
blob/service_test.go Outdated Show resolved Hide resolved
ramin
ramin previously approved these changes Jul 3, 2024
blob/service.go Outdated Show resolved Hide resolved
renaynay
renaynay previously approved these changes Jul 3, 2024
blob/service_test.go Outdated Show resolved Hide resolved
@Wondertan Wondertan merged commit 7c86795 into celestiaorg:main Jul 4, 2024
28 checks passed
@vgonkivs vgonkivs mentioned this pull request Jul 5, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:blob kind:break! Attached to breaking PRs kind:misc Attached to miscellaneous PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: blob_get_all could return empty Vec on "blob not found"
9 participants