Skip to content

feat(upload): Report outcomes when an objectstore upload fails#5976

Open
jjbayer wants to merge 4 commits into
masterfrom
ref/objectstore-reject-items
Open

feat(upload): Report outcomes when an objectstore upload fails#5976
jjbayer wants to merge 4 commits into
masterfrom
ref/objectstore-reject-items

Conversation

@jjbayer
Copy link
Copy Markdown
Member

@jjbayer jjbayer commented May 11, 2026

When upload_to_objectstore fails, make sure that outcomes are emitted for the attachment category.

upload: &Addr<Upload>,
referrer: &'static str,
) -> Option<Managed<Item>>
) -> Result<Managed<Item>, Rejected<()>>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Changing the signature of this function is not strictly necessary to do the rejection (i.e. the outcome reporting), but it makes the rejection more explicit to the caller.

@jjbayer jjbayer marked this pull request as ready for review May 11, 2026 15:47
@jjbayer jjbayer requested a review from a team as a code owner May 11, 2026 15:47
@jjbayer jjbayer requested review from elramen and tobias-wilfert May 11, 2026 15:48
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.

1 participant