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

[14.0][FIX]attachment_preview: get preview for files in db only #485

Merged

Conversation

PicchiSeba
Copy link

@PicchiSeba PicchiSeba commented May 13, 2024

In a few cases, when a user uploads files such as PDFs, when the client tries to get the preview, the file may not be saved yet.

This results in the following error
image001

With this check we fetch only the previews of those files we know the id of.

Copy link
Contributor

@kaynnan kaynnan left a comment

Choose a reason for hiding this comment

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

LGTM. I tested it locally, and it worked as expected.

@PicchiSeba, if possible, please rebase so that is available the runboat so that others can review it.

@PicchiSeba PicchiSeba force-pushed the 14.0-fix-attachment_preview-missing-record branch from 244c967 to 06a0843 Compare June 27, 2024 08:41
@PicchiSeba
Copy link
Author

Hi @kaynnan , thank you for your review.

I just rebased :)

Copy link

@Matthwhy Matthwhy left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@hbrunn
Copy link
Member

hbrunn commented Jul 8, 2024

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-485-by-hbrunn-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 13704e9 into OCA:14.0 Jul 8, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at b315d47. Thanks a lot for contributing to OCA. ❤️

@PicchiSeba PicchiSeba deleted the 14.0-fix-attachment_preview-missing-record branch July 8, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants