Skip to content

fix: allow blossom uploadBlob without login via temporary/custom signer#477

Merged
1-leo merged 1 commit intomasterfrom
feat/blossom-custom-signer
Mar 4, 2026
Merged

fix: allow blossom uploadBlob without login via temporary/custom signer#477
1-leo merged 1 commit intomasterfrom
feat/blossom-custom-signer

Conversation

@nogringo
Copy link
Collaborator

  • Add optional customSigner parameter to uploadBlob, uploadBlobFromFile, mirrorToServers, deleteBlob, and report methods
  • Create temporary signer automatically when no account is logged in
  • Update read operations (getBlob, downloadBlobToFile, checkBlob, getBlobStream, listBlobs) to support customSigner with useAuth
  • Remove unused _checkSigner() and _signer getter
  • Add tests for temporary signer functionality

Fixes #476

- Add optional customSigner parameter to uploadBlob, uploadBlobFromFile, mirrorToServers, deleteBlob, and report methods
- Create temporary signer automatically when no account is logged in
- Update read operations (getBlob, downloadBlobToFile, checkBlob, getBlobStream, listBlobs) to support customSigner with useAuth
- Remove unused _checkSigner() and _signer getter
- Add tests for temporary signer functionality

Fixes #476
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

❌ Patch coverage is 92.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.11%. Comparing base (c4dc20e) to head (75ff50e).
⚠️ Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
...s/ndk/lib/domain_layer/usecases/files/blossom.dart 92.50% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #477      +/-   ##
==========================================
+ Coverage   75.91%   76.11%   +0.20%     
==========================================
  Files         152      152              
  Lines        6223     6226       +3     
==========================================
+ Hits         4724     4739      +15     
+ Misses       1499     1487      -12     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nogringo nogringo requested review from 1-leo and frnandu February 28, 2026 14:12
Copy link
Contributor

@1-leo 1-leo left a comment

Choose a reason for hiding this comment

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

what use is the tmp signer? I dont understand the usecase.
Feels quite implicit, maybe at least log a warning if tmp signer is used?

@nogringo
Copy link
Collaborator Author

nogringo commented Mar 2, 2026

The temp signer is here to be able to use the blossom usecase without providing a custom signer.
Yes it's implicit.

As a dev
I want to be able to upload a blob without creating a signer
So my codebase is cleaner

@1-leo 1-leo merged commit f7552bb into master Mar 4, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ndk.blossom.uploadBlob require to be logged in

2 participants