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

ISSUE-1048 [PublicAsset] PublicAsset/set create JMAP method #1057

Merged
merged 7 commits into from
May 24, 2024

Conversation

vttranlina
Copy link
Member

resolve #1048

@vttranlina
Copy link
Member Author

It will be reusing the james-project pr JAMES-3544 Add getUploadMetadata method for UploadRepository + add to UploadResolver

@vttranlina vttranlina force-pushed the publicAssetsSetMethod branch 2 times, most recently from b9cdf2e to 933d890 Compare May 22, 2024 03:38
@vttranlina vttranlina marked this pull request as ready for review May 22, 2024 03:42
@Arsnael
Copy link
Member

Arsnael commented May 22, 2024

[ERROR] /home/jenkins/build/workspace/Tmail_build_PR-1057/tmail-backend/jmap/extensions/src/main/scala/com/linagora/tmail/james/jmap/method/PublicAssetSetMethod.scala:134: value getUploadMetadata is not a member of org.apache.james.jmap.routes.UploadResolver

@chibenwa
Copy link
Member

It will be reusing the james-project pr apache/james-project#2253

Please don't!

This is uneeded.

#1057 (comment)

As expressed there please rely solely on BlobResolvers @vttranlina

@vttranlina
Copy link
Member Author

As expressed there please rely solely on BlobResolvers

But we want to fetch only metadata, while def resolve(blobId: BlobId, mailboxSession: MailboxSession): SMono[Blob] return bytes data content

@vttranlina
Copy link
Member Author

[ERROR] /home/jenkins/build/workspace/Tmail_build_PR-1057/tmail-backend/jmap/extensions/src/main/scala/com/linagora/tmail/james/jmap/method/PublicAssetSetMethod.scala:134: value getUploadMetadata is not a member of org.apache.james.jmap.routes.UploadResolver

Some code is using code of james-project that was not merged. (commit: f165c07)

@chibenwa
Copy link
Member

chibenwa commented May 22, 2024

But we want to fetch only metadata, while def resolve(blobId: BlobId, mailboxSession: MailboxSession): SMono[Blob] return bytes data content

Excuse me we want to copy the content as far as I know....

Because uploads will be cleaned up. Which means underlying blobId will disappear if nothing is done.

@vttranlina
Copy link
Member Author

A lot of changed code, then I will rebase & force push. It will easier

Copy link
Member

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

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

Almost there!

Copy link
Member

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

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

Update the spec please ;-)

Copy link
Member

@quantranhong1999 quantranhong1999 left a comment

Choose a reason for hiding this comment

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

LGTM overall

@Arsnael
Copy link
Member

Arsnael commented May 24, 2024

Update the spec please ;-)

Initially the spec was good regarding /set create, so please revert that :)

@vttranlina
Copy link
Member Author

The Cassandra repository was merged
I will rebase one more time for the Distributed test

@vttranlina vttranlina merged commit 0508890 into linagora:master May 24, 2024
5 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.

[PublicAsset] PublicAsset/set create JMAP method
5 participants