Closed quantranhong1999 closed 5 months ago
I think this POJO should go with the repository ticket.
agree
Feel free to edit this ticket and include the repository with it :)
Do we need a column for the storage Assets metadata?
eg:
For storage Content-Type
Do we need a column for the storage Assets metadata? eg: For storage Content-Type
That is what I doubted too. If we need it, then yes.
Isn't that info in the attachment table, that you can get with the blob_id?
Isn't that info in the attachment table, that you can get with the blob_id?
Hmm, that is true, but it is just a pure blob and has nothing to do with attachment yet.
My bad, uploadsv2 table has the metadata of the upload with content type and should be enough to verify it upon /set create
@chibenwa actually no need of publicURI to be stored on db right, as we can build it up with accountId and assetId?
However, do we:
We think probably better the backend handles this though
Still maybe need contentType for when we return to the front the image from object storage?
Need a dedicated bucket for storing PublicAsset or can use the default one?
We think probably better the backend handles this though
I prefer the back to expose a fixed URL
Need a dedicated bucket for storing PublicAsset or can use the default one?
Default one is OK?
Why
We need storage APIs for PublicAsset.
How
POJO
Transform the JMAP object:
Notes: I removed
username
from the object as I think it is useless to expose the username to the client side. Meanwhile, in DB we still need to store the user owns the asset.Introduce in
tmail-backend/jmap/extensions/src/main/scala/com/linagora/tmail/james/jmap/model
something like:PublicAssetRepository
DoD
Memory implementation + contract tests.